mirror of
https://github.com/deesiigneer/pyspapi.git
synced 2026-04-20 04:25:25 +00:00
refactor: update Python publish workflow to use Poetry for dependency management
This commit is contained in:
20
.github/workflows/python-publish.yml
vendored
20
.github/workflows/python-publish.yml
vendored
@@ -17,20 +17,26 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ 3.12 ]
|
||||
python-version: [3.12]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install Poetry
|
||||
run: |
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install twine
|
||||
- name: Compile package
|
||||
run: |
|
||||
python3 setup.py sdist
|
||||
run: poetry install --no-interaction
|
||||
|
||||
- name: Build package
|
||||
run: poetry build
|
||||
|
||||
- name: Publish package
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
|
||||
@@ -15,9 +15,14 @@ Repository = "https://github.com/deesiigneer/pyspapi"
|
||||
"Issue Tracker" = "https://github.com/deesiigneer/pyspapi/issues"
|
||||
Discord = "https://discord.com/invite/VbyHaKRAaN"
|
||||
|
||||
[dependency-groups]
|
||||
[project.optional-dependencies]
|
||||
docs = [
|
||||
"sphinx>=7,<9",
|
||||
"sphinx-autobuild>=2025.8.25,<2026.0.0",
|
||||
"pydata-sphinx-theme>=0.16.1,<0.17.0",
|
||||
]
|
||||
dev = ["ruff>=0.14,<0.15", "toml-sort>=0.24,<0.25"]
|
||||
docs = ["sphinx>=7,<9", "sphinx-autobuild (>=2025.8.25,<2026.0.0)", "pydata-sphinx-theme (>=0.16.1,<0.17.0)"]
|
||||
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user