diff --git a/recipes/recipes_emscripten/passagemath-planarity/recipe.yaml b/recipes/recipes_emscripten/passagemath-planarity/recipe.yaml new file mode 100644 index 0000000000..57acd32584 --- /dev/null +++ b/recipes/recipes_emscripten/passagemath-planarity/recipe.yaml @@ -0,0 +1,64 @@ +context: + version: 10.8.6 + +package: + name: passagemath-planarity + version: ${{ version }} + +source: +- url: https://pypi.org/packages/source/p/passagemath-planarity/passagemath_planarity-${{ version }}.tar.gz + sha256: 585780e08837cc2cb1655cadf7dc5c7245aea171e802ea4b1d7d2d4497d045fd + +build: + script: ${{ PYTHON }} -m pip install . + number: 0 + +requirements: + build: + - python + - crossenv >=1.2 + - cross-python_emscripten-wasm32 + - ${{ compiler("c") }} + - ${{ compiler("cxx") }} + - pip + - passagemath-setup + - passagemath-environment + - cython + - cysignals + - pkgconfig + - passagemath-abi == ${{ version }} + host: + - python + - planarity + run: + - python + - cysignals + - passagemath-graphs + +tests: +- script: pytester + files: + recipe: + - test_passagemath_planarity.py + requirements: + build: + - pytester + run: + - pytester-run + - passagemath-repl + +about: + license: GPL-2.0-or-later + license_file: README.rst + summary: 'passagemath: Graph planarity with the edge addition planarity suite' + description: | + Distribution of a part of the Sage library. + It provides a Cython interface to the Edge Addition Planarity Suite. + +extra: + emscripten_tests: + python: + pytest_files: + - test_passagemath_planarity.py + recipe-maintainers: + - mkoeppe diff --git a/recipes/recipes_emscripten/passagemath-planarity/test_passagemath_planarity.py b/recipes/recipes_emscripten/passagemath-planarity/test_passagemath_planarity.py new file mode 100644 index 0000000000..45e0736ce5 --- /dev/null +++ b/recipes/recipes_emscripten/passagemath-planarity/test_passagemath_planarity.py @@ -0,0 +1,5 @@ +import pytest + + +def test_import_passagemath_planarity(): + import passagemath_planarity