diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8845e4070c685230a99958fbebd9377238df32de..57af3f4f2a9fe004d9825fab9028106e13ccac4d 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 8b0f7ef0baced33cb160ed1fef2d3eb6436ef1d9..7e3dfb93359978b18cdddb5783c6e2ef1fcd443a 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'], },