Automatically determine version from vcs tags

This commit is contained in:
Kevin Tindall
2022-02-06 08:35:49 -06:00
parent 07b4f830ce
commit e2ff102ee4
2 changed files with 15 additions and 2 deletions

7
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,7 @@
Setup:
```
pipx install poetry
pipx inject poetry poetry-dynamic-versioning
pipx install tox
pipx inject tox tox-poetry
```

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "mcstatus"
version = "8.0.0"
version = "0.0.0" # version is handled by git tags and poetry-dynamic-versioning
description = "A library to query Minecraft Servers for their status and capabilities."
authors = ["Nathan Adams <dinnerbone@dinnerbone.com>"]
license = "Apache-2.0"
@@ -55,9 +55,15 @@ minversion = "6.0"
addopts = "--strict-markers --doctest-modules --cov=mcstatus --cov-append --cov-branch --cov-report=term-missing -vvv --no-cov-on-fail"
testpaths = ["mcstatus/tests"]
[tool.poetry-dynamic-versioning]
bump = true
enable = true
metadata = true
style = "pep440"
[tool.black]
line-length = 127
[build-system]
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"