From 41f9470d757ed05d648d9e3fa282617b5364abb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Fri, 4 Jun 2021 17:39:57 +0200 Subject: [PATCH] add tests for Python 3.9, fix setup.cfg --- .travis.yml | 7 +++++++ setup.cfg | 8 +++++++- setup.py | 10 +--------- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 55b39346..3865817f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,6 +43,13 @@ jobs: after_script: - coverage xml - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT + - stage: test + python: "3.9" + script: + - pytest -n 8 --cov=satella + after_script: + - coverage xml + - ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT - stage: test python: "pypy3.5" script: diff --git a/setup.cfg b/setup.cfg index 1607f622..87e67c51 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,7 +22,6 @@ classifier = Programming Language :: Python :: 3.9 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy - Operating System :: POSIX Operating System :: OS Independent Development Status :: 5 - Production/Stable License :: OSI Approved :: MIT License @@ -41,3 +40,10 @@ universal = 1 install_requires = psutil python_requires = !=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.* +extras_require = + HTTPJSONSource = requests + YAMLSource = pyyaml + TOMLSource = toml + FasterJSON = ujson + cassandra = cassandra-driver + opentracing = opentracing diff --git a/setup.py b/setup.py index 086a2c02..d80c71cd 100644 --- a/setup.py +++ b/setup.py @@ -4,13 +4,5 @@ from satella import __version__ setup(packages=find_packages(include=['satella', 'satella.*']), version=__version__, - test_suite='nose2.collector.collector', - extras_require={ - 'HTTPJSONSource': ['requests'], - 'YAMLSource': ['pyyaml'], - 'TOMLSource': ['toml'], - 'FasterJSON': ['ujson'], - 'cassandra': ['cassandra-driver'], - 'opentracing': ['opentracing'] - } + test_suite='nose2.collector.collector' ) -- GitLab