UPDATE: Adds fixes to python upload script
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
6aa73171c7
commit
7777f8e5d6
22
.github/workflows/pypi.yml
vendored
22
.github/workflows/pypi.yml
vendored
@@ -115,6 +115,28 @@ jobs:
|
|||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
env:
|
env:
|
||||||
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TEST_API_TOKEN }}
|
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TEST_API_TOKEN }}
|
||||||
|
MATURIN_REPOSITORY_URL: "https://test.pypi.org/legacy/"
|
||||||
|
with:
|
||||||
|
command: upload
|
||||||
|
args: --skip-existing *
|
||||||
|
working-directory: bindings/python
|
||||||
|
|
||||||
|
publish-pypi:
|
||||||
|
if: ${{ github.event.inputs.release == 'true' }}
|
||||||
|
name: >-
|
||||||
|
Publish Python 🐍 distribution 📦 to PyPI
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [linux, windows, macos, sdist]
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: wheels
|
||||||
|
path: bindings/python/
|
||||||
|
- name: Publish distribution 📦 to PyPI
|
||||||
|
uses: PyO3/maturin-action@v1
|
||||||
|
env:
|
||||||
|
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
MATURIN_REPOSITORY_URL: "https://upload.pypi.org/legacy/"
|
||||||
with:
|
with:
|
||||||
command: upload
|
command: upload
|
||||||
args: --skip-existing *
|
args: --skip-existing *
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ classifiers = [
|
|||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Topic :: Software Development :: Libraries",
|
"Topic :: Software Development :: Libraries",
|
||||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||||
"Office/Business :: Financial :: Spreadsheet",
|
"Topic :: Office/Business :: Financial :: Spreadsheet",
|
||||||
]
|
]
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Nicolás Hatcher", email = "nicolas@theuniverse.today" },
|
{ name = "Nicolás Hatcher", email = "nicolas@theuniverse.today" },
|
||||||
|
|||||||
Reference in New Issue
Block a user