Skip to content

Commit

Permalink
Modify Python support
Browse files Browse the repository at this point in the history
Drop Python 3.8 and 3.9 support
Add Python 3.12 support
  • Loading branch information
drhagen committed Nov 11, 2023
1 parent 9705e05 commit c63a28d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
tox:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.10', '3.11', '3.12']
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ def finalize_options(self):
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
Expand Down
12 changes: 5 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[gh-actions]
python =
3.8: py38, numpy, coverage, pep8
3.9: py39
3.10: py310
3.10: py310, numpy, coverage, pep8
3.11: py311
3.12: py312

[tox]
requires =
Expand All @@ -13,10 +12,9 @@ requires =

# Environment changes have to be manually synced with `.github/workflows/python.yml`.
envlist =
py38
py39
py310
py311
py312
numpy
coverage
pep8
Expand All @@ -37,7 +35,7 @@ commands =
-m pytest tests --cov "{envsitepackagesdir}/tensora"

[testenv:numpy]
basepython = python3.8
basepython = python3.10
setenv =
COVERAGE_FILE = .coverage.numpy
extras =
Expand All @@ -49,7 +47,7 @@ commands =
[testenv:coverage]
# Separate step for combining coverage
skip_install = true
depends = py38
depends = py310
setenv =
deps =
coverage >= 4.5.3
Expand Down

0 comments on commit c63a28d

Please sign in to comment.