Closed jcfr closed 8 months ago
cc: @mayeut @henryiii
Thanks @agriyakhetarpal, @braindevices, @mloubout and @roastduck for the issue reports and pull requests :pray:
Once the fix has been reviewed, approved and integrated, suggested path forward:
3.29.0
3.29.0.1
importlib_metadata
is only needed for python 3.7. Versions 3.8 or greater can use importlib.metadata
, which ships with python afaik
Still needs to fix from #473 for correct version checking
@mudit2812 and @mloubout, Python 3.7 support was recently dropped with 3.29.0
. Do we even need the conditional import for importlib_metadata
at all, then? We can just use importlib.metadata
and that should work? i.e., I don't think adding importlib_metadata
as a required dependency is required at all, now – it would be better to drop the conditional import from src/cmake/__init__.py
.
Didn't see Python 3.8 was the minimum version now, should be able to completely drop importlib_metadata
then as you pointed out.
docs/conf.py
seems to have been using the correct Python version check, as reported by @mloubout:
Python 3.7 is the minimum version, not 3.8. We just dropped 2.7 and 3.6.
Oops, thanks! Updated my review to mark that change
You are correct about this working in 3.8+ though, I just checked. There are bugs in importlib.metadata before 3.10.2, but this shouldn't hit those.
@jcfr I don't have permission to yank cmake 3.29.0
, let's go ahead and do that, since it's breaking people and people probably aren't requiring it yet after a few hours, and if they did, it would still work (due to yanks resolving if they can't resolve to a non-yanked version). CI will take ~20-30 mins here, then the release will take ~3 hours.
re: yanked
Thanks @henryiii for further tweaking the patch :pray: and @mloubout for testing.
:rocket: :white_check_mark:
Fixes a regression introduced in 5f068d5 ("chore(build): move to scikitbuild-core (#455)", 2024-03-01)