Skip to content

Commit a3f1182

Browse files
committed
Fetch package version dynamically
1 parent 8c3ad41 commit a3f1182

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import subprocess
2+
13
from setuptools import setup
24

35
with open("README.md", "r") as fp:
@@ -6,7 +8,7 @@
68

79
setup(
810
name="jsondataclasses",
9-
version="0.0.3",
11+
version=subprocess.check_output(["git", "describe", "--tags"]).decode("ascii").replace("v", "").strip(),
1012
url="https://github.com/issy/python-jsondataclasses",
1113
license="MIT",
1214
description="Typed JSON dataclasses",

0 commit comments

Comments
 (0)