From 1bb280e8a0b9b7b35dcd8ad7d19f5b6796bbaae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Wed, 25 Mar 2020 17:20:43 +0000 Subject: Remove `tests_require` from `setup.py`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This field is deprecated together with the `test` command. Instead, rely on the `dev` extra — which is what Travis CI is already using to install the right set of dependencies. --- setup.py | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/setup.py b/setup.py index 26a9bcb..0ef1c77 100644 --- a/setup.py +++ b/setup.py @@ -21,23 +21,20 @@ extras_require = { "td4277": ["construct", "pyserial", "hidapi"], # These are not drivers, but rather tools and features. "reversing_tools": ["usbmon-tools"], + "dev": [ + "absl-py", + "construct>=2.9", + "mypy", + "pre-commit", + "pytest-timeout>=1.3.0", + "pytest>=3.6.0", + ], } -tests_require = [ - "absl-py", - "construct>=2.9", - "pytest>=3.6.0", - "pytest-timeout>=1.3.0", -] - -# Development and testing dependencies -extras_require["dev"] = tests_require + ["pre-commit", "mypy"] - all_require = [] for extra_require in extras_require.values(): all_require.extend(extra_require) -tests_require.extend(all_require) extras_require["all"] = all_require @@ -46,7 +43,6 @@ setup( packages=find_packages(exclude=["test", "udev"]), data_files=[("lib/udev/rules", ["udev/69-glucometerutils.rules"]),], install_requires=["attrs",], - tests_require=tests_require, extras_require=extras_require, entry_points={"console_scripts": ["glucometer=glucometerutils.glucometer:main"]}, ) -- cgit v1.2.3