Skip to content

Commit 6f0c1da

Browse files
committed
Use setuptools_scm to extract version from the git tag
1 parent 04d49e4 commit 6f0c1da

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools_scm]

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
setup(
1313
name="amply",
14-
version="0.1",
1514
packages=find_packages("src"),
1615
license='Eclipse Public License 1.0 (EPL-1.0)',
17-
16+
use_scm_version=True,
17+
setup_requires=['setuptools_scm'],
1818
# Project uses reStructuredText, so ensure that the docutils get
1919
# installed or upgraded on the target machine
2020
install_requires=["docutils>=0.3", "pyparsing"],

0 commit comments

Comments
 (0)