fix: cap Python metadata before 3.15#2008
Open
qybaihe wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #2006.
Cap the published Python requirement at
>=3.10,<3.15so resolvers do not try to solve Crawl4AI for currently unsupported future Python 3.15+ environments. The existing PyPI metadata for 0.8.7-0.8.9 is already>=3.10; this change narrows the declared range to the Python versions the package can reasonably resolve against today while preserving the current lower bound.List of files changed and why
pyproject.toml- update the primary package metadatarequires-pythonrange.setup.py- keep the legacy setuptools entry point in sync withpyproject.toml.tests/test_python_requires_metadata.py- add a focused regression test that checks both metadata entry points stay aligned.How Has This Been Tested?
uv run --no-project --with pytest pytest tests/test_python_requires_metadata.pyuv build --wheel --out-dir "$tmpdir"and inspected the generated wheelMETADATA, confirmingRequires-Python: >=3.10,<3.15.Note: I did not update
uv.lockwith my localuv 0.7.6because it would downgrade the lockfile format and re-resolve unrelated dependencies. The package metadata generated from the build is correct without a lockfile rewrite.Checklist: