Skip to content

Commit

Permalink
fix release (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderland authored Aug 17, 2024
1 parent 5ccab8e commit dd089f7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- name: Install dependencies
run: |
pip3 install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install --with dev,test
- name: Run tests
Expand All @@ -33,6 +34,5 @@ jobs:
- name: Release to PyPI
env:
POETRY_HTTP_BASIC_KATRAIN_USERNAME: ${{ secrets.PYPI_USER }}
POETRY_HTTP_BASIC_KATRAIN_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --verbose
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- name: Install dependencies
run: |
pip3 install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
poetry install --with dev,test
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.poetry]
name = "KaTrain"
version = "0.0.0" # Placeholder. The poetry-dynamic-versioning sets the version
Expand All @@ -19,34 +15,38 @@ classifiers = [
"Topic :: Games/Entertainment :: Board Games"
]

[tool.poetry-dynamic-versioning]
enable = true

[tool.poetry-dynamic-versioning.from-file]
source = "katrain/core/constants.py"
pattern = "^VERSION\\s*=\\s*\"(.*)\""

[tool.poetry.dependencies]
python = ">=3.9,<4.0"
kivy = {extras = ["full"], version = ">=2.1.0"}
kivymd = "==0.104.1" # TODO: upgrade this, the latest version is 1.1.1
ffpyplayer = "*"
urllib3 = "*"
pygame = {version = "*", markers = "platform_system == 'Darwin'"} # some mac versions need this for kivy
screeninfo = {version = "*", markers = "platform_system != 'Darwin'"} # for screen resolution, has problems on macos
chardet = "*" # for automatic encoding detection
pygame = {version = "^2.0", markers = "platform_system == 'Darwin'"} # some mac versions need this for kivy
screeninfo = {version = "^0.8.1", markers = "platform_system != 'Darwin'"} # for screen resolution, has problems on macos
chardet = "^5.2.0" # for automatic encoding detection
# Avoid PyPI/Poetry problem: https://github.com/python-poetry/poetry/issues/9293
docutils = ">=0.21.2"

[tool.poetry.group.dev.dependencies]
black = "*"
polib = "*"
black = "^24.8.0"
polib = "^1.2.0"

[tool.poetry.group.test.dependencies]
pytest = "*"
pytest = "^8.3.2"

[tool.poetry.scripts]
katrain = "katrain.__main__:run_app"

[tool.black]
line-length = 120

[tool.poetry-dynamic-versioning]
enable = true

[tool.poetry-dynamic-versioning.from-file]
source = "katrain/core/constants.py"
pattern = "^VERSION\\s*=\\s*\"(.*)\""

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

0 comments on commit dd089f7

Please sign in to comment.