-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Local installation from sources - failing due to version not being parsable #4274
Comments
Thanks @zerothi , for both the case and the link. Do you happen to know how to automatically add the version number to the |
Hmm, sadly I know of no other way than uploading a new release file, or have it manually added to the |
is there a reason why you can't use the sdist archive from PyPI? I think that archive contains the desired Edit: I'm not quite sure if we can make github run |
@keewis you're absolutely correct. That should of course work. It is just really annoying when I have automated scripts where I could merely change the version. On pypi (pythonhosted) there is a hash in the download path which requires me to do manual labour ;) For now it is rather simple for me since I have just inserted a paste into the |
If you don't mind the additional step, you could also just clone the repository and generate the archive yourself:
|
Thanks for the However, this is trivially solved for me by adding |
I guess we could try to add a github workflow that builds the tarball using |
@keewis for future reference I have been digging into the pep517 business a little more. Please see here sigma-py/orthopy#97 My take home is that one should generally try to avoid the direct use of pep517 and let Thanks! |
You may want to keep an eye on separate pep517 front-ends, like python-build (for building sdist and wheels, replacing
Yep, neither |
Exactly, and thanks for the pointers! |
I guess we can close this; |
I did the following things:
I think this is because the tar's created by tagging does not contain the version information anywhere.
The
setuptools_scm
reads versions according to thisAs far as I can see, one should create a
PKG-INFO
with this content:I then tried this and then it worked. It would be ideal if the release pages have a fully functional installation procedure. This is mainly useful for non-pip installations etc.
The text was updated successfully, but these errors were encountered: