Upgrade hatch to fix installing extras bug#4108
Upgrade hatch to fix installing extras bug#4108hauntsaninja merged 5 commits intopsf:mainfrom BryceStevenWilley:4107_extra_d_deps
Conversation
Fix #4107, in a fairly hacky way though. Hatch will strip out parenthesis in the extras if it thinks it doesn't need them. We can, however, add a meaningless restriction like `and python_version >= '1'` to force hatch to use our parenthesis. Definitely should have a hatch fix upstream though.
AlexWaygood
left a comment
There was a problem hiding this comment.
Thanks for fixing! Now that https://github.com/pypa/hatch/releases/tag/hatchling-v1.20.0 has been released with an upstream fix, maybe a simpler solution might be to just pin to hatchling>=1.20.0 here?
Line 28 in 35ce37d
|
Thanks! I just saw that hatchling released the patch already, which is nice. I also changed the other pinned version of hatchling, I don't have a mac machine to test that one though. |
hauntsaninja
left a comment
There was a problem hiding this comment.
Thanks for the report and for fixing this twice over!
We'll test the Mac build in CI (looks like the patch still applies, which is main reason for that pin)
|
Any plans for a patch release including this fix? |
Description
Fix #4107 by updating hatchling
in a fairly hacky way though.Hatch
willused to strip out parenthesis in the extras if it thinks it doesn't need them and wouldn't add them back in.:( We can, however, add a meaningless restriction likeand python_version >= '1'to force hatch to use our parenthesis. Extremely hacky, and I would understand if we don't want this to be merged until a cleaner hatch fix is upstream. Also happy to come up with another way of essentially just havingtruein the spec, but I couldn't find one with a quick reading of https://peps.python.org/pep-0508/.Checklist - did you ...
CHANGES.mdif necessary?I did manually test this by installing my local checkout of the project, confirming that the dependencies for the
dextra aren't installed:When run on main, this output includes
Requirement already satisfied: aiohttp>=3.7.4 in /home/brycew/Developer/.venv/lib/python3.10/site-packages (from black==0.1.dev1762+g35ce37d) (3.9.1), and all of it's dependencies.