Skip to content

Commit 8b1e204

Browse files
committed
WIP Restrict install cffi in test_requirements.txt
1 parent 27308ef commit 8b1e204

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/workflows/wheels.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ jobs:
5959
- os: ubuntu-latest
6060
python: "310"
6161
platform: manylinux_x86_64
62-
install_libffi_devel: "1"
6362

6463
# macos builds
6564
- os: macos-latest
@@ -95,10 +94,6 @@ jobs:
9594
CIBW_BUILD_VERBOSITY: 3
9695
CIBW_BEFORE_BUILD: bash {project}/tools/wheels/cibw_before_build.sh {project}
9796
CIBW_BEFORE_TEST: pip install -r {project}/test_requirements.txt
98-
# Installs libffi so that cffi can be built from source when needed
99-
CIBW_BEFORE_TEST_LINUX: >
100-
[[ "${{ matrix.install_libffi_devel }}" == "1" ]] && yum install -y libffi-devel;
101-
pip install -r {project}/test_requirements.txt
10297
CIBW_TEST_COMMAND: bash {project}/tools/wheels/cibw_test_command.sh {project}
10398

10499
- uses: actions/upload-artifact@v2

test_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pytz==2021.3
77
pytest-cov==3.0.0
88
pickle5; python_version == '3.7' and platform_python_implementation != 'PyPy'
99
# for numpy.random.test.test_extending
10-
cffi
10+
cffi; python_version <= '3.10'
1111
# For testing types. Notes on the restrictions:
1212
# - Mypy relies on C API features not present in PyPy
1313
mypy==0.910; platform_python_implementation != "PyPy"

0 commit comments

Comments
 (0)