Skip to content

Commit

Permalink
Merge pull request #191 from nnsnodnb/dynamic-versioning
Browse files Browse the repository at this point in the history
Configure poetry-dynamic-versioning
  • Loading branch information
nnsnodnb authored Jan 23, 2024
2 parents 8ecb61c + 83935ac commit 489d9d9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
pip install -U pip pipx
pipx install poetry
poetry run pip install -U setuptools pip
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Configure poetry
uses: actions/setup-python@v5
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
shell: bash
run: |
poetry install --sync --no-root
poetry self add "poetry-dynamic-versioning[plugin]"
echo "${{ secrets.VOIP_PEM_BASE64 }}" | base64 -d > ./tests/clients/voip/dummy.pem
- name: Run pytest
Expand Down
1 change: 1 addition & 0 deletions kalyke/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@
"VoIPApnsConfig",
"exceptions",
]
__version__ = "0.0.0"
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kalyke-apns"
version = "1.0.0"
version = "0.0.0" # replacing poetry-dynamic-versioning
description = "A library for interacting with APNs and VoIP using HTTP/2."
authors = ["Yuya Oka <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -41,9 +41,14 @@ coveralls = "^3.3.1"
pytest-httpx = ">=0.21.3,<0.29.0"
pytest-asyncio = ">=0.20.3,<0.24.0"

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "^((?P<epoch>\\d+)!)?(?P<base>\\d+(\\.\\d+)*)"

[build-system]
requires = ["poetry-core>=1.4.0"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.4.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.black]
line-length = 120
Expand Down

0 comments on commit 489d9d9

Please sign in to comment.