From 5449a72659d573f57599eb980eed975f156bc861 Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Fri, 22 Nov 2024 16:39:33 +0100 Subject: [PATCH] WIP: Modernizing setup. --- .gitlab-ci.yml | 3 +-- setup.py | 14 ++++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8845e407..57af3f4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -70,8 +70,7 @@ unittest_py3.8: script: &python_test_script # Python docker has problems with tox and pip so use plain pytest here - touch ~/.pylinkahead.ini - - pip install pynose pytest pytest-cov jsonschema>=4.4.0 setuptools - - pip install . + - pip install .[test] - python -m pytest unittests # This needs to be changed once Python 3.9 isn't the standard Python in Debian diff --git a/setup.py b/setup.py index 8b0f7ef0..7e3dfb93 100755 --- a/setup.py +++ b/setup.py @@ -187,11 +187,17 @@ def setup_package(): 'PyYAML>=5.4.1', 'future', ], - extras_require={'keyring': ['keyring>=13.0.0'], - 'jsonschema': ['jsonschema>=4.4.0']}, + extras_require={ + 'jsonschema': ['jsonschema>=4.4.0'], + 'keyring': ['keyring>=13.0.0'], + "test": [ + "pytest", + "pytest-cov", + "coverage>=4.4.2", + "jsonschema>=4.4.0", + ] + }, setup_requires=["pytest-runner>=2.0,<3dev"], - tests_require=["pytest", "pytest-cov", "coverage>=4.4.2", - "jsonschema>=4.4.0"], package_data={ 'linkahead': ['py.typed', 'cert/indiscale.ca.crt', 'schema-pycaosdb-ini.yml'], }, -- GitLab