-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55434dd
commit 91ae2d6
Showing
36 changed files
with
687 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
Oops, something went wrong.