Skip to content

Commit 892dd62

Browse files
committed
chore: use poetry config file for pypi [skip ci]
Signed-off-by: Michele Dolfi <[email protected]>
1 parent 07c6e79 commit 892dd62

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ on:
77
permissions:
88
contents: read
99

10-
env:
11-
# disable keyring (https://github.com/actions/runner-images/issues/6185):
12-
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
13-
1410
jobs:
1511
build-and-publish:
1612
uses: ./.github/workflows/wheels.yml

.github/workflows/wheels.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ jobs:
6060
run: |
6161
poetry run python --version
6262
63+
- name: Setup pypi for poetry
64+
run: |
65+
poetry config keyring.enabled false
66+
poetry config pypi-token.pypi ${{ secrets.PIPY_TOKEN }}
67+
6368
- name: Convert python version to cpXYZ
6469
run: |
6570
version=${{ matrix.python-version }}
@@ -140,14 +145,14 @@ jobs:
140145
run: |
141146
ls -l ./
142147
ls -l ./dist
143-
poetry publish --dry-run --no-interaction -vvv --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
148+
poetry publish --dry-run --no-interaction -vvv
144149
145150
- name: publish wheels (on publishing) [macos]
146151
if: ${{ matrix.os.platform == 'macos' && startsWith(github.ref, 'refs/tags/') }}
147152
run: |
148153
ls -l ./
149154
ls -l ./dist
150-
poetry publish --no-interaction -vvv --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
155+
poetry publish --no-interaction -vvv
151156
152157
- name: Build wheels [linux]
153158
if: matrix.os.name == 'ubuntu-latest'
@@ -175,12 +180,12 @@ jobs:
175180
run: |
176181
ls -l ./
177182
ls -l ./dist
178-
poetry publish --dry-run --no-interaction -vvv --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
183+
poetry publish --dry-run --no-interaction -vvv
179184
180185
- name: publish wheels (on publishing) [linux]
181186
if: ${{ matrix.os.platform == 'linux' && startsWith(github.ref, 'refs/tags/') }}
182187
run: |
183188
ls -l ./
184189
ls -l ./dist
185-
poetry publish --no-interaction -vvv --username=__token__ --password=${{ secrets.PYPI_TOKEN }}
190+
poetry publish --no-interaction -vvv
186191

0 commit comments

Comments
 (0)