Skip to content

Commit

Permalink
Sync packages (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 authored Jan 14, 2025
1 parent 790ac51 commit 7d5ace1
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 8 deletions.
19 changes: 19 additions & 0 deletions packages/apsw/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package:
name: apsw
version: 3.47.2.0
top-level:
- apsw
source:
url: https://files.pythonhosted.org/packages/e8/0b/de1376f0ffaec714eff65a203d1b86a3ff6aac3ef61ca70be63f0b516da2/apsw-3.47.2.0.tar.gz
sha256: 95d03c1236bb247d7b2241eda229bc9025fb6edb2b49257fc52a0ee64f5b36bc
test:
imports:
- apsw
about:
home: https://github.com/rogerbinns/apsw
PyPI: https://pypi.org/project/apsw
summary: Another Python SQLite Wrapper
license: any-OSI
extra:
recipe-maintainers:
- airen1986
18 changes: 18 additions & 0 deletions packages/apsw/test_apsw.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from pytest_pyodide import run_in_pyodide


@run_in_pyodide(packages=["apsw"])
async def apsw_test_helper(selenium):
import apsw

assert apsw.using_amalgamation

connection = apsw.Connection(":memory:")
connection.execute("create table point(x,y,z)")
connection.execute("insert into point values(1, 2, 3)")
row = connection.execute("select * from point").fetchone()
assert row == (1, 2, 3)


def test_apsw(selenium):
apsw_test_helper(selenium)
15 changes: 15 additions & 0 deletions packages/css-inline/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package:
name: css-inline
version: 0.14.6
top-level:
- css_inline
source:
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
sha256: d8ba5ceb0362092d051683a3f56dd04d34bfd34c00ab646d3ca04972bb852d03
about:
home: https://github.com/Stranger6667/css-inline
summary: High-performance library for inlining CSS into HTML 'style' attributes
license: MIT
extra:
recipe-maintainers:
- Stranger6667
17 changes: 17 additions & 0 deletions packages/css-inline/test_css_inline.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from pytest_pyodide import run_in_pyodide


@run_in_pyodide(packages=["css_inline"])
def test_inline_html(selenium):
import css_inline

html = """<html>
<head>
<style>h1 { color:blue; }</style>
</head>
<body>
<h1>Big Text</h1>
</body>
</html>"""

assert '<h1 style="color: blue;">Big Text</h1>' in css_inline.inline(html)
10 changes: 7 additions & 3 deletions packages/nlopt/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package:
name: nlopt
version: 2.7.0
version: 2.9.1
top-level:
- nlopt

source:
url: https://github.com/stevengj/nlopt/archive/v2.7.0.tar.gz
sha256: b881cc2a5face5139f1c5a30caf26b7d3cb43d69d5e423c9d78392f99844499f
url: https://github.com/stevengj/nlopt/archive/v2.9.1.tar.gz
sha256: 1e6c33f8cbdc4138d525f3326c231f14ed50d99345561e85285638c49b64ee93

extras:
- - extras/setup.py
Expand All @@ -25,3 +25,7 @@ build:
about:
home: https://github.com/stevengj/nlopt
license: LGPL-2.1+
extra:
recipe-maintainers:
- mgreminger
- tom-dudley
2 changes: 1 addition & 1 deletion packages/nlopt/test_nlopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def h(x, grad):

opt.add_inequality_constraint(h)

opt.set_ftol_rel(1.0e-6)
opt.set_ftol_rel(1.0e-2)

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

Expand Down
6 changes: 3 additions & 3 deletions packages/python-sat/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package:
name: python-sat
version: 1.8.dev13
version: 1.8.dev14
top-level:
- pysat
source:
sha256: e9e31bd54ac1f6939433b0bcebb04807138d142187d6ea9dbac1b2240723b642
url: https://files.pythonhosted.org/packages/09/12/fb72411a01ae70d36b4fa5795a45125f1138da066fec66e8e3c66da08747/python-sat-1.8.dev13.tar.gz
sha256: bbec9e329f2fc5b19b1517a9476b632dc1df39a755b29ddb805b78fad5f5d722
url: https://files.pythonhosted.org/packages/3e/44/92239f998dca4bff108e1feb824c53bbba6c9f87c6d3625268c3887cb302/python_sat-1.8.dev14.tar.gz

patches:
- patches/force_malloc.patch
Expand Down
3 changes: 2 additions & 1 deletion tools/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# Add any upper bounds for packages here to ensure that
# their builds succeed, or those for packages that rely
# on them at build time.
maturin<1.8
maturin<1.8 # https://github.com/pyodide/pyodide/pull/5283
pyo3<0.23.4 # https://github.com/pyodide/pyodide/issues/5321

0 comments on commit 7d5ace1

Please sign in to comment.