Skip to content

Commit

Permalink
Require scmver 1.7+
Browse files Browse the repository at this point in the history
  • Loading branch information
hattya committed Feb 20, 2024
1 parent 78c8722 commit b3b6291
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"setuptools >= 61.0",
"scmver",
"scmver[toml] >= 1.7",
]
build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -49,6 +49,11 @@ zopfli = [
"*.pyi",
]

[tool.scmver]
spec = "micro"
write-to = "zopfli/__version__.py"
fallback = {attr = "__version__:version", path = "zopfli"}

[tool.coverage.run]
branch = true

Expand Down
6 changes: 0 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,4 @@ def run(self):
cmdclass={
'test': test,
},
scmver={
'root': os.path.dirname(os.path.abspath(__file__)),
'spec': 'micro',
'write_to': os.path.join('zopfli', '__version__.py'),
'fallback': ['__version__:version', 'zopfli'],
},
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ deps =
flake8 >= 3.6
flake8-bugbear
mypy
scmver
scmver[toml] >= 1.7
passenv = *FLAGS, DISTUTILS_*, INCLUDE, LC_*, LIB, MSSdk, Program*, SETUPTOOLS_*
commands =
# test
Expand Down

0 comments on commit b3b6291

Please sign in to comment.