-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove setuptools_scm_git_archive dependency and add sdist test #23387
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
Remove setuptools_scm_git_archive dependency and add sdist test #23387
Conversation
6f71ddf
to
3abbf61
Compare
In Cartopy, we removed I think wheels were always okay; the problem is in #23325 where installs are made from an sdist (because 3.11 has no wheels). So this needs testing from sdist, not just cibuildwheel. |
I think we broke installs from direct GitHub tarballs. |
61cd246
to
e1de7b3
Compare
I tested this locally and it seems to solve #23325 as well. Tried to add a CI-file building an sdist and printing the resulting version number. Not sure how worthwhile it is. (Clearly, this should be connected to a label and more OS and Python versions, but to illustrate it.) |
e1de7b3
to
9c6b5f9
Compare
It seems like cibuildwheel cannot first build an sdist. Current version uses build and then installs both sdist and wheel and checks the version number. |
378c816
to
7175989
Compare
Is this a blocking issues for 3.6? |
Hard to say. I'd say that it is rather non-controversial.
|
This definitely needs to go in 3.6, but it depends on #23557. |
7175989
to
57f756c
Compare
57f756c
to
ad74ba4
Compare
@@ -1 +1,4 @@ | |||
node: $Format:%H$ | |||
node-date: $Format:%cI$ | |||
describe-name: $Format:%(describe:tags=true)$ | |||
ref-names: $Format:%D$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this line? the refs name includes both branches and tags and is the source of a lot of trouble with non-reproducible downloads from github...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea. I just copied from https://github.com/Changaco/setuptools_scm_git_archive where they have that line in the migration guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets defer this question to a later time. It is a can of worms I do not want to block this moving forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update the version of setuptools_scm
we need in #23620
PR Summary
Closes #23325
Closes #23386
Removes setuptools_scm_git_archive as dependency, but increases the setuptools_scm version requirement from 4 to 7.
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).