From 7401b9ac57115a95dcb6250beddc3ff78da588b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Wed, 25 Mar 2020 17:18:51 +0000 Subject: Remove support for `setup.py test`. As per https://github.com/pypa/setuptools/issues/1684, the test command in setuptools is deprecated, so let's not go out of our way to have it work correctly. Travis is not depending on this feature at all. --- setup.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/setup.py b/setup.py index 8f4aa51..26a9bcb 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,7 @@ # # SPDX-License-Identifier: MIT -import sys - from setuptools import find_packages, setup -from setuptools.command.test import test as TestCommand extras_require = { # These are all the drivers' dependencies. Optional dependencies are @@ -44,15 +41,6 @@ tests_require.extend(all_require) extras_require["all"] = all_require -class PyTestCommand(TestCommand): - def run_tests(self): - # import here, cause outside the eggs aren't loaded - import pytest - - errno = pytest.main([]) - sys.exit(errno) - - setup( python_requires="~=3.7", packages=find_packages(exclude=["test", "udev"]), @@ -61,5 +49,4 @@ setup( tests_require=tests_require, extras_require=extras_require, entry_points={"console_scripts": ["glucometer=glucometerutils.glucometer:main"]}, - cmdclass={"test": PyTestCommand,}, ) -- cgit v1.2.3