Skip to content

Commit

Permalink
fixing push to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
cudmore committed Feb 13, 2024
1 parent 9255ac2 commit 6dfa5db
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,44 @@ permissions:
contents: read

jobs:
publish-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
# - ["3.8", "cp38"]
- ["3.9", "cp39"]
- ["3.10", "cp310"]
- ["3.11", "cp311"]
platform: ["manylinux_x86_64"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version[0] }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version[0] }}
cache: pip
cache-dependency-path: setup.py
- name: Install dependencies
run: |
pip install setuptools wheel numpy transonic psutil twine build
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python-version[1] }}-${{ matrix.platform }}
CIBW_BUILD_FRONTEND: "build" # "pip"
with:
output-dir: "dist"
config-file: "pyproject.toml"
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
run: |
git tag
twine upload dist/*manylinux*.whl --verbose
continue-on-error: true
# publish-linux:
# runs-on: ubuntu-latest
# strategy:
# fail-fast: false
# matrix:
# python-version:
# - ["3.8", "cp38"]
# - ["3.9", "cp39"]
# - ["3.10", "cp310"]
# - ["3.11", "cp311"]
# platform: ["manylinux_x86_64"]
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python ${{ matrix.python-version[0] }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version[0] }}
# cache: pip
# cache-dependency-path: setup.py
# - name: Install dependencies
# run: |
# pip install setuptools wheel numpy transonic psutil twine build
# - name: Build wheels
# uses: pypa/[email protected]
# env:
# CIBW_BUILD: ${{ matrix.python-version[1] }}-${{ matrix.platform }}
# CIBW_BUILD_FRONTEND: "build" # "pip"
# with:
# output-dir: "dist"
# config-file: "pyproject.toml"
# - name: Publish
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
# run: |
# git tag
# twine upload dist/*manylinux*.whl --verbose
# continue-on-error: true

publish-windows:
runs-on: windows-latest
Expand Down

0 comments on commit 6dfa5db

Please sign in to comment.