Skip to content

Commit e063b13

Browse files
authored
ci: use CIBW 2.0 config, Python 3.10 beta testing (#600)
* ci: use CIBW 2.0 config * ci: test on 3.10 too
1 parent dc12ffc commit e063b13

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
include:
5454
- python-version: "3.8"
5555
cmake-extras: "-DCMAKE_CXX_STANDARD=17"
56+
- python-version: "3.10-dev"
5657

5758
name: CMake Python ${{ matrix.python-version }}
5859

@@ -90,12 +91,11 @@ jobs:
9091
with:
9192
submodules: true
9293

93-
- uses: pypa/cibuildwheel@v1.12.0
94+
- uses: pypa/cibuildwheel@v2.0.0a4
9495
env:
95-
CIBW_BUILD: cp38-win_amd64 cp36-manylinux_i686 cp37-macosx_x86_64
96-
CIBW_TEST_EXTRAS: test
97-
CIBW_TEST_COMMAND: pytest {project}/tests
96+
CIBW_BUILD: cp38-win_amd64 cp310-manylinux_i686 cp37-macosx_x86_64
9897
CIBW_BUILD_VERBOSITY: 1
98+
CIBW_PRERELEASE_PYTHONS: 1
9999

100100
- uses: actions/upload-artifact@v2
101101
with:

.github/workflows/wheels.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ on:
2020
env:
2121
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.overrideVersion }}
2222
CIBW_ENVIRONMENT: "PIP_ONLY_BINARY=numpy SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
23-
CIBW_TEST_EXTRAS: test
24-
CIBW_TEST_COMMAND: "pytest {project}/tests"
25-
CIBW_TEST_SKIP: "pp*macos* pp*win* pp27-* *universal2:arm64"
2623

2724
jobs:
2825
build_sdist:
@@ -34,7 +31,7 @@ jobs:
3431
submodules: true
3532

3633
- name: Build SDist
37-
run: pipx run --spec build pyproject-build --sdist
34+
run: pipx run build --sdist
3835

3936
- name: Check metadata
4037
run: pipx run twine check dist/*
@@ -61,7 +58,7 @@ jobs:
6158
with:
6259
platforms: all
6360

64-
- uses: pypa/cibuildwheel@v1.12.0
61+
- uses: pypa/cibuildwheel@v2.0.0a4
6562
env:
6663
CIBW_BUILD: cp${{ matrix.python }}-*
6764
CIBW_ARCHS: ${{ matrix.arch }}
@@ -113,7 +110,7 @@ jobs:
113110
with:
114111
submodules: true
115112

116-
- uses: pypa/cibuildwheel@v1.12.0
113+
- uses: pypa/cibuildwheel@v2.0.0a4
117114
env:
118115
CIBW_BUILD: ${{ matrix.build }}
119116
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,9 @@ ignore = [
8080
"src/boost_histogram/version.py",
8181
"tests/.pytest_cache/**",
8282
]
83+
84+
85+
[tool.cibuildwheel]
86+
test-extras = "test"
87+
test-command = "pytest {project}/tests"
88+
test-skip = ["pp*macos*", "pp*win*", "*universal2:arm64"]

0 commit comments

Comments
 (0)