Skip to content

Commit

Permalink
python: Raise python floor to 3.10
Browse files Browse the repository at this point in the history
Signed-off-by: BJ Hargrave <[email protected]>
  • Loading branch information
bjhargrave committed Jun 25, 2024
1 parent f34c14f commit 72984c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
strategy:
matrix:
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ authors = [{ name = "InstructLab", email = "[email protected]" }]
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",
Expand All @@ -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"]

Expand All @@ -55,7 +54,7 @@ select = [
]

[tool.pylint.main]
py-version = "3.9"
py-version = "3.10"
source-roots = ["src", "tests"]
ignore = ["_version.py"]

Expand Down
4 changes: 3 additions & 1 deletion src/instructlab/schema/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# SPDX-License-Identifier: Apache-2.0

"""InstructLab Taxonomy Schema"""

# Standard
from importlib import resources

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"]
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ python =
3.12 = py312-unit
3.11 = py311-unit
3.10 = py310-unit
3.9 = py39-unit

0 comments on commit 72984c1

Please sign in to comment.