-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Ensure git archives contains version info #1405
Ensure git archives contains version info #1405
Conversation
Using setuptools-scm to resolve the version of a source archive is not possible unless that information is exported during the archival process. This creates issues for downstream packagers as they must manually add version information in their packages or switch to another source. See https://github.com/pypa/setuptools_scm/#git-archive for more information.
|
Thanks a lot for pointing this out! Looks like I missed this when I switched over to setuptools_scm. Tentatively it looks good, but I am currently AFK but will try and take a closer look within a day or so. (Feel free to ping me.) |
@carlsmedstad, many thanks! |
@carlsmedstad, for both my own understanding, and for testing, would you be willing to explain more about your particular use case? When transitioning to setuptools_scm, I was focused on the PyPI-published sdist. In that case, the version is exported both in the metadata ( Thanks again for bringing this to our attention! |
Your're welcome! I maintain a few packages in the Arch User Repository (AUR) one of which is for Aesara. My preferred packaging workflow is to use the git archive from a GitHub/GitLab release as the source. The main reasons for this is that:
Hopefully that explains my use case and my reasons for it :) |
That makes a lot of sense. Thank you for the explanation, and also thanks for repackaging Aesara! I'll make sure to add a test around the git archive, and please do reach out again in case you run into any further issues or have other suggestions. |
Using setuptools-scm to resolve the version of a source archive is not possible unless that information is exported during the archival process. This creates issues for downstream packagers as they must manually add version information in their packages or switch to another source.
See https://github.com/pypa/setuptools_scm/#git-archive for more information.