-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version information #12
Comments
I still don't have a definitive answer for how to do this. Another option is to include a variable |
The python packaging guide offers 7 methods for doing this, just pick the one that you think fits best to your project: |
but |
I tried |
I had a quick look at versioneer, sounds easy enough to use after a few clear installation steps. |
I have used versioneer in the past. It is quite "heavy" though, so I'm not sure it's worth the hassle for such a simple project. |
@michaelaye Thanks for pointing out the various options. For something as simple as nbstripout maybe bumpversion is enough. I'll give it a go. |
OK, reasonably happy with bumpversion from a quick test apart from missing support annotated tags: peritus/bumpversion#2, peritus/bumpversion#58, peritus/bumpversion#74. |
Since I'm impatient I simply installed the bumpversion branch pr'ed in peritus/bumpversion#58:
|
We currently only store the version in
setup.py
, which is not very useful. There should be a switchnbstripout --version
and/ornbstripout version
.Options for implementing this include:
version.py
module and load insetup.py
viaexecfile
(would require turningnbstripout
into a package)Any thoughts @mforbes @michaelaye?
The text was updated successfully, but these errors were encountered: