From 3a426ccbcf63b27911e43be5ff305a3968224439 Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Tue, 5 Apr 2022 18:43:04 -0400 Subject: [PATCH] use setuptools_scm for versioning --- hetmatpy/__init__.py | 1 - pyproject.toml | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hetmatpy/__init__.py b/hetmatpy/__init__.py index 6c8e6b9..e69de29 100644 --- a/hetmatpy/__init__.py +++ b/hetmatpy/__init__.py @@ -1 +0,0 @@ -__version__ = "0.0.0" diff --git a/pyproject.toml b/pyproject.toml index 276f8e0..561fae7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=61", "wheel"] +requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=6.2"] build-backend = "setuptools.build_meta" # https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html @@ -48,8 +48,8 @@ Tracker = "https://github.com/hetio/hetmatpy/issues" Homepage = "https://het.io/software/" Publication = "https://greenelab.github.io/connectivity-search-manuscript/" -[tool.setuptools.dynamic] -version = {attr = "hetmatpy.__version__"} +[tool.setuptools_scm] +# enable https://github.com/pypa/setuptools_scm # https://pycqa.github.io/isort/docs/configuration/config_files.html [tool.isort]