Handle versioning manually (because setuptools_scm is mean and won't work with release tarballs ;-;)
This commit is contained in:
parent
11740120ac
commit
7daa55c77d
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
|
# 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.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
# Version file
|
|
||||||
_version.py
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools", "setuptools_scm"]
|
requires = ["setuptools"]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "sshare"
|
name = "sshare"
|
||||||
dynamic = ["version"]
|
version = "1.0.0"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Gnarwhal", email = "git.aspect893@passmail.net" },
|
{ name = "Gnarwhal", email = "git.aspect893@passmail.net" },
|
||||||
]
|
]
|
||||||
|
@ -28,6 +28,3 @@ Issues = "https://forge.monodon.me/Gnarwhal/sshare/issues"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
sshare = "sshare.cli:main"
|
sshare = "sshare.cli:main"
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
|
||||||
version_file = "src/sshare/_version.py"
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ import time
|
||||||
import tomllib
|
import tomllib
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
from _version import version
|
from version import version
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
def __init__(self):
|
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