diff --git a/.github/workflows/python-package-linux.yml b/.github/workflows/python-package-linux.yml deleted file mode 100644 index 05422dda..00000000 --- a/.github/workflows/python-package-linux.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Linux Package - -on: - push: - tags: - - 'v*' - -jobs: - build: - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: '3.10' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install twine - - name: Build manylinux Python wheels - uses: RalfG/python-wheels-manylinux-build@v0.2.2-manylinux2010_x86_64 - with: - python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310' - build-requirements: 'numpy' - - name: Publish wheels to PyPI - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - twine upload wheelhouse/*-manylinux*.whl - - build_aarch64: - - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: '3.10' - - uses: docker/setup-qemu-action@v1 - name: Set up QEMU - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install twine - - name: Build manylinux Python wheels - uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_aarch64 - with: - python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310' - build-requirements: 'numpy' - - name: Publish wheels to PyPI - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - twine upload dist/*-manylinux*.whl diff --git a/.github/workflows/python-package-macos.yml b/.github/workflows/python-package-macos.yml index dfe03553..f4c0bf15 100644 --- a/.github/workflows/python-package-macos.yml +++ b/.github/workflows/python-package-macos.yml @@ -11,7 +11,14 @@ jobs: runs-on: macos-latest strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" steps: - uses: actions/checkout@v2 @@ -23,10 +30,12 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine numpy - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + - name: Build run: | python setup.py bdist_wheel - twine upload dist/* + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: wheels + path: | + dist/* diff --git a/.github/workflows/python-package-win32.yml b/.github/workflows/python-package-win32.yml index 882ffa5d..a3897cb8 100644 --- a/.github/workflows/python-package-win32.yml +++ b/.github/workflows/python-package-win32.yml @@ -11,7 +11,14 @@ jobs: runs-on: windows-latest strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" steps: - uses: actions/checkout@v2 @@ -24,10 +31,12 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine numpy - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + - name: Build run: | python setup.py bdist_wheel - twine upload dist/* + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: wheels + path: | + dist/* diff --git a/.github/workflows/python-package-win64.yml b/.github/workflows/python-package-win64.yml index a98777f5..51b0ef16 100644 --- a/.github/workflows/python-package-win64.yml +++ b/.github/workflows/python-package-win64.yml @@ -11,7 +11,14 @@ jobs: runs-on: windows-latest strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + python-version: + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" steps: - uses: actions/checkout@v2 @@ -24,10 +31,12 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine numpy - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + - name: Build run: | python setup.py bdist_wheel - twine upload dist/* + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: wheels + path: | + dist/*