chore: Python 3.12 is the floor, part B (#6)
check now requires requires-python >= 3.12. Every standard driver moved to that floor in its own PR, so none of them goes red with this.
This commit is contained in:
1 parent
c7d52864a0
commit
0f201e0f2d
5 files changed
+11
-11
No files matched your search
+6
-6
@@ -67,23 +67,23 @@ def test_a_license_table_is_reported(make_repo: RepoFactory, license_line: str)
|
||||
|
||||
def test_a_license_classifier_is_reported(make_repo: RepoFactory) -> None:
|
||||
pyproject = PYPROJECT.replace(
|
||||
'requires-python = ">=3.10"\n',
|
||||
'requires-python = ">=3.10"\n'
|
||||
'requires-python = ">=3.12"\n',
|
||||
'requires-python = ">=3.12"\n'
|
||||
'classifiers = ["License :: OSI Approved :: Apache Software License"]\n',
|
||||
)
|
||||
|
||||
assert rules(check_repo(make_repo({"pyproject.toml": pyproject}))) == {"metadata"}
|
||||
|
||||
|
||||
@pytest.mark.parametrize("spec", [">=3.8", ">=3.9", ""])
|
||||
def test_python_below_310_or_unbounded_is_reported(make_repo: RepoFactory, spec: str) -> None:
|
||||
pyproject = PYPROJECT.replace('requires-python = ">=3.10"', f'requires-python = "{spec}"')
|
||||
@pytest.mark.parametrize("spec", [">=3.9", ">=3.10", ">=3.11", ""])
|
||||
def test_python_below_312_or_unbounded_is_reported(make_repo: RepoFactory, spec: str) -> None:
|
||||
pyproject = PYPROJECT.replace('requires-python = ">=3.12"', f'requires-python = "{spec}"')
|
||||
|
||||
assert rules(check_repo(make_repo({"pyproject.toml": pyproject}))) == {"python"}
|
||||
|
||||
|
||||
def test_a_higher_python_floor_is_fine(make_repo: RepoFactory) -> None:
|
||||
pyproject = PYPROJECT.replace('">=3.10"', '">=3.11"')
|
||||
pyproject = PYPROJECT.replace('">=3.12"', '">=3.13"')
|
||||
|
||||
assert check_repo(make_repo({"pyproject.toml": pyproject})) == []
|
||||
|
||||
|
||||
Reference in new issue
Block a user