Skip to content

Commit

Permalink
Add tox configuration to test across environments
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Apr 18, 2024
1 parent 3f599d4 commit 7bd5a33
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ def read(fname):
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: C",
"Programming Language :: Python :: 2.4",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Filesystems",
],
Expand Down
39 changes: 39 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[tox]
minversion = 3.18
envlist =
lint
py38
py39
py310
py311
py312

[testenv]
usedevelop = true
deps =
build
wheel
pytest
setuptools
commands =
python -m unittest -v
extras =
test
setenv =
LOGNAME=dummy

[testenv:lint]
basepython = python3
skip_install = true
commands =
isort --check-only --diff .
flake8 *.py
check-manifest
check-python-versions
deps =
check-manifest
check-python-versions >= 0.19.1
wheel
flake8
isort

0 comments on commit 7bd5a33

Please sign in to comment.