From 5c74fe543fb258382b223d22df7f8b44d037fbf3 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 17 Dec 2024 09:51:09 +0100 Subject: [PATCH] Build: Update targets, tools and dependencies. --- .github/workflows/ci.yml | 42 ++++++++++++++++++++------------------- requirements-appveyor.txt | 2 +- requirements.txt | 2 +- tox.ini | 4 ++-- 4 files changed, 26 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d79d3d..6b49b10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,12 +9,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Install Python dependencies run: python -m pip install -r requirements.txt @@ -23,13 +23,13 @@ jobs: run: make sdist - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: files: dist/*.tar.gz - name: Upload sdist - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sdist path: dist/*.tar.gz @@ -65,6 +65,8 @@ jobs: pyversion: "cp311*" - image: manylinux_2_28_aarch64 pyversion: "cp312*" + - image: manylinux_2_28_aarch64 + pyversion: "cp313*" - image: musllinux_1_1_aarch64 pyversion: "cp37*" @@ -78,16 +80,18 @@ jobs: pyversion: "cp311*" - image: musllinux_1_1_aarch64 pyversion: "cp312*" + - image: musllinux_1_1_aarch64 + pyversion: "cp313*" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up Python 3.10 - uses: actions/setup-python@v4 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Install Dependencies run: | @@ -101,13 +105,13 @@ jobs: run: cp -v wheelhouse*/fastrlock*.whl dist/ - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: files: dist/*-m*linux*.whl # manylinux / musllinux - name: Archive Wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.image }} path: dist/*-m*linux*.whl # manylinux / musllinux @@ -123,21 +127,19 @@ jobs: os: [macos-latest, windows-latest] python-version: - "2.7" - - "3.5" - - "3.6" - "3.7" - "3.8" - "3.9" - "3.10" - "3.11" - - "3.12-dev" + - "3.12" + - "3.13" + - "3.14-dev" exclude: # fails due to lack of a compatible compiler - os: windows-latest python-version: 2.7 - - os: windows-latest - python-version: 3.5 runs-on: ${{ matrix.os }} @@ -145,10 +147,10 @@ jobs: MACOSX_DEPLOYMENT_TARGET: 10.15 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 if: startsWith(matrix.python-version, '3.') with: python-version: ${{ matrix.python-version }} @@ -162,13 +164,13 @@ jobs: python setup.py bdist_wheel - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') with: files: dist/*.whl - name: Archive Wheels - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.os }}-wheels path: dist/*.whl diff --git a/requirements-appveyor.txt b/requirements-appveyor.txt index 43eb91f..325885e 100644 --- a/requirements-appveyor.txt +++ b/requirements-appveyor.txt @@ -1,7 +1,7 @@ tox pytest coverage -Cython==3.0.2 +Cython==3.0.11 codecov setuptools wheel diff --git a/requirements.txt b/requirements.txt index 96a7edc..2654a8b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -Cython>=3.0.2 +Cython>=3.0.11, <3.1 setuptools wheel diff --git a/tox.ini b/tox.ini index 16dc14f..b1cd63e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{27,35,36,37,38,39,310,311} +envlist = py{27,37,38,39,310,311,312,313} [testenv] platform = @@ -13,7 +13,7 @@ skip_install = true passenv = * commands_pre = - python -m pip install pytest Cython + python -m pip install pytest -r requirements.txt python setup.py build_ext -i python -m pip install .