Skip to content

Commit 7a02074

Browse files
committed
packages/python-flint: New
1 parent a17e610 commit 7a02074

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

packages/python-flint/meta.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package:
2+
name: python-flint
3+
version: 0.5.0
4+
top-level:
5+
- flint
6+
requirements:
7+
host:
8+
- flint
9+
- libgmp
10+
source:
11+
url: https://files.pythonhosted.org/packages/fa/ca/efc70c3371676ad02ecc13c71b3463dcfc35a4c6be0dfd691d066e253b70/python-flint-0.5.0.tar.gz
12+
sha256: 0358f05548d477e23c79dbe15b2449e12e4b3d76af41fb16a4c7d035065b12cd
13+
patches:
14+
- patches/108.patch
15+
build:
16+
cflags: |
17+
-I$(WASM_LIBRARY_DIR)/include
18+
ldflags: |
19+
-L$(WASM_LIBRARY_DIR)/lib
20+
about:
21+
home: https://github.com/flintlib/python-flint
22+
PyPI: https://pypi.org/project/python-flint
23+
summary: Bindings for FLINT and Arb
24+
license: MIT
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from pytest_pyodide import run_in_pyodide
2+
3+
4+
@run_in_pyodide(packages=["python-flint"])
5+
def test_python_flint(selenium):
6+
from flint import fmpz, fmpz_poly
7+
assert fmpz(1000) == 1000
8+
# assert fmpz(1000).partitions_p() == 24061467864032622473692149727991 # timeout
9+
a = fmpz_poly([1,2,3]); b = fmpz_poly([2,3,4])
10+
# assert a.gcd(a * b) == a # timeout

0 commit comments

Comments
 (0)