From 02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Wed, 25 Mar 2020 17:24:18 +0000 Subject: Use setuptools_scm to handle the packaging and versioning. --- pyproject.toml | 9 +++++++++ setup.py | 2 ++ 2 files changed, 11 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 273b641..5cad3ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,13 @@ # verbose regular expressions by Black. Use [ ] to denote a significant space # character. +[build-system] +requires = [ + 'setuptools >= 42', + 'wheel', + 'setuptools_scm[toml]>=3.4', +] + [tool.black] line-length = 88 target-version = ['py37'] @@ -27,3 +34,5 @@ multi_line_output = 3 include_trailing_comma = true known_first_party = ['glucometerutils'] known_third_party = ['construct', 'hidapi', 'pyserial', 'pyscsi'] + +[tool.setuptools_scm] diff --git a/setup.py b/setup.py index 0ef1c77..b04ea77 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,8 @@ from setuptools import find_packages, setup +import setuptools_scm # Ensure it's present. + extras_require = { # These are all the drivers' dependencies. Optional dependencies are # listed as mandatory for the feature. -- cgit v1.2.3