Skip to content

Commit 541b409

Browse files
richardkissmariano54
authored andcommitted
Use setuptoools_scm for version numbers. (#42)
1 parent effb5c2 commit 541b409

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pytest==5.2.2
4343
pytest-asyncio==0.10.0
4444
PyYAML==5.1.2
4545
regex==2019.11.1
46+
setuptools-scm==3.3.3
4647
six==1.12.0
4748
toml==0.10.0
4849
typed-ast==1.4.0

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414

1515
setup(
1616
name="chiablockchain",
17-
version="0.1.2",
1817
author="Mariano Sorgente",
1918
author_email="[email protected]",
2019
description="Chia proof of space plotting, proving, and verifying (wraps C++)",
2120
license="Apache License",
2221
python_requires=">=3.7, <4",
2322
keywords="chia blockchain node",
2423
install_requires=dependencies + dev_dependencies,
24+
setup_requires=["setuptools_scm"],
25+
use_scm_version=True,
2526
long_description=open("README.md").read(),
2627
zip_safe=False,
2728
)

src/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from setuptools_scm import get_version
2+
3+
__version__ = version = get_version()

0 commit comments

Comments
 (0)