Skip to content

Commit 608c100

Browse files
lemenkovhendrikmakaiteriknw
authored
Test against Python 3.14-dev on CI (#225)
* Test against Python 3.14-dev on CI (pytoolz/toolz#592) * Test against 3.14-dev on CI * Fixes to support Python 3.14-dev (#224) * Continue updating to support Python 3.14 Also, remove `versioneer.py` (finally!) and use `setuptools-git-versioning`. Also update how we use `cibuildwheel`--let's see if anything works! * Heh, don't build wheels for android, and skip pypy3.11 with Cython 0.29 * Update .gitignore * Use qemu for other archs * Move more things to pyproject.toml for pep 517 Also, break up QEMU wheel building into three separate jobs * Try to build PyPy wheels (and also GraalPy) * No graalpy for now * Add AUTHORS.md to MANIFEST.in * Skip tests for ios wheels (flaky); some cleanup * Require setuptools >=77 (for updated metadata) * Update to `toolz` 1.1.0 * Add pre-commit hooks; use Trusted Publishing Also, remove `conda.recipe/` * Don't build wheels for PRs by default --------- Co-authored-by: Hendrik Makait <[email protected]> Co-authored-by: Erik Welch <[email protected]>
1 parent 7683a9b commit 608c100

35 files changed

+492
-3172
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/pre-commit.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Alternatively, consider using https://pre-commit.ci/
2+
name: pre-commit checks
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches: [master]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
pre-commit:
14+
name: pre-commit-hooks
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v5
18+
with:
19+
fetch-depth: 0
20+
persist-credentials: false
21+
- uses: actions/setup-python@v6
22+
with:
23+
python-version: "3.13"
24+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
25+
env:
26+
SKIP: "no-commit-to-branch"

.github/workflows/test.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,47 @@ on:
77
- release
88
pull_request:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
runs-on: ${{ matrix.os }}
1316
strategy:
1417
fail-fast: false
1518
matrix:
1619
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
17-
cython-version: ["0.29.37", "3.0.11"]
20+
cython-version: ["0.29.37", "3.1.4"]
1821
python-version:
19-
- "3.8"
2022
- "3.9"
2123
- "3.10"
2224
- "3.11"
2325
- "3.12"
2426
- "3.13"
25-
- "pypy3.8"
27+
- "3.14"
2628
- "pypy3.9"
2729
- "pypy3.10"
30+
- "pypy3.11"
2831
exclude:
2932
- cython-version: "0.29.37"
3033
python-version: "3.13"
34+
- cython-version: "0.29.37"
35+
python-version: "3.14"
36+
- cython-version: "0.29.37"
37+
python-version: "pypy3.11"
3138
steps:
3239
- name: Checkout
33-
uses: actions/checkout@v4
40+
uses: actions/checkout@v5
41+
with:
42+
fetch-depth: 0
43+
persist-credentials: false
3444
- name: Set up Python
35-
uses: actions/setup-python@v5
45+
uses: actions/setup-python@v6
3646
with:
3747
python-version: ${{ matrix.python-version }}
3848
- name: Install dependencies
3949
run: |
40-
python -m pip install --upgrade pip setuptools wheel
50+
python -m pip install --upgrade pip setuptools
4151
pip install cython==${{ matrix.cython-version }} pytest
4252
pip install git+https://github.com/pytoolz/toolz.git
4353
python setup.py build_ext --inplace --with-cython
@@ -51,3 +61,4 @@ jobs:
5161
echo 'cimport cytoolz ; from cytoolz.functoolz cimport memoize' > try_cimport_cytoolz.pyx
5262
cythonize -i try_cimport_cytoolz.pyx
5363
python -c 'import try_cimport_cytoolz'
64+
python -c 'import cytoolz ; print(f"{cytoolz.__version__=}")'

0 commit comments

Comments
 (0)