Skip to content
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

Fix missing toml extra #2475

Merged
merged 3 commits into from
Sep 6, 2021
Merged

Fix missing toml extra #2475

merged 3 commits into from
Sep 6, 2021

Conversation

ssbarnea
Copy link
Contributor

@ssbarnea ssbarnea commented Sep 3, 2021

Project packaging is using toml due to pyproject.toml but fails to mention it, causing installation failures with newer setuptools-scm 6.3.0

Fixes: #2449
Related: pypa/setuptools-scm#625

Fixed breakage uncovered by setuptools-scm 6.3.0 where installation
would fail for project that missed to mention the toml extra.
Copy link
Collaborator

@ichard26 ichard26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sigh, this past week has been terrible for our dependencies, hopefully this is the last mini-fire out of the bunch. Thank you for noticing and fixing! I'll try to push out a hotfix release later today containing both this fix and the other one for the OS native binaries.

@JelleZijlstra
Copy link
Collaborator

Sounds like setuptools-scm made a new release (6.3.1) that makes this change unnecessary.

@ssbarnea
Copy link
Contributor Author

ssbarnea commented Sep 3, 2021

@JelleZijlstra While setuptools-scm made an emergency patch, I think that patch is needed. It only works because they happen to install toml themselves but that could change in the future.

@RonnyPfannschmidt WDYT about that, should we still fix it like that?

@RonnyPfannschmidt
Copy link

If you constraint greater than 6.3.0 and setuptools greater than 45 you can skip the extra,

psf#2475 (comment)

> If you constraint greater than 6.3.0 and setuptools greater than 45
> you can skip the extra,
@ichard26
Copy link
Collaborator

ichard26 commented Sep 6, 2021

I'm going to play it safe and just keep the extra (although in addition to bumping both setuptools and setuptools-scm's minimum requirements to hopefully avoid significantly more broken build environments). I want to do a hotfix release today, and this should be good enough for now. We can always iterate later.

@ichard26 ichard26 merged commit 41e6700 into psf:main Sep 6, 2021
@sveitser
Copy link

Would be possible to make the release that includes this change? It would allow us to avoid patching black (NixOS/nixpkgs#137617) in nixpkgs after updating setuptools_scm to 6.3.1.

@ichard26
Copy link
Collaborator

@sveitser Sorry, I was planning to do a release but I simply just didn't have enough free time to be comfortable being the release manager. I've messaged the team asking if someone can pick it up but I can't promise anything as it's now out of my control :/

@ichard26
Copy link
Collaborator

@sveitser status update, Jelle has just finished the first half of the release process and now 21.9b0 should be up and working on PyPI.

@sveitser
Copy link

That was fast. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setuptools-scm is causing issues (especially since 20.8b1 doesn't have wheels)
5 participants