Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: publish release on GitHub too #547

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
git tag $version
git push origin $version
pip install poetry
poetry self add poetry-version-plugin
poetry self add poetry-dynamic-versioning[plugin]
poetry install --sync
poetry build
gh release create --generate-notes $version ./dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
12 changes: 10 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ authors = ["Mehdi Abaakouk <[email protected]>"]
readme = "README.md"
license = "Apache License"

[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-dynamic-versioning]
enable = true
vcs = "git"
dirty = true
pattern = "default-unprefixed"

[tool.poetry.dependencies]
python = ">=3.10"
httpx = ">=0.20.0"
Expand All @@ -14,8 +24,6 @@ aiofiles = ">=23.2.1,<25.0.0"
click = "^8.1.7"
click-default-group = "^1.2.4"

[tool.poetry-version-plugin]
source = "git-tag"

[tool.poetry.group.dev.dependencies]
mypy = {version = ">=0.930"}
Expand Down