Skip to content

Source venv when resolving VERSION in Makefile#190

Open
jmchilton wants to merge 1 commit intogalaxyproject:mainfrom
jmchilton:fix_makefile_version_python
Open

Source venv when resolving VERSION in Makefile#190
jmchilton wants to merge 1 commit intogalaxyproject:mainfrom
jmchilton:fix_makefile_version_python

Conversation

@jmchilton
Copy link
Copy Markdown
Member

Summary

  • make release failed on macOS because the VERSION?=$(shell ... python ...) line invoked bare python, which isn't on PATH (only python3 is).
  • Prepending $(IN_VENV) sources .venv/bin/activate so python resolves inside the dev venv that make setup-venv already creates.
  • Also reorders DEV_RELEASE=... to sit after the if ... fi; block so the env-var prefix applies to the python invocation instead of clashing with the compound statement.

Test plan

  • make -n commit-version shows DEV_RELEASE=0 python scripts/commit_version.py ... with venv sourced first and VERSION resolved correctly
  • make release VERSION=0.25.0 succeeded as a workaround during 0.25.0 release; this fix removes the need for the explicit override

Bare python isn't available on macOS (only python3), which broke
make release. Prepending IN_VENV puts .venv/bin on PATH so python
resolves within the venv that make setup-venv already creates.
DEV_RELEASE env assignment moved inside the sourced shell so it
doesn't try to prefix the compound if-statement.
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 41.03%. Comparing base (a778f18) to head (25b3644).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #190   +/-   ##
=======================================
  Coverage   41.03%   41.03%           
=======================================
  Files          51       51           
  Lines        1974     1974           
  Branches      441      441           
=======================================
  Hits          810      810           
  Misses       1047     1047           
  Partials      117      117           
Flag Coverage Δ
unittests 41.03% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant