summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.