-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
How to make a release without version bumping? #812
Comments
Surprisingly, when the following section exists in pyproject.toml,
|
setuptools has recently deprecated legacy versioning, so we moved to configuring setuptools_scm with the no-guess-dev option. It appears that a release always adds version bump in addition to the git tag. e.g. release 1.0.1 reports its version as 1.0.1.post1.dev0+g3859438.d20230308 while 3859438 is the commit that was tagged on master as 1.0.1, the version has a post-release suffix (and appears to have been interpreted as a dev release?). The issue reported here appears to be the same: pypa/setuptools-scm#812 Trying setuptools-git-versioning instead in the hope that it is less "clever".
It's not clear what you are doing, is the version file by chance checked into git instead of being ignored? |
No, Basically, if |
The output of the |
pyproject.toml:
The debug output:
Expected: 1.1.0 (it should not override version=... in setup.py) |
Thanks for the note, as far as I can tell this is a oversight in the code for self config, it should warn/fail if Version is statically configured as keyword It's also incorrect usage to set Version while using setuptools_scm I believe a example for the release Branch semver as release scheme is needed |
please try again with the current version of setuptools_scm - a bug regading config loading vs setup.py usage has been resolved the last output indicates using the default config instead of the release branch semver one |
I've spent more than hour to figure out how to make a release while using setuptools_scm, but it's documented nowhere properly. Some relevant issues are #143 and #767, as well as a SO thread, but they seem pretty outdated.
Here's how I am doing:
setup.py:
Running
python setup.py sdist
always shows the development version:I tried branch
v1.1
, creating a tagv1.1
but doesn't work -- it would simply bump up to version to1.2.0dev0
instead.I would want to have the version simply set as '1.1' to make a release, but there seems no way to prohibit setuptools_scm from changing the version. Any hints? I hope documentations about how to make a release can be improved.
The text was updated successfully, but these errors were encountered: