diff --git a/_pants/py_package.py b/_pants/py_package.py index cafb67e..9320d92 100644 --- a/_pants/py_package.py +++ b/_pants/py_package.py @@ -38,6 +38,7 @@ def py_package( classifiers=[ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], extras_require=extras_require or {}, long_description_content_type="text/markdown", diff --git a/_pants/py_test_versions.py b/_pants/py_test_versions.py new file mode 100644 index 0000000..d99a910 --- /dev/null +++ b/_pants/py_test_versions.py @@ -0,0 +1 @@ +test_versions = parametrize(py39=["==3.9.*"], py310=["==3.10.*"], py311=["==3.11.*"]) diff --git a/compose_chart_export/tests/test_chart_export/BUILD b/compose_chart_export/tests/test_chart_export/BUILD index f5c13b4..9a2b33b 100644 --- a/compose_chart_export/tests/test_chart_export/BUILD +++ b/compose_chart_export/tests/test_chart_export/BUILD @@ -1,5 +1,5 @@ resources(name="reg", sources=["charts/*", "compose_files/*"]) python_tests( dependencies=[":reg"], - interpreter_constraints=parametrize(py39=["==3.9.*"], py310=["==3.10.*"]), + interpreter_constraints=test_versions, ) diff --git a/model_lib/test/test_model_lib/BUILD b/model_lib/test/test_model_lib/BUILD index 1a7aa5b..162605c 100644 --- a/model_lib/test/test_model_lib/BUILD +++ b/model_lib/test/test_model_lib/BUILD @@ -2,6 +2,6 @@ resources(name="json", sources=["test_dump_functions/*.json"]) python_test_utils(name="conftest", resolve=parametrize("python-default", "pydantic-v1")) python_tests( dependencies=[":json"], - interpreter_constraints=parametrize(py39=["==3.9.*"], py310=["==3.10.*"]), + interpreter_constraints=test_versions, # resolve=parametrize("python-default", "pydantic-v1") ) diff --git a/pants.toml b/pants.toml index 04e8ec8..ace8d38 100644 --- a/pants.toml +++ b/pants.toml @@ -2,7 +2,7 @@ pants_version = "2.17.0rc3" print_stacktrace = true level = "warn" -build_file_prelude_globs = ["_pants/py_deploy.py", "_pants/py_package.py"] +build_file_prelude_globs = ["_pants/*.py"] # for plugin development pythonpath = ["%(buildroot)s/_pants/pants_py_deploy/src", "%(buildroot)s/compose_chart_export/src", "%(buildroot)s/docker_compose_parser/src", "%(buildroot)s/model_lib/src", "%(buildroot)s/zero_3rdparty/src"] diff --git a/zero_3rdparty/tests/test_zero_3rdparty/BUILD b/zero_3rdparty/tests/test_zero_3rdparty/BUILD index cc0d645..c849ac0 100644 --- a/zero_3rdparty/tests/test_zero_3rdparty/BUILD +++ b/zero_3rdparty/tests/test_zero_3rdparty/BUILD @@ -1 +1 @@ -python_tests(interpreter_constraints=parametrize(py39=["==3.9.*"], py310=["==3.10.*"])) +python_tests(interpreter_constraints=test_versions)