Skip to content

Commit

Permalink
Build: Update targets, tools and dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Dec 17, 2024
1 parent 7a02e09 commit 5c74fe5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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*"
Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -123,32 +127,30 @@ 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 }}

env:
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 }}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements-appveyor.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tox
pytest
coverage
Cython==3.0.2
Cython==3.0.11
codecov
setuptools
wheel
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Cython>=3.0.2
Cython>=3.0.11, <3.1
setuptools
wheel
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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 =
Expand All @@ -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 .

Expand Down

0 comments on commit 5c74fe5

Please sign in to comment.