-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(release): switch from poetry to pdm for package management
- Loading branch information
Showing
5 changed files
with
309 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,31 +6,18 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
pypi-publish: | ||
name: upload release to PyPI | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ '3.9', '3.10', '3.11', '3.12' ] | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install poetry | ||
run: pip install poetry | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Build wheel | ||
run: poetry build --format wheel | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Conditionally build sdist | ||
- name: Build sdist | ||
if: matrix.python-version == '3.9' | ||
run: poetry build --format sdist | ||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v4 | ||
|
||
- name: Publish package | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
env: | ||
PYPI_USERNAME: __token__ | ||
PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
run: pdm publish --username $PYPI_USERNAME --password $PYPI_PASSWORD |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ | |
from .saucenao import SauceNAO | ||
from .tracemoe import TraceMoe | ||
from .yandex import Yandex | ||
|
||
__version__ = "3.10.8" |
Oops, something went wrong.