From 0c060f3814253f3fb2812f36df194978682a3bf8 Mon Sep 17 00:00:00 2001 From: BJ Hargrave Date: Tue, 25 Jun 2024 14:08:05 -0400 Subject: [PATCH] python: Raise python floor to 3.10 Signed-off-by: BJ Hargrave --- .github/workflows/test.yml | 1 - pyproject.toml | 9 ++++----- src/instructlab/schema/__init__.py | 4 +++- tox.ini | 1 - 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a7ed78..772ef89 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,6 @@ jobs: strategy: matrix: python: - - "3.9" - "3.10" - "3.11" - "3.12" diff --git a/pyproject.toml b/pyproject.toml index 52f21dd..4a3a231 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,14 +10,13 @@ authors = [{ name = "InstructLab", email = "dev@instructlab.ai" }] description = "InstructLab Taxonomy Schema" readme = "README.md" license = { text = "Apache-2.0" } -requires-python = ">=3.9" +requires-python = ">=3.10" classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -34,11 +33,11 @@ version_file = "src/instructlab/schema/_version.py" local_scheme = "no-local-version" # do not include +gREV local version, required for Test PyPI upload [tool.mypy] -python_version = "3.9" +python_version = "3.10" exclude = ["^src/instructlab/schema/_version\\.py$"] [tool.ruff] -target-version = "py39" +target-version = "py310" src = ["src", "tests"] extend-exclude = ["src/instructlab/schema/_version.py"] @@ -55,7 +54,7 @@ select = [ ] [tool.pylint.main] -py-version = "3.9" +py-version = "3.10" source-roots = ["src", "tests"] ignore = ["_version.py"] diff --git a/src/instructlab/schema/__init__.py b/src/instructlab/schema/__init__.py index 5ac6fdc..a1bc1f2 100644 --- a/src/instructlab/schema/__init__.py +++ b/src/instructlab/schema/__init__.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: Apache-2.0 + """InstructLab Taxonomy Schema""" # Standard @@ -5,7 +7,7 @@ try: from importlib.resources.abc import Traversable # type: ignore[import-not-found] -except ImportError: # python>=3.9,<3.11 +except ImportError: # python<3.11 from importlib.abc import Traversable __all__ = ["schema_versions"] diff --git a/tox.ini b/tox.ini index 2847d8a..1c4e721 100644 --- a/tox.ini +++ b/tox.ini @@ -60,4 +60,3 @@ python = 3.12 = py312-unit 3.11 = py311-unit 3.10 = py310-unit - 3.9 = py39-unit