From a58cfed19c55fb239680cd9d464c295efcc7a865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Wed, 25 Mar 2020 17:17:24 +0000 Subject: Move static descriptions to `setup.cfg` simplifying `setup.py`. This removes a number of fixed strings from the Python side of the setup, and prefers referencing the `README.md` file by name. --- setup.cfg | 23 +++++++++++++++++++++++ setup.py | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/setup.cfg b/setup.cfg index 81b33c5..006215e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,26 @@ +[metadata] +name = glucometerutils +description = Glucometer access utilities +long_description = file:README.md +long_description_content_type: text/markdown +author = Diego Elio Pettenò +author_email = flameeyes@flameeyes.com +license = MIT +url = https://flameeyes.com/p/glucometerutils +keywords = + glucometer + diabetes +classifiers = + Programming Language :: Python + Programming Language :: Python :: 3 + Development Status :: 4 - Beta + Environment :: Console + Operating System :: OS Independent + License :: OSI Approved :: MIT License + Intended Audience :: End Users/Desktop + Topic :: Scientific/Engineering :: Medical Science Apps. + + [tool:pytest] addopts = --color=yes diff --git a/setup.py b/setup.py index 587e695..8f4aa51 100644 --- a/setup.py +++ b/setup.py @@ -53,31 +53,8 @@ class PyTestCommand(TestCommand): sys.exit(errno) -with open("README.md", "rt") as fh: - long_description = fh.read() - - setup( - name="glucometerutils", - version="1", - description="Glucometer access utilities", - long_description=long_description, - long_description_content_type="text/markdown", - author="Diego Elio Pettenò", - author_email="flameeyes@flameeyes.com", - url="https://www.flameeyes.com/p/glucometerutils", - keywords=["glucometer", "diabetes"], python_requires="~=3.7", - classifiers=[ - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Development Status :: 4 - Beta", - "Environment :: Console", - "Operating System :: OS Independent", - "License :: OSI Approved :: MIT License", - "Intended Audience :: End Users/Desktop", - "Topic :: Scientific/Engineering :: Medical Science Apps.", - ], packages=find_packages(exclude=["test", "udev"]), data_files=[("lib/udev/rules", ["udev/69-glucometerutils.rules"]),], install_requires=["attrs",], -- cgit v1.2.3