Skip to content

Commit dc244d4

Browse files
committed
Remove Twine uploads from CI.
The Twine command failed to run. I'll have to fix this and redeploy.
1 parent aff2fef commit dc244d4

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
- name: Install Python dependencies
129129
run: |
130130
python -m pip install --upgrade pip
131-
pip install pytest pytest-cov pytest-benchmark build twine
131+
pip install pytest pytest-cov pytest-benchmark build
132132
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
133133
- name: Initialize package
134134
run: |
@@ -148,13 +148,6 @@ jobs:
148148
if: runner.os != 'Windows'
149149
run: cat /tmp/xvfb.log
150150
- uses: codecov/codecov-action@v3
151-
- name: Upload to PyPI
152-
if: startsWith(github.ref, 'refs/tags/') && runner.os != 'Linux'
153-
env:
154-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
155-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
156-
run: |
157-
twine upload --skip-existing dist/*
158151
- uses: actions/upload-artifact@v3
159152
if: runner.os == 'Linux'
160153
with:
@@ -223,7 +216,7 @@ jobs:
223216
- name: Install Python dependencies
224217
run: |
225218
python -m pip install --upgrade pip
226-
pip install twine cibuildwheel==2.3.1
219+
pip install cibuildwheel==2.3.1
227220
- name: Build wheels
228221
run: |
229222
python -m cibuildwheel --output-dir wheelhouse
@@ -245,13 +238,6 @@ jobs:
245238
name: wheels-linux
246239
path: wheelhouse/*.whl
247240
retention-days: 7
248-
- name: Upload to PyPI
249-
if: startsWith(github.ref, 'refs/tags/')
250-
env:
251-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
252-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
253-
run: |
254-
twine upload --skip-existing wheelhouse/*
255241

256242
build-macos:
257243
needs: [black, isort, flake8, mypy]
@@ -271,7 +257,7 @@ jobs:
271257
# https://github.com/actions/checkout/issues/290
272258
run: git describe --tags
273259
- name: Install Python dependencies
274-
run: pip3 install wheel twine -r requirements.txt
260+
run: pip3 install -r requirements.txt
275261
- name: Prepare package
276262
# Downloads SDL2 for the later step.
277263
run: python3 setup.py || true
@@ -290,12 +276,6 @@ jobs:
290276
name: wheels-macos
291277
path: wheelhouse/*.whl
292278
retention-days: 7
293-
- name: Upload to PyPI
294-
if: startsWith(github.ref, 'refs/tags/')
295-
env:
296-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
297-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
298-
run: twine upload --skip-existing wheelhouse/*
299279

300280
publish:
301281
needs: [build]

0 commit comments

Comments
 (0)