-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Inconsistent versionning from git tags #483
Comments
Thank you for reporting the issue @oiesauvage. In the past, we did include a Can I ask you a few extra questions about this issue?
|
Could you also try to add isolated_build = True to I suspect that it might be the most correct way to solve this issue (but potentially increase the time to run tox). Alternatively, I wonder if adding |
Thank you for your answer @abravalheri :-) I tried your suggestions:
|
Thanks @oiesauvage for the feedback and for trying these things out.
So it seems that I did a few extra tests myself by generating a fresh project from the master version of PyScaffold, with If I create a git tag, before running Once I create a new tag and try to run It might be related to the fact that currently we have |
@abravalheri alright, i tried deleting |
Interesting @abravalheri. From the docs it seems that |
@abravalheri, I set this as part of the v4.1 release. Feel free to remove if you don't agree. |
Description of your problem
I use
pyscaffold
for several Python projects (amazing work btw!). On one of them withpyscaffold 4.0.2
, I am building withtox -e build
and generatesphinx
documentation withtox -e docs
with theme fromreadthedocs
. The version infered from commit tag is OK for the build, but never for the documentation build: the displayed version on the html page is always0.0.0
.Besides, when I type
python setup.py --version
the result is correct, but when doing the following in the Python console:The result is also falling back to
0.0.0
.Describe the solution you would like to see for your use-case
Replace in generated
setup.py
:by:
In my case, it solves the issue. It seems to be the way to go in
setuptools_scm
documentation.Versions and main components
The text was updated successfully, but these errors were encountered: