diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..3eb6dd50 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,9 @@ +# This file is part of REANA. +# Copyright (C) 2024 CERN. +# +# REANA is free software; you can redistribute it and/or modify it +# under the terms of the MIT License; see LICENSE file for more details. + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/run-tests.sh b/run-tests.sh index f5d0150f..aae6a42f 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -55,7 +55,7 @@ check_sphinx () { } check_pytest () { - python setup.py test + pytest } check_all () { diff --git a/setup.cfg b/setup.cfg index d88267f4..1c53aa2a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,9 +4,6 @@ # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. -[aliases] -test = pytest - [build_sphinx] source-dir = docs/ build-dir = docs/_build diff --git a/setup.py b/setup.py index f3abd96b..320960a9 100755 --- a/setup.py +++ b/setup.py @@ -18,18 +18,15 @@ readme = open("README.md").read() history = open("CHANGELOG.md").read() -tests_require = [ - "pytest-reana>=0.95.0a2,<0.96.0", -] - - extras_require = { "docs": [ "myst-parser", "Sphinx>=1.5.1", "sphinx-rtd-theme>=0.1.9", ], - "tests": tests_require, + "tests": [ + "pytest-reana>=0.95.0a2,<0.96.0", + ], "kubernetes": [ "kubernetes>=22.0.0,<23.0.0", ], @@ -59,10 +56,6 @@ continue extras_require["all"].extend(reqs) -setup_requires = [ - "pytest-runner>=2.7", -] - install_requires = [ "bravado>=10.2,<10.4", # bravado-core 6.1.1 breaks compatibility with jsonschema<4.9.0 @@ -105,8 +98,6 @@ python_requires=">=3.8", install_requires=install_requires, extras_require=extras_require, - setup_requires=setup_requires, - tests_require=tests_require, classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment", diff --git a/tox.ini b/tox.ini index 9904a694..eaf205d5 100644 --- a/tox.ini +++ b/tox.ini @@ -5,9 +5,9 @@ # under the terms of the MIT License; see LICENSE file for more details. [tox] -envlist = py36, py37, py38, py39, py310, py311, py312 +envlist = py38, py39, py310, py311, py312 [testenv] deps = pytest pytest-cov -commands = {envpython} setup.py test +commands = pytest {posargs}