-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
After switching to setuptools_scm my package installed as version 0.0.0 #386
Comments
i think its related to a pip interaction issue i had trouble replicating before, i'm going to investigate if your particular issue fits that if that's the case then #345 should eventually fix it after i managed to reproduce |
I hit the same problem with a pyproject.toml like: [build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
[tool.setuptools_scm]
write_to = "ward/_ward_version.py" Running setuptools results in my package having version 0.0.0, even if I change the version_scheme. It seemed to work fine when I used setuptools 41, and setup.py. |
@darrenburns that release is not out - it should be tommorow |
It doesn't work for me either. I have set it up using
Invoking |
@georgek to use
if you have a modern pip installed, i believe a |
@RonnyPfannschmidt Thanks for the clarification. It makes sense. But I think there is a gap in the documentation currently because it suggests the the The gap seems to be some way to actually install your build requirements from a |
there is currently indeed no good way, currently they have to be replicated unfortunately the peps for package metadata do not yet have the accompanying pep for editable installs, there is some work on those pep's from volunteers but they are stretched and its a topic where passovr/coop can be hard to facilitate |
For anyone finding this, one way to ensure the build deps are present is to use tox to do your builds. Add to your
And then: |
FWIW I stumbled across this and found that the "easiest" way to make sure this works as intended (instead of silently falling back to 0.0.0) is to |
This includes manual configuration to avoid pypa/setuptools-scm#411. Also `import setuptools_scm` directly in `setup.py` to make sure that `0.0.0` is not used as version, see pypa/setuptools-scm#386.
I tried switching to setuptools_scm for my package fugashi for v0.1.7 but when installing from pip the version is shown as 0.0.0. I saw the notes about conflicting settings in
setup.cfg
and such but I don't have any of that. In the source PKGINFO the version seems to be correctly set to 0.1.7. What did I do wrong?Here's a link to setup.py at the 0.1.7 release.
I saw several other issues about this in this repository but none of them seemed to be the same as this.
The text was updated successfully, but these errors were encountered: