Skip to content

Version-aware galgebra detection and CI modernization#23

Open
utensil wants to merge 2 commits intomasterfrom
fix/python-dep-management
Open

Version-aware galgebra detection and CI modernization#23
utensil wants to merge 2 commits intomasterfrom
fix/python-dep-management

Conversation

@utensil
Copy link
Copy Markdown
Member

@utensil utensil commented Apr 3, 2026

Summary

Supersedes #22. Implements a coherent Python dependency management strategy:

  • deps/build.jl: Detects existing galgebra in the user's Python environment, checks version against range [0.6.0, 0.7.0), and only installs a controlled version when galgebra is missing or out of range
  • src/GAlgebra.jl: Replaces pyimport_conda with plain pyimport (no more Conda fallback), adds GALGEBRA_DEBUG env var for diagnostics output
  • CI: Explicit pip install galgebra==0.6.0 with PYTHON env var, bumped Actions (checkout v4, setup-python v5, setup-julia v2, codecov v4)
  • README: Documents Python dependency behavior, custom Python environments, and diagnostics

Design decisions

  • Version range (not exact pin): allows users to use any compatible galgebra in [0.6.0, 0.7.0)
  • Respects user's Python: works with system Python, virtualenvs, or any Python that PyCall is configured to use
  • GALGEBRA_DEBUG=1: prints galgebra version and Python path at load time for troubleshooting

Test plan

  • CI passes on Julia 1.10 and 1.11 with Python 3.12
  • Verify GALGEBRA_DEBUG=1 output shows version and Python path
  • Verify build script detects pre-installed galgebra and skips install

🤖 Generated with Claude Code

- deps/build.jl: detect existing galgebra, check version range [0.6.0, 0.7.0),
  install controlled version only when needed
- src/GAlgebra.jl: replace pyimport_conda with pyimport, add GALGEBRA_DEBUG
  env var for diagnostics
- ci.yml: explicit pip install galgebra==0.6.0, PYTHON env var for PyCall,
  bump Actions (checkout v4, setup-python v5, setup-julia v2, codecov v4)
- README: add Python dependency and diagnostics documentation

Supersedes #22.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 3, 2026

Codecov Report

❌ Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.12%. Comparing base (5b9a101) to head (724cbb4).

Files with missing lines Patch % Lines
src/GAlgebra.jl 70.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
- Coverage   80.43%   78.12%   -2.31%     
==========================================
  Files           4        4              
  Lines          92       96       +4     
==========================================
+ Hits           74       75       +1     
- Misses         18       21       +3     

☔ 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.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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