Skip to content

Commit

Permalink
Automatically determine version from vcs tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkjt2000 committed Feb 6, 2022
1 parent 07b4f83 commit e2ff102
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Setup:
```
pipx install poetry
pipx inject poetry poetry-dynamic-versioning
pipx install tox
pipx inject tox tox-poetry
```
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"

0 comments on commit e2ff102

Please sign in to comment.