chore: updates build process
This commit is contained in:
8
.github/workflows/build-and-uplod.yml
vendored
8
.github/workflows/build-and-uplod.yml
vendored
@@ -27,19 +27,21 @@ jobs:
|
|||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.10"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: poetry install
|
||||||
poetry self add "poetry-dynamic-versioning[plugin]"
|
|
||||||
if [ -f pyproject.toml ]; then poetry install; fi
|
|
||||||
- name: Build Python Package
|
- name: Build Python Package
|
||||||
run: |
|
run: |
|
||||||
poetry build -f sdist
|
poetry build -f sdist
|
||||||
poetry install
|
poetry install
|
||||||
echo "Builded DicePlayer - $(poetry version)"
|
echo "Builded DicePlayer - $(poetry version)"
|
||||||
|
|
||||||
- name: Configure PyPI
|
- name: Configure PyPI
|
||||||
run: |
|
run: |
|
||||||
poetry config repositories.pypi https://upload.pypi.org/legacy/
|
poetry config repositories.pypi https://upload.pypi.org/legacy/
|
||||||
poetry config pypi-token.pypi ${{secrets.PYPI_TOKEN}}
|
poetry config pypi-token.pypi ${{secrets.PYPI_TOKEN}}
|
||||||
|
|
||||||
- name: Upload Python Package
|
- name: Upload Python Package
|
||||||
run: |
|
run: |
|
||||||
poetry publish --repository pypi
|
poetry publish --repository pypi
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "diceplayer"
|
name = "diceplayer"
|
||||||
version = "0.0.0"
|
|
||||||
description = ""
|
description = ""
|
||||||
authors = [
|
authors = [
|
||||||
{name="Vitor Hideyoshi", email="vitor.h.n.batista@gmail.com"},
|
{name="Vitor Hideyoshi", email="vitor.h.n.batista@gmail.com"},
|
||||||
@@ -9,6 +8,7 @@ authors = [
|
|||||||
license = "GPL-2.0-only"
|
license = "GPL-2.0-only"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
dynamic = [
|
dynamic = [
|
||||||
|
"version",
|
||||||
"dependencies",
|
"dependencies",
|
||||||
"requires-python"
|
"requires-python"
|
||||||
]
|
]
|
||||||
@@ -19,6 +19,7 @@ diceplayer = "diceplayer.__main__:main"
|
|||||||
|
|
||||||
# POETRY
|
# POETRY
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
|
version = "0.0.0"
|
||||||
packages = [
|
packages = [
|
||||||
{ include = "diceplayer" }
|
{ include = "diceplayer" }
|
||||||
]
|
]
|
||||||
@@ -38,12 +39,15 @@ black = "^24.4.2"
|
|||||||
pre-commit = "^3.7.1"
|
pre-commit = "^3.7.1"
|
||||||
poethepoet = "^0.27.0"
|
poethepoet = "^0.27.0"
|
||||||
|
|
||||||
|
[tool.poetry.requires-plugins]
|
||||||
|
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
|
||||||
|
|
||||||
[tool.poetry-dynamic-versioning]
|
[tool.poetry-dynamic-versioning]
|
||||||
enable = true
|
enable = true
|
||||||
vcs = "git"
|
vcs = "git"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
|
||||||
build-backend = "poetry_dynamic_versioning.backend"
|
build-backend = "poetry_dynamic_versioning.backend"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user