-
-
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
Missing version file #606
Comments
Pretty sure this is not related to #605, as using the latest setuptools doesn't fix it, and I'm not seeing an error, it's just not writing the file or getting the version (in CI or locally). |
Maybe you could yank the release until this and #605 are resolved? |
@henryiii does the issue happen if setuptools >=45 is enforced there? |
@RonnyPfannschmidt I'm using setuptools-57.4.0 and see the same issue. |
@ntextreme3 can you provide a output with |
Looks like setuptools_scm/src/setuptools_scm/config.py Line 174 in 2e15811
|
I think this is the relevant part of the output from SETUPTOOLS_SCM_DEBUG: Running command /Users/henryschreiner/git/scikit-hep/particle/.nox/tests/bin/python /Users/henryschreiner/git/scikit-hep/particle/.nox/tests/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/_8/xtbws09n017fbzdx9dmgnyyr0000gn/T/tmptlikjqkw
finalize hook {'name': None, 'version': None, 'author': None, 'author_email': None, 'maintainer': None, 'maintainer_email': None, 'url': None, 'license': None, 'description': None, 'long_description': None, 'keywords': None, 'platforms': None, 'classifiers': None, 'download_url': None, 'provides': None, 'requires': None, 'obsoletes': None}
Traceback (most recent call last):
File "/private/var/folders/_8/xtbws09n017fbzdx9dmgnyyr0000gn/T/pip-build-env-36nyqvbj/overlay/lib/python3.9/site-packages/setuptools_scm/integration.py", line 59, in infer_version
config = Configuration.from_file(dist_name=dist_name)
File "/private/var/folders/_8/xtbws09n017fbzdx9dmgnyyr0000gn/T/pip-build-env-36nyqvbj/overlay/lib/python3.9/site-packages/setuptools_scm/config.py", line 174, in from_file
defn = __import__("toml").load(strm)
ModuleNotFoundError: No module named 'toml' (Using a different package and pinning 6.1.0) |
Not sure what I should run that with, but if it helps: from:
|
If you add "toml" (the package, not the extra name) to the pyproject.toml, it works with 6.1.0, so I'm quite sure the bug is that it still tries to read this with toml, not tomli. To fix this, should it just be a hard switch to tomli here, or should it try both? If someone manually added toml instead of using the extra, then a hard switch could cause it to stop working here. Also, it would be nice if this errored out (say if there was no other config and toml/tomli was not available) instead of just assigning 0.0.0 and ignoring the options., but that could be for later if you wanted to do it. And this really should be tested - a simple example following the readme of a pyproject.toml project should be run in the tests. There does not seem to be a single mention of "requires" in the tests. Happy to help if needed. |
when switching to tomli i missed a part and the test env containing the toml lib did hide the issue
As of about an hour ago, projects are failing to write out a
write_to
version file. It's also not picking up the version properly, not sure why, I"m getting 0.0.0. No warning that I see in verbose mode.I'm using (as always):
(Technically, ==6.1 to force the issue, locally it might pick up an older cached version)
Pretty much any install command seems to trigger it,
pip install -e .
does, butpip install .
seems to too. It makes 0.0.0 and then my tests crash becausesrc/hist/version.py
wasn't produced.Pinning
<6.1
fixes the issue, though I'm not looking forward to going through a dozen or more projects and adding the pin... edit: yanked, thanks!The text was updated successfully, but these errors were encountered: