From 7daa55c77d9edaf92a6414f4f1853a63047f3f4f Mon Sep 17 00:00:00 2001 From: Gnarwhal Date: Thu, 1 Aug 2024 06:16:09 +0000 Subject: [PATCH] Handle versioning manually (because setuptools_scm is mean and won't work with release tarballs ;-;) --- .gitignore | 3 --- pyproject.toml | 7 ++----- src/sshare/cli.py | 2 +- src/sshare/version.py | 1 + 4 files changed, 4 insertions(+), 9 deletions(-) create mode 100644 src/sshare/version.py diff --git a/.gitignore b/.gitignore index 678f87e..489bdd0 100644 --- a/.gitignore +++ b/.gitignore @@ -159,6 +159,3 @@ 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/ - -# Version file -_version.py diff --git a/pyproject.toml b/pyproject.toml index 029509e..cdef342 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["setuptools", "setuptools_scm"] +requires = ["setuptools"] build-backend = "setuptools.build_meta" [project] name = "sshare" -dynamic = ["version"] +version = "1.0.0" authors = [ { name = "Gnarwhal", email = "git.aspect893@passmail.net" }, ] @@ -28,6 +28,3 @@ Issues = "https://forge.monodon.me/Gnarwhal/sshare/issues" [project.scripts] sshare = "sshare.cli:main" - -[tool.setuptools_scm] -version_file = "src/sshare/_version.py" diff --git a/src/sshare/cli.py b/src/sshare/cli.py index 0056170..54b63d3 100644 --- a/src/sshare/cli.py +++ b/src/sshare/cli.py @@ -21,7 +21,7 @@ import time import tomllib import subprocess import sys -from _version import version +from version import version class Config: def __init__(self): diff --git a/src/sshare/version.py b/src/sshare/version.py new file mode 100644 index 0000000..11a716e --- /dev/null +++ b/src/sshare/version.py @@ -0,0 +1 @@ +version = "1.0.0"