From 953ea0fd2b1e755ac13a8957461f2a449642645d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sat, 16 May 2020 16:24:14 +0100 Subject: Move more setup() parameters in setup.cfg. This leaves only very few parameters to setup(), one of which is calculated programmatically so cannot be moved at all. --- setup.cfg | 9 +++++++++ setup.py | 6 +----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/setup.cfg b/setup.cfg index a6cb959..74d28d1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,6 +27,15 @@ classifiers = Intended Audience :: End Users/Desktop Topic :: Scientific/Engineering :: Medical Science Apps. +[options] +python_requires = ~= 3.7 +install_requires = + attrs +packages = find: + +[options.data_files] +lib/udev/rules = + udev/69-glucometerutils.rules [tool:pytest] addopts = diff --git a/setup.py b/setup.py index 19b5f87..b2bcd95 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ # SPDX-FileCopyrightText: © 2013 The glucometerutils Authors # SPDX-License-Identifier: MIT -from setuptools import find_packages, setup +from setuptools import setup # Ensure it's present. import setuptools_scm # noqa: F401 @@ -45,10 +45,6 @@ extras_require["all"] = all_require setup( - python_requires="~=3.7", - packages=find_packages(exclude=["test", "udev"]), - data_files=[("lib/udev/rules", ["udev/69-glucometerutils.rules"])], - install_requires=["attrs"], extras_require=extras_require, entry_points={"console_scripts": ["glucometer=glucometerutils.glucometer:main"]}, ) -- cgit v1.2.3