-
Notifications
You must be signed in to change notification settings - Fork 3.9k
GH-45867: [Python] Fix SetuptoolsDeprecationWarning
#47141
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
base: main
Are you sure you want to change the base?
GH-45867: [Python] Fix SetuptoolsDeprecationWarning
#47141
Conversation
|
|
|
|
| # versions released after 2022 | ||
| "setuptools_scm[toml]>=8", | ||
| "setuptools>=64", | ||
| "setuptools>=77", |
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.
This is required due to setuptools<77 not recognizing the new license strings proposed in this PR (see pypa/setuptools#4903 for explanation). I'm not sure if this is controversial so bringing it up here. @raulcd
|
@github-actions crossbow submit |
|
|
@github-actions crossbow submit -g python -g wheels |
|
|
@github-actions crossbow submit -g python |
|
Revision: 6b1a08b Submitted crossbow builds: ursacomputing/crossbow @ actions-2fdf3226a1 |
python/LICENSE.txt
Outdated
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.
Does symbolic link work on Windows...?
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.
Good point. I guess there's no other way to fix it then other than copying or creating new licence and notice files.
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.
Have copied over the files for the tests @rok
|
@github-actions crossbow submit -g wheel |
SetuptoolsDeprecationWarningSetuptoolsDeprecationWarning
|
|
|
Revision: 6b1a08b Submitted crossbow builds: ursacomputing/crossbow @ actions-fe79dfe84b |
|
@github-actions crossbow submit -g wheel |
|
Revision: df371b1 Submitted crossbow builds: ursacomputing/crossbow @ actions-4d54dadfaa |
|
As per #47551, the test seems to be expecting this: |
I don't think it's this. Those tests are passing, mine is failing on the AMD64 Conda Integration Test. @rok any idea? |
|
@paddyroddy as per @raulcd there was a go failure (#47673) on master that was since fixed, so rebase should fix it. |
…ptools-deprecation
|
@rok passing again now. Sorry, was away again but actually back now. |
|
This essentially copies the license files from repo root to |
|
An alternative would be to copy those files automatically when |
That seems like a good alternative to the proposed symlink solution. |
@paddyroddy would you be interested in adding this here? |
Yes. Will try and find time tomorrow. |
Isn't already covered by the MANIFEST? Lines 2 to 3 in d165954
I was copying the files here from a git point of view, but they should already be packaged |
I don't think they are packaged currently, see #47932 (comment). If I understand correctly @pitrou is suggesting we copy them at wheel-build-time so they do get packaged, but are not duplicated in the repo. |
Ah, so they are meant to be, but the current setup isn't working. Will look into the |
Rationale for this change
When building locally, I get many errors along the lines of
What changes are included in this PR?
setup.cfgtopyproject.tomlsetuptoolsdue to macOS CI failures (don't know why this happened, caching maybe?)I appreciate the symlink change might prove controversial. See discussions in #45867, fixes #45867.
Are these changes tested?
When I rebuild locally, I get no errors any more.
Are there any user-facing changes?
Yes. The minimum required version of
setuptoolsis now77. However, this is available on>=3.9so won't affect anyone really.