Skip to content

Commit 824f67e

Browse files
committed
TEST: enforce Python 3.10 package floor
1 parent 5a41625 commit 824f67e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_package_metadata.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import runpy
2+
from pathlib import Path
3+
from unittest.mock import patch
4+
5+
6+
def test_setup_requires_python_310_or_newer():
7+
setup_path = Path(__file__).parents[1] / "setup.py"
8+
9+
with patch("setuptools.setup") as setup:
10+
runpy.run_path(str(setup_path), run_name="__main__")
11+
12+
assert setup.call_args.kwargs["python_requires"] == ">=3.10"

0 commit comments

Comments
 (0)