Handle versioning manually (because setuptools_scm is mean and won't work with release tarballs ;-;)

This commit is contained in:
Gnarwhal 2024-08-01 06:16:09 +00:00
parent 11740120ac
commit 82619349b0
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
4 changed files with 4 additions and 9 deletions

3
.gitignore vendored
View file

@ -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

View file

@ -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"

View file

@ -21,7 +21,7 @@ import time
import tomllib
import subprocess
import sys
from _version import version
from sshare.version import version
class Config:
def __init__(self):

1
src/sshare/version.py Normal file
View file

@ -0,0 +1 @@
version = "1.0.0"