summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.com>2020-03-25 18:24:18 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-03-25 18:40:01 +0100
commit02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55 (patch)
treeffcfea316c2ff2f939c9df36c6002512c64ef3e9
parentRemove `tests_require` from `setup.py`. (diff)
downloadglucometerutils-02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55.tar
glucometerutils-02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55.tar.gz
glucometerutils-02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55.tar.bz2
glucometerutils-02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55.tar.lz
glucometerutils-02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55.tar.xz
glucometerutils-02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55.tar.zst
glucometerutils-02fdf3a2daa5ec2a2e8681c18bb0144b5347ac55.zip
-rw-r--r--pyproject.toml9
-rw-r--r--setup.py2
2 files changed, 11 insertions, 0 deletions
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.