Skip to content

Commit

Permalink
Unpin setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
flozz committed Nov 22, 2024
1 parent 868e484 commit 00cdea4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 43 deletions.
86 changes: 44 additions & 42 deletions .github/workflows/python-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,42 @@ on:
tags:
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
- "v[0-9]+\\.[0-9]+\\.[0-9]+-[0-9]+"
branches:
- "fix-windows-build"

jobs:

build_sdist:
# build_sdist:

name: "Source distribution"
runs-on: ubuntu-latest
# name: "Source distribution"
# runs-on: ubuntu-latest

steps:
# steps:

- name: "Checkout the repository"
uses: actions/checkout@v4
with:
submodules: true
# - name: "Checkout the repository"
# uses: actions/checkout@v4
# with:
# submodules: true

- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.13"
# - name: "Set up Python"
# uses: actions/setup-python@v5
# with:
# python-version: "3.13"

- name: "Install python dependencies"
run: |
pip install setuptools
# - name: "Install python dependencies"
# run: |
# pip install setuptools

- name: "Build source distribution"
run: |
python setup.py sdist
# - name: "Build source distribution"
# run: |
# python setup.py sdist

- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: sdist
path: dist/
retention-days: 1
# - name: "Upload artifacts"
# uses: actions/upload-artifact@v4
# with:
# name: sdist
# path: dist/
# retention-days: 1

build_wheels:

Expand Down Expand Up @@ -74,26 +76,26 @@ jobs:
path: ./wheelhouse/*.whl
retention-days: 1

publish_pypi:
# publish_pypi:

name: "Publish packages on PyPI"
runs-on: ubuntu-latest
needs:
- build_sdist
- build_wheels
# name: "Publish packages on PyPI"
# runs-on: ubuntu-latest
# needs:
# - build_sdist
# - build_wheels

steps:
# steps:

- name: "Download artifacts"
uses: actions/download-artifact@v4
# - name: "Download artifacts"
# uses: actions/download-artifact@v4

- name: "Move packages to the dist/ folder"
run: |
mkdir dist/
mv sdist/* dist/
mv wheels-*/*.whl dist/
# - name: "Move packages to the dist/ folder"
# run: |
# mkdir dist/
# mv sdist/* dist/
# mv wheels-*/*.whl dist/

- name: "Publish packages on PyPI"
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
# - name: "Publish packages on PyPI"
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools<72"]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

0 comments on commit 00cdea4

Please sign in to comment.