From 349a9cbd0e41a17f9db70cf3dc5342a766824b68 Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Mon, 9 Sep 2024 17:14:35 +0000 Subject: [PATCH] SETUPTOOLS_SCM_PRETEND_VERSION my beloved?? --- .gitignore | 3 +++ pyproject.toml | 7 +++++-- src/sshare/version.py | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 src/sshare/version.py diff --git a/.gitignore b/.gitignore index 489bdd0..6ddccf8 100644 --- a/.gitignore +++ b/.gitignore @@ -159,3 +159,6 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + +# setuptools_scm version file +src/sshare/version.py diff --git a/pyproject.toml b/pyproject.toml index 9d89d07..216a232 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["setuptools"] +requires = ["setuptools", "setuptools_scm"] build-backend = "setuptools.build_meta" [project] name = "sshare" -version = "2.0.0" +dynamic = ["version"] authors = [ { name = "Gnarwhal", email = "git.aspect893@passmail.net" }, ] @@ -25,3 +25,6 @@ Issues = "https://forge.monodon.me/Gnarwhal/sshare/issues" [project.scripts] sshare = "sshare.main:main" + +[tool.setuptools_scm] +version_file = "src/sshare/version.py" diff --git a/src/sshare/version.py b/src/sshare/version.py deleted file mode 100644 index 1b23640..0000000 --- a/src/sshare/version.py +++ /dev/null @@ -1 +0,0 @@ -version = "2.0.0"