diff --git a/Dockerfile b/Dockerfile index f47049f6..2d5fa4e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN apt-get update -y && \ python3.8 \ python3.8-dev \ vim-tiny && \ - pip install --no-cache-dir --upgrade pip setuptools && \ + pip install --no-cache-dir --upgrade pip 'setuptools<71' && \ pip install --no-cache-dir -r /code/requirements.txt && \ apt-get remove -y \ gcc \ 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 edbec92e..facd04dd 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -114,7 +114,7 @@ check_pytest () { clean_old_db_container start_db_container trap clean_old_db_container SIGINT SIGTERM SIGSEGV ERR - python setup.py test + pytest stop_db_container } diff --git a/setup.cfg b/setup.cfg index eabef9db..181db28c 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 75ce49ae..a2308e1d 100644 --- a/setup.py +++ b/setup.py @@ -18,10 +18,6 @@ readme = open("README.md").read() history = open("CHANGELOG.md").read() -tests_require = [ - "pytest-reana>=0.95.0a2,<0.96.0", -] - extras_require = { "debug": [ "wdb", @@ -36,7 +32,9 @@ "sphinxcontrib-openapi>=0.8.0", "sphinxcontrib-redoc>=1.5.1", ], - "tests": tests_require, + "tests": [ + "pytest-reana>=0.95.0a2,<0.96.0", + ], } extras_require["all"] = [] @@ -45,10 +43,6 @@ continue extras_require["all"].extend(reqs) -setup_requires = [ - "pytest-runner>=2.7", -] - install_requires = [ "Flask>=2.1.1,<2.2.0", "Werkzeug>=2.1.0,<3.0.0", @@ -97,8 +91,6 @@ python_requires=">=3.8", extras_require=extras_require, install_requires=install_requires, - setup_requires=setup_requires, - tests_require=tests_require, classifiers=[ "Development Status :: 3 - Alpha", "Environment :: Web Environment",