Skip to content

Commit 46fa129

Browse files
committed
install gmpy2 via pip for python-3.12
1 parent e010a30 commit 46fa129

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
matrix:
1515
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1616
cython: ["cython", "cython<3.0.0"]
17+
exclude:
18+
- python-version: 3.12
19+
cython: cython<3.0.0
1720
steps:
1821
- uses: actions/checkout@v2
1922
with: { submodules: recursive }
@@ -22,8 +25,19 @@ jobs:
2225
- name: Install pplpy dependencies
2326
shell: bash -l {0}
2427
run: |
25-
mamba install --quiet setuptools gmpy2 cysignals ppl "${{matrix.cython}}"
26-
conda list
28+
mamba install --quiet setuptools cysignals ppl gmp mpfr mpc "${{matrix.cython}}"
29+
- name: Install gmpy2 via mamba
30+
shell: bash -l {0}
31+
if: ${{ matrix.python-version != '3.12' }}
32+
run: |
33+
mamba install --quiet gmpy2
34+
python -c 'import gmpy2; print(gmpy2.version())'
35+
- name: Install gmpy2 via pip
36+
shell: bash -l {0}
37+
if: ${{ matrix.python-version == '3.12' }}
38+
run: |
39+
pip install --pre gmpy2==2.2.0a1
40+
python -c 'import gmpy2; print(gmpy2.version())'
2741
- name: Install pplpy
2842
shell: bash -l {0}
2943
run: |

environment.test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- defaults
55
dependencies:
66
- sphinx
7+
- pip
78
- pip:
89
- linkchecker
910
- cython-lint

0 commit comments

Comments
 (0)