-
Notifications
You must be signed in to change notification settings - Fork 8
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
b5f91b8
commit 5dec8a2
Showing
35 changed files
with
695 additions
and
94 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
Oops, something went wrong.