From 613b2d7c31d51cc143de53812ee63996a2fb18c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 28 Dec 2017 21:10:01 +0000 Subject: Rewrite setup.py to use setuptools. This should make it easier to add dependencies and so on. --- setup.py | 55 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/setup.py b/setup.py index 82a9d07..247a48b 100644 --- a/setup.py +++ b/setup.py @@ -1,27 +1,38 @@ # -*- coding: utf-8 -*- -from distutils.core import setup +from setuptools import setup, find_packages setup( - name = 'glucometerutils', - packages = ['glucometerutils', 'glucometerutils.drivers', 'glucometerutils.support'], - scripts = ['glucometer.py'], - version = '1', - description = 'Glucometer access utilities', - author = 'Diego Elio Pettenò', - author_email = 'flameeyes@flameeyes.eu', - url = 'https://www.flameeyes.eu/p/glucometerutils', - download_url = 'https://www.flameeyes.eu/files/glucometerutils.tgz', - keywords = ['glucometer', 'diabetes'], - python_requires = '~=3.4', - 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.', - ], + name = 'glucometerutils', + version = '1', + description = 'Glucometer access utilities', + author = 'Diego Elio Pettenò', + author_email = 'flameeyes@flameeyes.eu', + url = 'https://www.flameeyes.eu/p/glucometerutils', + download_url = 'https://www.flameeyes.eu/files/glucometerutils.tgz', + keywords = ['glucometer', 'diabetes'], + python_requires = '~=3.4', + 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']), + ], + extras_require = { + 'test': ['abseil-py'], + }, + entry_points = { + 'console_scripts': [ + 'glucometer=glucometerutils.glucometer:main' + ] + }, ) -- cgit v1.2.3