-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Use PEP440 compatible version for canary builds #14860
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
Conversation
Co-Authored-By: Jonathan J. Helmus <jjhelmus@gmail.com>
Co-Authored-By: Jonathan J. Helmus <jjhelmus@gmail.com>
Review build status
Once it's done, use this command to try it out in a new conda environment:
|
CodSpeed Performance ReportMerging #14860 will not alter performanceComparing Summary
|
setuptools-scm=8.2.1
https://packaging.python.org/en/latest/specifications/version-specifiers/#dvcs-based-version-labels has suggestions on how to produce compatible version from version control systems. Of note is:
This is in line with the approach here, |
f55fc12
to
11ef3b7
Compare
Blocked by windows test failure, can be fixed by either of the following: |
Description
Closes #14859, #14843, #14858
Do not use yanked version of
setuptools-scm
due to issues with version handling.See #14858 (comment)
After much investigations and tinkering we have determined the issue is not with
setuptools-scm 8.2.1
but rather with the version generated in our recipe.The
setuptools-scm 8.2.1
package added an activation script settingexport SETUPTOOLS_SCM_PRETEND_VERSION=${PKG_VERSION}
resulting inhatchling
automatically detecting the recipe version.Since
{{ GIT_BUILD_STR }}
=={{ GIT_DESCRIBE_NUMBER }}_{{ GIT_DESCRIBE_HASH }}
we were creating an invalid version which hatchling rejected.The solution is to use
{{ GIT_DESCRIBE_NUMBER }}+{{ GIT_DESCRIBE_HASH }}
instead of{{ GIT_BUILD_STR }}
.Checklist - did you ...
Add a file to thenews
directory (using the template) for the next release's release notes?Add / update necessary tests?Add / update outdated documentation?