Single-source package version via setuptools dynamic versioning#850
Single-source package version via setuptools dynamic versioning#850anevolbap wants to merge 1 commit into
Conversation
|
👋 Welcome to CausalPy, @anevolbap! Thank you for opening your first pull request! We're excited to have you contribute to the project. 🎉 Here are a few tips to help your PR get merged smoothly:
A maintainer will review your changes soon. Thanks for helping make CausalPy better! 🚀 💼 LinkedIn Shoutout: Once your PR is merged, we'd love to give you a shoutout on LinkedIn to thank you for your contribution! If you're interested, just drop your LinkedIn profile URL in a comment below. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #850 +/- ##
==========================================
+ Coverage 94.97% 95.14% +0.17%
==========================================
Files 87 92 +5
Lines 13898 14860 +962
Branches 840 890 +50
==========================================
+ Hits 13199 14138 +939
- Misses 490 505 +15
- Partials 209 217 +8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@drbenvincent this is ready for review. CI fully green. Heads-up on the approach choice: the #155 thread floated flit, setuptools-scm, and bump2version. This PR sticks with the existing setuptools backend and just adds |
|
Thanks @anevolbap — this is a clean, well-scoped change for #155. CI is green but the last run is from late April and the branch is now ~39 commits behind |
9d13f20 to
8c7bed5
Compare
|
> Thanks @anevolbap — this is a clean, well-scoped change for #155. CI is green but the last run is from late April and the branch is now ~39 commits behind Green, ready to merge. |
Summary
Single-source the package version from
causalpy/version.pyusing setuptools dynamic versioning. Removes the duplicateversion = "0.8.0"frompyproject.toml.Fixes #155
Changes
versionin[project]withdynamic = ["version"][tool.setuptools.dynamic]section pointing tocausalpy.version.__version__Testing
pip install -e .resolves version correctlypython -c "import causalpy; print(causalpy.__version__)"returns0.8.0importlib.metadata.metadata('CausalPy')['Version']returns0.8.0--all-files)Checklist