Add version file information (because setuptools_scm is mean and won't work with release tarballs ;-;)
This commit is contained in:
parent
11740120ac
commit
e6d07367e0
3 changed files with 16 additions and 8 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"
|
||||
|
|
14
src/sshare/_version.py
Normal file
14
src/sshare/_version.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
TYPE_CHECKING = False
|
||||
if TYPE_CHECKING:
|
||||
from typing import Tuple, Union
|
||||
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
||||
else:
|
||||
VERSION_TUPLE = object
|
||||
|
||||
version: str
|
||||
__version__: str
|
||||
__version_tuple__: VERSION_TUPLE
|
||||
version_tuple: VERSION_TUPLE
|
||||
|
||||
__version__ = version = '1.0.0'
|
||||
__version_tuple__ = version_tuple = (1, 0, 0)
|
Loading…
Add table
Add a link
Reference in a new issue