Skip to content

Commit

Permalink
Drop support for Python 3.8 and Python 3.9 (#11)
Browse files Browse the repository at this point in the history
Makes way for the `match` statement
  • Loading branch information
drhagen authored Nov 12, 2023
1 parent d21f234 commit 9653a87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 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']
os: [ubuntu-22.04, macos-12]
runs-on: ${{ matrix.os }}
steps:
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,10 @@ def finalize_options(self):
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
'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
2 changes: 1 addition & 1 deletion tests/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from cffi import FFI

from tensora import Tensor
from tensora.compile import tensor_cdefs, taco_define_header, taco_type_header, lock,\
from tensora.compile import tensor_cdefs, taco_define_header, taco_type_header, lock, \
take_ownership_of_tensor_members, take_ownership_of_tensor

source = """
Expand Down
10 changes: 3 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[gh-actions]
python =
3.8: py38, numpy, coverage, pep8
3.9: py39
3.10: py310
3.10: py310, numpy, coverage, pep8
3.11: py311

[tox]
Expand All @@ -13,8 +11,6 @@ requires =

# Environment changes have to be manually synced with `.github/workflows/python.yml`.
envlist =
py38
py39
py310
py311
numpy
Expand All @@ -37,7 +33,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 +45,7 @@ commands =
[testenv:coverage]
# Separate step for combining coverage
skip_install = true
depends = py38
depends = py310, py311, numpy
setenv =
deps =
coverage >= 4.5.3
Expand Down

0 comments on commit 9653a87

Please sign in to comment.