aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-10-30 23:32:35 +0200
committerTulir Asokan <tulir@maunium.net>2020-10-30 23:32:35 +0200
commitd3adedf3dfaede63d5b03b263c2cfaad291c4ffe (patch)
treeb42b6b2c7aaf50025a3ab549a620e12971e1a773 /setup.py
parent78fdb6f1755aacd32cd9e5e664610276e4451272 (diff)
Add fancy versioning stuff
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 4458999..524eaa7 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,7 @@
import setuptools
+from sticker.get_version import git_tag, git_revision, version, linkified_version
+
with open("requirements.txt") as reqs:
install_requires = reqs.read().splitlines()
@@ -8,9 +10,18 @@ try:
except IOError:
long_desc = "Failed to read README.md"
+with open("sticker/version.py", "w") as version_file:
+ version_file.write(f"""# Generated in setup.py
+
+git_tag = {git_tag!r}
+git_revision = {git_revision!r}
+version = {version!r}
+linkified_version = {linkified_version!r}
+""")
+
setuptools.setup(
name="maunium-stickerpicker",
- version="0.1.0",
+ version=version,
url="https://github.com/maunium/stickerpicker",
author="Tulir Asokan",
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage