From e2ff102ee4a6b19a916289d18d99d231b21f7486 Mon Sep 17 00:00:00 2001 From: Kevin Tindall Date: Sun, 6 Feb 2022 08:35:49 -0600 Subject: [PATCH] Automatically determine version from vcs tags --- CONTRIBUTING.md | 7 +++++++ pyproject.toml | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..bb2c378 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,7 @@ +Setup: +``` +pipx install poetry +pipx inject poetry poetry-dynamic-versioning +pipx install tox +pipx inject tox tox-poetry +``` diff --git a/pyproject.toml b/pyproject.toml index b09a3e9..39c0e86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] 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"