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

Pin cysignals #59

Merged
merged 4 commits into from
Nov 27, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,4 @@ jobs:
- name: Upload wheels
run: |
# Anaconda denies packages with long descriptions, so set summary to null
anaconda -t ${{ secrets.ANACONDA_API_TOKEN }} upload --force ./repodata/*.whl --summary ""
anaconda -t ${{ secrets.ANACONDA_API_TOKEN }} upload --force ./repodata/*.whl --summary=" " --description=" "
10 changes: 4 additions & 6 deletions packages/altair/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package:
name: altair
version: 5.3.0
version: 5.4.1
top-level:
- altair
source:
url: https://files.pythonhosted.org/packages/46/30/2118537233fa72c1d91a81f5908a7e843a6601ccc68b76838ebc4951505f/altair-5.3.0-py3-none-any.whl
sha256: 7084a1dab4d83c5e7e5246b92dc1b4451a6c68fd057f3716ee9d315c8980e59a
url: https://files.pythonhosted.org/packages/9b/52/4a86a4fa1cc2aae79137cc9510b7080c3e5aede2310d14fae5486feec7f7/altair-5.4.1-py3-none-any.whl
sha256: 0fb130b8297a569d08991fb6fe763582e7569f8a04643bbd9212436e3be04aef
about:
home: https://altair-viz.github.io/
PyPI: https://pypi.org/project/altair
Expand All @@ -19,7 +19,5 @@ requirements:
- typing-extensions
- Jinja2
- jsonschema
- numpy
- pandas
- toolz
- packaging
- narwhals
18 changes: 10 additions & 8 deletions packages/altair/test_altair.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
@run_in_pyodide(packages=["altair"])
def test_altair(selenium):
import altair as alt
import pandas as pd

data = pd.DataFrame(
{
"a": ["A", "B", "C", "D", "E", "F", "G", "H", "I"],
"b": [28, 55, 43, 91, 81, 53, 19, 87, 52],
}
data = alt.Data(
values=[
{"a": "A", "b": 5},
{"a": "B", "b": 3},
{"a": "C", "b": 6},
{"a": "D", "b": 7},
{"a": "E", "b": 2},
]
)
c = alt.Chart(data).mark_bar().encode(x="a", y="b").to_dict()
c = alt.Chart(data).mark_bar().encode(x="a:N", y="b:Q").to_dict()

assert c["mark"]["type"] == "bar"
assert c["encoding"]["x"]["field"] == "a"
assert c["encoding"]["y"]["type"] == "quantitative"
assert "name" in c["data"]
assert "values" in c["data"]
21 changes: 21 additions & 0 deletions packages/clingo/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
name: clingo
version: 5.7.1
top-level:
- clingo
source:
url: https://files.pythonhosted.org/packages/3b/b3/c7b464426f70fe100cb4f3e5b45623e3eb82ea50f1dffdc2f820f1418fe0/clingo-5.7.1.tar.gz
sha256: 17400a1894da46b2d4941a4a85012c98fa8b3c67a5c6b4c73dcd8c8facbc059f
about:
home: https://github.com/potassco/clingo
PyPI: https://pypi.org/project/clingo
summary: CFFI-based bindings to the clingo solver.
license: MIT
requirements:
host:
- cffi
run:
- cffi
extra:
recipe-maintainers:
- peter-gy
25 changes: 25 additions & 0 deletions packages/clingo/test_clingo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from pytest_pyodide import run_in_pyodide


@run_in_pyodide(packages=["clingo"])
def test_clingo(selenium):
from clingo.control import Control
from clingo.symbol import Number

class Context:
def inc(self, x):
return Number(x.number + 1)

def seq(self, x, y):
return [x, y]

def on_model(m):
print(m)

ctl = Control()
program = "\n".join(["p(@inc(10)).", "q(@seq(1,2))."])
ctl.add("base", [], program)

ctl.ground([("base", [])], context=Context())
solution = ctl.solve(on_model=on_model)
assert solution.satisfiable
6 changes: 3 additions & 3 deletions packages/crc32c/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package:
name: crc32c
version: "2.4"
version: 2.7.1
top-level:
- crc32c
source:
url: https://files.pythonhosted.org/packages/6f/19/47ac8d1d5b81a83272fe56d4cf425274437fd619ed0af9a5f9805484748c/crc32c-2.4.tar.gz
sha256: d985c4d9b1a1fd16c593d83f8735a8e4e156790a95338a1e0b199aac51ca1e5e
url: https://files.pythonhosted.org/packages/7f/4c/4e40cc26347ac8254d3f25b9f94710b8e8df24ee4dddc1ba41907a88a94d/crc32c-2.7.1.tar.gz
sha256: f91b144a21eef834d64178e01982bb9179c354b3e9e5f4c803b0e5096384968c
about:
home: https://github.com/ICRAR/crc32c
PyPI: https://pypi.org/project/crc32c
Expand Down
6 changes: 3 additions & 3 deletions packages/duckdb/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package:
name: duckdb
version: 1.1.0
version: 1.1.2
top-level:
- duckdb
source:
url: https://duckdb.github.io/duckdb-pyodide/wheels/duckdb-1.1.0-cp312-cp312-pyodide_2024_0_wasm32.whl
sha256: 5f6dffea55b467b41b329e8117120403cbd63fd8096a046daa740dfc94dfcb66
url: https://duckdb.github.io/duckdb-pyodide/wheels/duckdb-1.1.2-cp312-cp312-pyodide_2024_0_wasm32.whl
sha256: aa794366f7acb924ddd1ecb32a349148a3c1343219a7d9d84812d3dcf47a4404
about:
home: https://github.com/duckdb/duckdb
PyPI: https://pypi.org/project/duckdb
Expand Down
6 changes: 3 additions & 3 deletions packages/lakers-python/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package:
name: lakers-python
version: 0.3.3
version: 0.4.1
top-level:
- lakers
source:
url: https://files.pythonhosted.org/packages/0b/53/4c942f81eb87be878f82331b63c04c7bff6268a837403837a07dfe129e7a/lakers_python-0.3.3.tar.gz
sha256: c0b3cfbc82478bde7dedcf06db275bdce328656361660bae7f527e6de617550c
url: https://files.pythonhosted.org/packages/0e/82/41fcc21dfaeda9646067c403b7e8112fd012766e463ce7d7b7839245d063/lakers_python-0.4.1.tar.gz
sha256: eb0d6e32b75ade0a6d6478c2f1d21af6da130a3aefee667433c5dde2ac2e21f8
requirements:
executable:
- rustup
Expand Down
34 changes: 34 additions & 0 deletions packages/libzfp/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package:
name: libzfp
version: 1.0.1
tag:
- library
- static_library
source:
url: https://github.com/LLNL/zfp/archive/refs/tags/1.0.1.tar.gz
sha256: 4984db6a55bc919831966dd17ba5e47ca7ac58668f4fd278ebd98cd2200da66f

build:
type: static_library
exports: requested
script: |
mkdir -p build
cd build
emcmake cmake ${CMAKE_ARGS} \
-DBUILD_CFP=ON \
-DBUILD_UTILITIES=OFF \
-DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DZFP_ENABLE_PIC=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-s WASM=1" \
-DZFP_WITH_OPENMP=OFF \
-DCMAKE_INSTALL_PREFIX=${WASM_LIBRARY_DIR} \
..

emmake make -j ${PYODIDE_JOBS:-3} install

about:
home: https://zfp.llnl.gov/
summary: Open-source software for compressed floating-point arrays
license: BSD-3-Clause
8 changes: 4 additions & 4 deletions packages/micropip/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package:
name: micropip
# This version needs to be consistent with docs/requirements-doc.txt
version: 0.6.0
version: 0.7.1
tag:
- always
top-level:
- micropip

source:
sha256: d6ebd9581a2f446141f782f813c3b9a41efdebedddd9d2e0cc11b2cee3d23761
url: https://files.pythonhosted.org/packages/98/aa/080602cd5f4cba1e6db3a0b9a3b1e756802029e6d9b30650e027c3a84c47/micropip-0.6.0-py3-none-any.whl
sha256: 7a012413e7cc70c5a39f025f96a3c86ba49d2aaf527640f06f2270426122e68e
url: https://files.pythonhosted.org/packages/3b/1c/774c0ec38815f3b694187e0f86b2bbe53e68ac14844d39d82059858eea9f/micropip-0.7.1-py3-none-any.whl

requirements:
run:
- packaging
about:
home: https://github.com/pyodide/micropip
PyPI: https://pypi.org/project/micropip
license: MPL-2.0
6 changes: 3 additions & 3 deletions packages/msprime/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package:
name: msprime
version: 1.3.1
version: 1.3.3
top-level:
- msprime
source:
url: https://files.pythonhosted.org/packages/9c/c6/d2c24086da4492fe2c9d281d237b5fd09e5bf5c92a8956efad7522cf96b1/msprime-1.3.1.tar.gz
sha256: b3f62cd516ad2e43c8412ea1f242acad1bc939391cfe9caa19625874e2e34835
url: https://files.pythonhosted.org/packages/70/84/72a914d91c3e9cea91b8089ddc2a32cc9bdee50eda7e8900be6be70d1fdb/msprime-1.3.3.tar.gz
sha256: d8ae798076167f632b8fd7eccd5089faaa84c9034ca69422f886425f94a5b01b
build:
script: |
export LIBGSL_INCLUDE_PATH=$(pkg-config --cflags-only-I --dont-define-prefix gsl)
Expand Down
6 changes: 3 additions & 3 deletions packages/pydantic/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package:
name: pydantic
version: 2.8.2
version: 2.9.2
top-level:
- pydantic
source:
sha256: 6f62c13d067b0755ad1c21a34bdd06c0c12625a22b0fc09c6b149816604f7c2a
url: https://files.pythonhosted.org/packages/8c/99/d0a5dca411e0a017762258013ba9905cd6e7baa9a3fd1fe8b6529472902e/pydantic-2.8.2.tar.gz
sha256: d155cef71265d1e9807ed1c32b4c8deec042a44a50a4188b25ac67ecd81a9c0f
url: https://files.pythonhosted.org/packages/a9/b7/d9e3f12af310e1120c21603644a1cd86f59060e040ec5c3a80b8f05fae30/pydantic-2.9.2.tar.gz
requirements:
run:
- typing-extensions
Expand Down
9 changes: 3 additions & 6 deletions packages/pydantic_core/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package:
name: pydantic_core
version: 2.23.1
version: 2.25.1
top-level:
- pydantic_core
source:
url: https://files.pythonhosted.org/packages/60/a9/a64afaeecc30a42142f5e60bb61a1ec4817e90c2d1c0c7b242082f61ed00/pydantic_core-2.23.1.tar.gz
sha256: 12543919dbf3021e17b9e2cd5cd1b570c6585794fa487339b5b95564b9689452
requirements:
executable:
- rustup
url: https://github.com/pydantic/pydantic-core/releases/download/v2.25.1/pydantic_core-2.25.1-cp312-cp312-emscripten_3_1_58_wasm32.whl
sha256: f4b77016b1511e54a8c6bd833bb68e190b96989ba9997f9e0f023cfb0f8a16c2
about:
home: https://github.com/pydantic/pydantic-core
PyPI: https://pypi.org/project/pydantic_core
Expand Down
1 change: 1 addition & 0 deletions packages/pygame-ce/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ build:
-sUSE_LIBPNG=1
-sUSE_GIFLIB=1
-sUSE_HARFBUZZ=1
-Wno-unreachable-code-fallthrough
ldflags: |
-sRELOCATABLE=1
-sUSE_SDL=2
Expand Down
23 changes: 23 additions & 0 deletions packages/rateslib/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package:
name: rateslib
version: 1.5.0
top-level:
- rateslib
source:
url: https://files.pythonhosted.org/packages/02/d7/7695bb1b6a240ecfae77804d3fc242e30582fd83973f76dda03b23d921a6/rateslib-1.5.0.tar.gz
sha256: 7c7af2707f20974a70403689f84905757a4ed084e4c92229388d2fc30b331b04
requirements:
run:
- numpy
- pandas
- matplotlib
executable:
- rustup
about:
home: https://github.com/attack68/rateslib
PyPI: https://pypi.org/project/rateslib
summary: A fixed income library for trading interest rates
license: CC-BY-NC-ND-4.0
extra:
recipe-maintainers:
- NickAltmann
17 changes: 17 additions & 0 deletions packages/rateslib/test_rateslib.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import pytest
from pytest_pyodide import run_in_pyodide


@pytest.mark.driver_timeout(60)
@run_in_pyodide(packages=["rateslib"])
def test_add_tenor(selenium):
import datetime

import rateslib as rl

start_date = datetime.datetime(2024, 10, 29)
end_date = datetime.datetime(2024, 10, 31)

test_date = rl.add_tenor(start_date, "2b", "F", "nyc")

assert end_date == test_date
8 changes: 5 additions & 3 deletions packages/rebound/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: rebound
version: 3.24.2
version: 4.4.3
top-level:
- rebound
build:
Expand All @@ -12,10 +12,12 @@ build:
cp librebound.cpython-*.so $WASM_LIBRARY_DIR/lib/

source:
url: https://files.pythonhosted.org/packages/5c/66/7564ac591bb088d7f35a59d560b5c26426bb8ef5415522232819fe11c45a/rebound-3.24.2.tar.gz
sha256: a3c5d4c6a10b9c1538e1051edcd6341ef3d13142b698ee9c4a1f112d9684d803
url: https://files.pythonhosted.org/packages/9d/f5/93f5abaf2c796e35b775e6fd395c2fd3729c17701fcb90fb4ed052fdd465/rebound-4.4.3.tar.gz
sha256: 8dd2fc69f4db4609abeb50048583d0428c716cd3eab11df868358f5384d826cf
patches:
- patches/0001-fix-install_name.patch
- patches/0002-fix-output.patch
- patches/0003-no-emscripten.patch

requirements:
run:
Expand Down
38 changes: 25 additions & 13 deletions packages/rebound/patches/0001-fix-install_name.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
Index: rebound-3.24.2/setup.py
===================================================================
--- rebound-3.24.2.orig/setup.py
+++ rebound-3.24.2/setup.py
@@ -23,8 +23,8 @@ extra_link_args=[]
From 0a6cc79e6814d7e2dbc637541cad86cebc47f855 Mon Sep 17 00:00:00 2001
From: Hanno Rein <[email protected]>
Date: Wed, 6 Nov 2024 17:37:22 -0500
Subject: [PATCH 3/3] install_name

---
setup.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 6443cb27..965b2fc9 100644
--- a/setup.py
+++ b/setup.py
@@ -23,8 +23,8 @@ except:
extra_link_args=[]
if sys.platform == 'darwin':
from distutils import sysconfig
vars = sysconfig.get_config_vars()
- vars['LDSHARED'] = vars['LDSHARED'].replace('-bundle', '-shared')
config_vars = sysconfig.get_config_vars()
- config_vars['LDSHARED'] = config_vars['LDSHARED'].replace('-bundle', '-shared')
- extra_link_args=['-Wl,-install_name,@rpath/librebound'+suffix]
+ # vars['LDSHARED'] = vars['LDSHARED'].replace('-bundle', '-shared')
+ # extra_link_args=['-Wl,-install_name,@rpath/librebound'+suffix]

libreboundmodule = Extension('librebound',
sources = [ 'src/rebound.c',
+ #config_vars['LDSHARED'] = config_vars['LDSHARED'].replace('-bundle', '-shared')
+ #extra_link_args=['-Wl,-install_name,@rpath/librebound'+suffix]
if sys.platform == 'win32':
extra_compile_args=[ghash_arg, '-DLIBREBOUND', '-D_GNU_SOURCE', '-DSERVER']
else:
--
2.39.5 (Apple Git-154)

Loading
Loading