-
Notifications
You must be signed in to change notification settings - Fork 24
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__ is broken with 1.7.1 #60
Comments
So I have setuptools-scm, and in your
|
Is it the leading |
Not, it's expected that setuptools-scm cannot find the version from an installed package (i.e. not a git repo), it's just that the exception raised is not the one that is expected here. This could be harmless if astropy was not verifying the version. and if the code on both sides was more robust (if |
Hi @saimn I'm not able to reproduce the issue in a clean venv environment.
Can you please provide more details on your setup? |
You don't have setuptools-scm, so in that case I guess |
ah, sorry. Now I can reproduce. Thanks |
I see now that you |
OK, the problem is that the |
Strange, this problem should be captured by the test suite:
@saimn can you please confirm that the test fails for you as well? |
Fix wrong version number (Closes: gh-60)
Should we make a patch release? |
Yes, I think so! |
Yes, would be great 👍 |
Yes please, this breaks astropy imports. |
The new release should be available now. |
I was stuck in the pyerfa version control during the astropy installation. pyerfa's version was '0.0.0'. For this reason, astropy installation failed with pip's dependency control. I checked the source code and removed the relative path "." from the line below. Then it worked. Line 8 in fb1f520
I changed to:
Note: Python 3.10.8 (Mach-O 64-bit executable arm64), macOS Monterey, M2. |
I updated to version 1.7.1 and
__version__
reports '0.0.0', which then breaks astropy import because the version requirement is not met. cc @mhvk and @astrofrog @embray for the setuptools-scm knowledge.The text was updated successfully, but these errors were encountered: