From 00cdea46ee4b6b78312a3c9073bfca6ad5f0157e Mon Sep 17 00:00:00 2001 From: Fabien LOISON Date: Fri, 22 Nov 2024 15:10:26 +0100 Subject: [PATCH] Unpin setuptools --- .github/workflows/python-packages.yml | 86 ++++++++++++++------------- pyproject.toml | 2 +- 2 files changed, 45 insertions(+), 43 deletions(-) diff --git a/.github/workflows/python-packages.yml b/.github/workflows/python-packages.yml index 4728e2c..1d0b953 100644 --- a/.github/workflows/python-packages.yml +++ b/.github/workflows/python-packages.yml @@ -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: @@ -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 }} diff --git a/pyproject.toml b/pyproject.toml index 979a7e7..fed528d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [build-system] -requires = ["setuptools<72"] +requires = ["setuptools"] build-backend = "setuptools.build_meta"