forked from emscripten-forge/recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pycalphad (emscripten-forge#1273)
- Loading branch information
1 parent
ce2ee17
commit 5d91f87
Showing
2 changed files
with
71 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
context: | ||
version: 0.11.0 | ||
|
||
package: | ||
name: pycalphad | ||
version: ${{ version }} | ||
|
||
source: | ||
sha256: 6fc874a37582c35964c672424e65c940579b5e0fbd74bdb41015a21833643eb7 | ||
url: https://files.pythonhosted.org/packages/3c/64/6fb88736abea123c0aac68dd847af5d77d0f0343c3275b78a6f3f63dac5f/pycalphad-${{ version }}.tar.gz | ||
|
||
|
||
build: | ||
number: 0 | ||
script: ${PYTHON} -m pip install . | ||
|
||
requirements: | ||
build: | ||
- cross-python_${{ target_platform }} | ||
- ${{ compiler('cxx') }} | ||
- python | ||
- cython | ||
- numpy>=2.0 | ||
- setuptools-scm | ||
- scipy | ||
- pip | ||
host: | ||
- python | ||
run: | ||
- matplotlib | ||
- numpy | ||
- pint | ||
- pyparsing | ||
- pytest | ||
- python-symengine | ||
- runtype | ||
- scipy | ||
- tinydb | ||
- typing-extensions # drop when pycalphad drops support for Python<3.13 | ||
- xarray | ||
|
||
tests: | ||
- script: pytester | ||
requirements: | ||
build: | ||
- pytester | ||
run: | ||
- pytester-run | ||
files: | ||
recipe: | ||
- test_pycalphad.py | ||
|
||
about: | ||
homepage: https://pycalphad.org/ | ||
license: MIT | ||
license_file: LICENSE.txt | ||
summary: CALPHAD tools for designing thermodynamic models, calculating phase diagrams and investigating phase equilibria. | ||
description: | | ||
pycalphad is a free and open-source Python library for designing thermodynamic models, calculating phase diagrams and investigating phase equilibria within the CALPHAD method. | ||
documentation: https://pycalphad.org/ | ||
repository: https://github.com/pycalphad/pycalphad | ||
|
||
extra: | ||
recipe-maintainers: | ||
- richardotis | ||
- bocklund | ||
|
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,4 @@ | ||
|
||
def test_pycalphad(): | ||
import pycalphad | ||
wks = pycalphad.Workspace(pycalphad.Database()) |