Handle versioning manually (because setuptools_scm is mean and won't work with release tarballs ;-;)
This commit is contained in:
parent
11740120ac
commit
82619349b0
4 changed files with 4 additions and 9 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
1
src/sshare/version.py
Normal file
|
@ -0,0 +1 @@
|
|||
version = "1.0.0"
|
Loading…
Reference in a new issue