Single-source package version via setuptools dynamic versioning#850
Single-source package version via setuptools dynamic versioning#850anevolbap wants to merge 2 commits 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. |
Documentation build overview
8 files changed ·
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #850 +/- ##
==========================================
- Coverage 94.60% 94.59% -0.02%
==========================================
Files 80 80
Lines 12764 12764
Branches 770 770
==========================================
- Hits 12076 12074 -2
- Misses 485 486 +1
- Partials 203 204 +1 ☔ View full report in Codecov by Sentry. 🚀 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 |
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