Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync recipe (20250127) #67

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/Pillow/test_pillow.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def test_pillow(selenium):
img.save(imgfile, format=ext.upper())
_img = Image.open(imgfile)
assert _img
assert (
imgfile.getvalue()[:4] == signature
), f"Wrong signature on image format: {ext}"
assert imgfile.getvalue()[:4] == signature, (
f"Wrong signature on image format: {ext}"
)


@run_in_pyodide(
Expand Down
2 changes: 1 addition & 1 deletion packages/aiohttp/aiohttp_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def _request(
url, auth_from_url = strip_auth_from_url(url)
if auth and auth_from_url:
raise ValueError(
"Cannot combine AUTH argument with " "credentials encoded in URL"
"Cannot combine AUTH argument with credentials encoded in URL"
)

if auth is None:
Expand Down
2 changes: 2 additions & 0 deletions packages/arro3-compute/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package:
name: arro3-compute
version: 0.4.1
# TODO: re-enable once we have a build for abi 2025_0
_disabled: true
top-level:
- "arro3.compute"
source:
Expand Down
2 changes: 2 additions & 0 deletions packages/arro3-core/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package:
name: arro3-core
version: 0.4.1
# TODO: re-enable once we have a build for abi 2025_0
_disabled: true
top-level:
- "arro3.core"
source:
Expand Down
2 changes: 2 additions & 0 deletions packages/arro3-io/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package:
name: arro3-io
version: 0.4.1
# Disabled until we have a wheel with the new abi
_disabled: true
top-level:
- "arro3.io"
source:
Expand Down
3 changes: 1 addition & 2 deletions packages/bcrypt/test_bcrypt.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,7 @@ def test_checkpw_extra_data(selenium):
# UTF-8 Greek characters "odysseus" / "telemachos"
8,
b"\xe1\xbd\x88\xce\xb4\xcf\x85\xcf\x83\xcf\x83\xce\xb5\xcf\x8d\xcf\x82",
b"\xce\xa4\xce\xb7\xce\xbb\xce\xad\xce\xbc\xce\xb1\xcf\x87\xce\xbf"
b"\xcf\x82",
b"\xce\xa4\xce\xb7\xce\xbb\xce\xad\xce\xbc\xce\xb1\xcf\x87\xce\xbf\xcf\x82",
b"\x43\x66\x6c\x9b\x09\xef\x33\xed\x8c\x27\xe8\xe8\xf3\xe2\xd8\xe6",
],
],
Expand Down
6 changes: 3 additions & 3 deletions packages/casadi/test_casadi.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def test_bouncing_ball(selenium, integrator_type):
s_current = s_end

# adding some basic verifications
assert (
len(t_log) == num_steps + 1
), f"Expected {num_steps + 1} time steps, got {len(t_log)}"
assert len(t_log) == num_steps + 1, (
f"Expected {num_steps + 1} time steps, got {len(t_log)}"
)
assert all(h >= 0 for h in h_log), "Height should never be negative"
assert abs(h_log[0] - h0) < 1e-6, "Initial height should match h0"
assert abs(v_log[0] - v0) < 1e-6, "Initial velocity should match v0"
Expand Down
3 changes: 3 additions & 0 deletions packages/clarabel/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package:
name: clarabel
version: 0.9.0
# Clarabel is broken against the rust main branch since 2024-12-15. Re-enable
# when they fix it. See oxfordcontrol/Clarabel.rs#154
_disabled: true
top-level:
- clarabel
source:
Expand Down
2 changes: 0 additions & 2 deletions packages/cryptography/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ source:
build:
script: |
export OPENSSL_DIR=$WASM_LIBRARY_DIR
# Allow linking to native libraries, otherwise libssl and libcrypto will be not linked to the final binary
export RUSTFLAGS="-Z link-native-libraries=yes"
requirements:
run:
- openssl
Expand Down
2 changes: 2 additions & 0 deletions packages/css-inline/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package:
name: css-inline
version: 0.14.6
# TODO: re-enable once we have a build for abi 2025_0
_disabled: true
top-level:
- css_inline
source:
Expand Down
2 changes: 2 additions & 0 deletions packages/duckdb/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package:
name: duckdb
version: 1.1.2
# TODO: re-enable once we have a build for abi 2025_0
_disabled: true
top-level:
- duckdb
source:
Expand Down
2 changes: 2 additions & 0 deletions packages/ewah_bool_utils/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ source:
url: https://files.pythonhosted.org/packages/71/43/241d0b16eaaf9d6383fba0256455cfddc62d9f33301650bc31fa40077e30/ewah_bool_utils-1.2.2.tar.gz
sha256: eb901f46caef189de3a0c1f5ca06287cfaba7976ddf76fa1c1f3bce1b60b7ac3
requirements:
run:
- numpy
host:
- numpy
about:
Expand Down
22 changes: 12 additions & 10 deletions packages/galpy/test_galpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def test_integrate(selenium):
ts = numpy.linspace(0.0, 100.0, 1001)
o = Orbit()
o.integrate(ts, MWPotential2014)
assert (
numpy.fabs(numpy.std(o.E(ts)) / numpy.mean(o.E(ts))) < 1e-10
), "Orbit integration does not conserve energy"
assert numpy.fabs(numpy.std(o.E(ts)) / numpy.mean(o.E(ts))) < 1e-10, (
"Orbit integration does not conserve energy"
)
return None


Expand All @@ -61,12 +61,12 @@ def test_actionAngle(selenium):
all_os = o(ts)
jrs = all_os.jr(pot=MWPotential2014)
jzs = all_os.jz(pot=MWPotential2014)
assert (
numpy.fabs(numpy.std(jrs) / numpy.mean(jrs)) < 1e-4
), "Actions not conserved during orbit integration"
assert (
numpy.fabs(numpy.std(jzs) / numpy.mean(jzs)) < 1e-3
), "Actions not conserved during orbit integration"
assert numpy.fabs(numpy.std(jrs) / numpy.mean(jrs)) < 1e-4, (
"Actions not conserved during orbit integration"
)
assert numpy.fabs(numpy.std(jzs) / numpy.mean(jzs)) < 1e-3, (
"Actions not conserved during orbit integration"
)
return None


Expand Down Expand Up @@ -113,7 +113,9 @@ def check_sigmar_against_jeans(
samp_sigr[ii] / jeans.sigmar(pot, br, beta=beta, dens=dens) - 1.0
)
< tol
), "sigma_r(r) from samples does not agree with that obtained from the Jeans equation"
), (
"sigma_r(r) from samples does not agree with that obtained from the Jeans equation"
)
return None

pot = potential.HernquistPotential(amp=2.3, a=1.3)
Expand Down
24 changes: 24 additions & 0 deletions packages/httpx/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package:
name: httpx
version: 0.28.1
top-level:
- httpx

source:
# Until the PR for emscripten support gets merged, build it from the PR source
url: https://github.com/joemarshall/httpx/archive/refs/heads/pyodide_0_28_1.zip
sha256: 0d9f57da2f5859df7ca147dc32334ee64bc133d2ea9d240964f3c4665c0e0072

test:
imports:
- httpx

about:
home: https://https://github.com/encode/httpx/
PyPI: https://pypi.org/project/httpx
summary: A next generation HTTP client for Python.
license: BSD-3-Clause

extra:
recipe-maintainers:
- joemarshall
3 changes: 3 additions & 0 deletions packages/jsonschema_specifications/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ package:
source:
url: https://files.pythonhosted.org/packages/ee/07/44bd408781594c4d0a027666ef27fab1e441b109dc3b76b4f836f8fd04fe/jsonschema_specifications-2023.12.1-py3-none-any.whl
sha256: 87e4fdf3a94858b8a2ba2778d9ba57d8a9cafca7c7489c46ba0d30a8bc6a9c3c
requirements:
run:
- referencing
about:
home: ""
PyPI: https://pypi.org/project/jsonschema_specifications
Expand Down
1 change: 1 addition & 0 deletions packages/matplotlib-inline/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package:
requirements:
run:
- traitlets
- matplotlib
source:
url: https://files.pythonhosted.org/packages/8f/8e/9ad090d3553c280a8060fbf6e24dc1c0c29704ee7d1c372f0c174aa59285/matplotlib_inline-0.1.7-py3-none-any.whl
sha256: df192d39a4ff8f21b1895d72e6a13f5fcc5099f00fa84384e0ea28c2cc0653ca
Expand Down
2 changes: 1 addition & 1 deletion packages/numpy/test_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_runpythonasync_numpy(selenium_standalone):
@pytest.mark.xfail_browsers(
firefox="Timeout in WebWorker when using numpy in Firefox 87"
)
@pytest.mark.driver_timeout(30)
@pytest.mark.driver_timeout(60)
def test_runwebworker_numpy(selenium_webworker_standalone):
output = selenium_webworker_standalone.run_webworker(
"""
Expand Down
2 changes: 0 additions & 2 deletions packages/orjson/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ source:
requirements:
executable:
- rustup
build:
script: export RUSTFLAGS="-Z link-native-libraries=yes"
about:
home: https://github.com/ijl/orjson
PyPI: https://pypi.org/project/orjson
Expand Down
6 changes: 3 additions & 3 deletions packages/packaging/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package:
name: packaging
version: "23.2"
version: "24.2"
top-level:
- packaging
source:
sha256: 048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5
url: https://files.pythonhosted.org/packages/fb/2b/9b9c33ffed44ee921d0967086d653047286054117d584f1b1a7c22ceaf7b/packaging-23.2.tar.gz
sha256: c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f
url: https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz
patches:
- patches/0001-Add-Pyodide-compatibility.patch
about:
Expand Down
2 changes: 2 additions & 0 deletions packages/polars/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package:
name: polars
version: 1.18.0
# TODO: re-enable once we have a build for abi 2025_0
_disabled: true
top-level:
- polars
# TODO: Upgrade to Rust Nightly 2024-12-19 when adding the sdist instead of the wheel
Expand Down
1 change: 1 addition & 0 deletions packages/primecount/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package:
name: primecount
_disabled: true
version: "7.9"
tag:
- library
Expand Down
3 changes: 3 additions & 0 deletions packages/prompt_toolkit/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ package:
source:
url: https://files.pythonhosted.org/packages/ee/fd/ca7bf3869e7caa7a037e23078539467b433a4e01eebd93f77180ab927766/prompt_toolkit-3.0.43-py3-none-any.whl
sha256: a11a29cb3bf0a28a387fe5122cdb649816a957cd9261dcedf8c9f1fef33eacf6
requirements:
run:
- wcwidth
about:
home: https://github.com/prompt-toolkit/python-prompt-toolkit
PyPI: https://pypi.org/project/prompt_toolkit
Expand Down
2 changes: 2 additions & 0 deletions packages/pyarrow/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package:
name: pyarrow
version: 18.1.0
# TODO: re-enable once we have a build for abi 2025_0
_disabled: true
top-level:
- pyarrow
source:
Expand Down
51 changes: 48 additions & 3 deletions packages/pydantic/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,63 @@
package:
name: pydantic
version: 2.9.2
version: 2.10.5
# Warning: pydantic has a pin on pydantic_core, they need to be updated
# together
top-level:
- pydantic
source:
sha256: d155cef71265d1e9807ed1c32b4c8deec042a44a50a4188b25ac67ecd81a9c0f
url: https://files.pythonhosted.org/packages/a9/b7/d9e3f12af310e1120c21603644a1cd86f59060e040ec5c3a80b8f05fae30/pydantic-2.9.2.tar.gz
url: https://files.pythonhosted.org/packages/6a/c7/ca334c2ef6f2e046b1144fe4bb2a5da8a4c574e7f2ebf7e16b34a6a2fa92/pydantic-2.10.5.tar.gz
sha256: 278b38dbbaec562011d659ee05f63346951b3a248a6f3642e1bc68894ea2b4ff
requirements:
run:
- typing-extensions
- pydantic_core
- annotated-types
test:
imports:
- pydantic
- pydantic.aliases
- pydantic.alias_generators
- pydantic.annotated_handlers
- pydantic.class_validators
- pydantic.color
- pydantic.config
- pydantic.dataclasses
- pydantic.datetime_parse
- pydantic.decorator
- pydantic.deprecated
- pydantic.env_settings
- pydantic.errors
- pydantic.error_wrappers
- pydantic.experimental
- pydantic.fields
- pydantic.functional_serializers
- pydantic.functional_validators
- pydantic.generics
- pydantic.json
- pydantic.json_schema
- pydantic.main
# - pydantic.mypy # Requires extra mypy dependency
- pydantic.networks
- pydantic.parse
- pydantic.plugin
- pydantic.root_model
- pydantic.schema
- pydantic.tools
- pydantic.type_adapter
- pydantic.types
- pydantic.typing
- pydantic.utils
- pydantic.v1
- pydantic.validate_call_decorator
- pydantic.validators
- pydantic.version
- pydantic.warnings
about:
home: https://github.com/samuelcolvin/pydantic
PyPI: https://pypi.org/project/pydantic
summary: Data validation and settings management using python type hints
license: MIT
extra:
recipe-maintainers:
- samuelcolvin
Loading
Loading