From 7bd5a33154bdb46f179e51ef579e14aa96f83e1c Mon Sep 17 00:00:00 2001 From: Malthe Borch Date: Thu, 18 Apr 2024 22:27:43 +0200 Subject: [PATCH] Add tox configuration to test across environments --- setup.py | 7 ++----- tox.ini | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 tox.ini diff --git a/setup.py b/setup.py index c937bcb..750fea9 100644 --- a/setup.py +++ b/setup.py @@ -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", ], diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..45830a8 --- /dev/null +++ b/tox.ini @@ -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 +