Skip to content

Commit 4ec3a4b

Browse files
Merge pull request #22 from oscarbenjamin/tmp_flint_290
maint: update versions for built wheels (flint 2.9.0, arb 2.23.0)
2 parents 00699af + 855cd02 commit 4ec3a4b

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

.github/workflows/buildwheel.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v3
17-
- uses: actions/setup-python@v2
17+
18+
- uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.10'
1821

1922
- name: Build wheels
20-
uses: pypa/cibuildwheel@v2.3.1
23+
uses: pypa/cibuildwheel@v2.11.2
2124
env:
22-
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-*
25+
CIBW_BUILD: cp39-* cp310-* cp311-*
2326
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_*"
2427
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
2528
CIBW_BEFORE_ALL_LINUX: bin/cibw_before_build_linux.sh
@@ -31,7 +34,7 @@ jobs:
3134
LD_LIBRARY_PATH=$(pwd)/.local/lib:$LD_LIBRARY_PATH
3235
CIBW_TEST_COMMAND: python -c 'import flint; print(str(flint.fmpz(2)))'
3336

34-
- uses: actions/upload-artifact@v2
37+
- uses: actions/upload-artifact@v3
3538
with:
3639
path: wheelhouse/*.whl
3740

@@ -43,11 +46,11 @@ jobs:
4346
fail-fast: false
4447
matrix:
4548
os: [ubuntu-20.04, macOS-10.15]
46-
python-version: ['3.7', '3.8', '3.9', '3.10']
49+
python-version: ['3.9', '3.10', '3.11']
4750

4851
steps:
49-
- uses: actions/checkout@v2
50-
- uses: actions/setup-python@v2
52+
- uses: actions/checkout@v3
53+
- uses: actions/setup-python@v4
5154
with:
5255
python-version: ${{ matrix.python-version }}
5356
- uses: actions/download-artifact@v3

bin/build_dependencies_unix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ cd ..
149149
# #
150150
# ------------------------------------------------------------------------- #
151151

152-
curl -O https://www.flintlib.org/flint-$FLINTVER.tar.gz
152+
curl -O -L https://www.flintlib.org/flint-$FLINTVER.tar.gz
153153
tar xf flint-$FLINTVER.tar.gz
154154
cd flint-$FLINTVER
155155
./configure --prefix=$PREFIX\

bin/build_variables.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ GMPVER=6.2.1
1717
YASMVER=1.3.0
1818
MPIRVER=3.0.0
1919
MPFRVER=4.1.0
20-
FLINTVER=2.8.4
21-
ARBVER=2.22.0
20+
FLINTVER=2.9.0
21+
ARBVER=2.23.0

src/flint/_flint.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,9 @@ cdef extern from "flint/fmpq.h":
532532
cdef extern from "flint/fmpq_poly.h":
533533
ctypedef struct fmpq_poly_struct:
534534
fmpz_struct * coeffs
535-
fmpz_t den
536535
long alloc
537536
long length
537+
fmpz_t den
538538
ctypedef fmpq_poly_struct fmpq_poly_t[1]
539539
void fmpq_poly_init(fmpq_poly_t poly)
540540
void fmpq_poly_init2(fmpq_poly_t poly, long alloc)
@@ -703,7 +703,7 @@ cdef extern from "flint/fmpq_mat.h":
703703
cdef extern from "flint/arith.h":
704704
void arith_number_of_partitions(fmpz_t res, ulong n)
705705
int arith_moebius_mu(fmpz_t n)
706-
void arith_divisor_sigma(fmpz_t v, fmpz_t n, ulong k)
706+
void arith_divisor_sigma(fmpz_t v, ulong k, fmpz_t n)
707707
void arith_euler_phi(fmpz_t v, fmpz_t n)
708708
void arith_bell_number(fmpz_t v, ulong n)
709709
void arith_euler_number(fmpz_t v, ulong n)

src/flint/fmpz.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ cdef class fmpz(flint_scalar):
559559
605263138639095300
560560
"""
561561
cdef fmpz v = fmpz()
562-
arith_divisor_sigma(v.val, n.val, k)
562+
arith_divisor_sigma(v.val, k, n.val)
563563
return v
564564

565565
def euler_phi(n):

0 commit comments

Comments
 (0)