Skip to content

Commit 7d5ace1

Browse files
authored
Sync packages (#61)
1 parent 790ac51 commit 7d5ace1

File tree

8 files changed

+82
-8
lines changed

8 files changed

+82
-8
lines changed

packages/apsw/meta.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package:
2+
name: apsw
3+
version: 3.47.2.0
4+
top-level:
5+
- apsw
6+
source:
7+
url: https://files.pythonhosted.org/packages/e8/0b/de1376f0ffaec714eff65a203d1b86a3ff6aac3ef61ca70be63f0b516da2/apsw-3.47.2.0.tar.gz
8+
sha256: 95d03c1236bb247d7b2241eda229bc9025fb6edb2b49257fc52a0ee64f5b36bc
9+
test:
10+
imports:
11+
- apsw
12+
about:
13+
home: https://github.com/rogerbinns/apsw
14+
PyPI: https://pypi.org/project/apsw
15+
summary: Another Python SQLite Wrapper
16+
license: any-OSI
17+
extra:
18+
recipe-maintainers:
19+
- airen1986

packages/apsw/test_apsw.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
from pytest_pyodide import run_in_pyodide
2+
3+
4+
@run_in_pyodide(packages=["apsw"])
5+
async def apsw_test_helper(selenium):
6+
import apsw
7+
8+
assert apsw.using_amalgamation
9+
10+
connection = apsw.Connection(":memory:")
11+
connection.execute("create table point(x,y,z)")
12+
connection.execute("insert into point values(1, 2, 3)")
13+
row = connection.execute("select * from point").fetchone()
14+
assert row == (1, 2, 3)
15+
16+
17+
def test_apsw(selenium):
18+
apsw_test_helper(selenium)

packages/css-inline/meta.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package:
2+
name: css-inline
3+
version: 0.14.6
4+
top-level:
5+
- css_inline
6+
source:
7+
url: https://github.com/Stranger6667/css-inline/releases/download/python-v0.14.6/css_inline-0.14.6-cp37-abi3-pyodide_2024_0_wasm32.whl
8+
sha256: d8ba5ceb0362092d051683a3f56dd04d34bfd34c00ab646d3ca04972bb852d03
9+
about:
10+
home: https://github.com/Stranger6667/css-inline
11+
summary: High-performance library for inlining CSS into HTML 'style' attributes
12+
license: MIT
13+
extra:
14+
recipe-maintainers:
15+
- Stranger6667
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from pytest_pyodide import run_in_pyodide
2+
3+
4+
@run_in_pyodide(packages=["css_inline"])
5+
def test_inline_html(selenium):
6+
import css_inline
7+
8+
html = """<html>
9+
<head>
10+
<style>h1 { color:blue; }</style>
11+
</head>
12+
<body>
13+
<h1>Big Text</h1>
14+
</body>
15+
</html>"""
16+
17+
assert '<h1 style="color: blue;">Big Text</h1>' in css_inline.inline(html)

packages/nlopt/meta.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package:
22
name: nlopt
3-
version: 2.7.0
3+
version: 2.9.1
44
top-level:
55
- nlopt
66

77
source:
8-
url: https://github.com/stevengj/nlopt/archive/v2.7.0.tar.gz
9-
sha256: b881cc2a5face5139f1c5a30caf26b7d3cb43d69d5e423c9d78392f99844499f
8+
url: https://github.com/stevengj/nlopt/archive/v2.9.1.tar.gz
9+
sha256: 1e6c33f8cbdc4138d525f3326c231f14ed50d99345561e85285638c49b64ee93
1010

1111
extras:
1212
- - extras/setup.py
@@ -25,3 +25,7 @@ build:
2525
about:
2626
home: https://github.com/stevengj/nlopt
2727
license: LGPL-2.1+
28+
extra:
29+
recipe-maintainers:
30+
- mgreminger
31+
- tom-dudley

packages/nlopt/test_nlopt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def h(x, grad):
5353

5454
opt.add_inequality_constraint(h)
5555

56-
opt.set_ftol_rel(1.0e-6)
56+
opt.set_ftol_rel(1.0e-2)
5757

5858
x0 = np.array([5, 11])
5959

packages/python-sat/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
package:
22
name: python-sat
3-
version: 1.8.dev13
3+
version: 1.8.dev14
44
top-level:
55
- pysat
66
source:
7-
sha256: e9e31bd54ac1f6939433b0bcebb04807138d142187d6ea9dbac1b2240723b642
8-
url: https://files.pythonhosted.org/packages/09/12/fb72411a01ae70d36b4fa5795a45125f1138da066fec66e8e3c66da08747/python-sat-1.8.dev13.tar.gz
7+
sha256: bbec9e329f2fc5b19b1517a9476b632dc1df39a755b29ddb805b78fad5f5d722
8+
url: https://files.pythonhosted.org/packages/3e/44/92239f998dca4bff108e1feb824c53bbba6c9f87c6d3625268c3887cb302/python_sat-1.8.dev14.tar.gz
99

1010
patches:
1111
- patches/force_malloc.patch

tools/constraints.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
# Add any upper bounds for packages here to ensure that
55
# their builds succeed, or those for packages that rely
66
# on them at build time.
7-
maturin<1.8
7+
maturin<1.8 # https://github.com/pyodide/pyodide/pull/5283
8+
pyo3<0.23.4 # https://github.com/pyodide/pyodide/issues/5321

0 commit comments

Comments
 (0)