-
Notifications
You must be signed in to change notification settings - Fork 5
Build RATP with meson #23
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
Changes from all commits
e820ed8
7bff1df
7eee995
110434e
e968e5b
018e9cb
676a17b
10f7a2a
2b4e4b9
3981c16
7baeb07
f0d98ee
45472f8
12861df
54a7497
b97db2f
5befca6
35b98eb
9296b17
5feeb84
7eef715
24a0e36
7eef19d
0844dde
e672ea6
ab69f16
1abcddb
7ffce88
62a42dc
a8c56df
c250fdf
bfdad54
4e51cc5
e80c89b
572ae6b
c26c720
1e9ddec
b2a2e65
0071772
3c37288
a3e2516
d4efe5b
3e936a4
bae2a21
a3cf59b
17de3e8
e522fea
f1b05f2
f7e815c
d61bd26
e52071b
f017f8b
66937bb
ad13cf8
4844e65
549d94e
0246d67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| version: 2 | ||
|
|
||
| build: | ||
| os: "ubuntu-22.04" | ||
| tools: | ||
| python: "mambaforge-22.9" | ||
|
|
||
| conda: | ||
| environment: conda/environment.yml | ||
|
|
||
| sphinx: | ||
| # Path to your Sphinx configuration file. | ||
| configuration: doc/conf.py |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: ratp_dev | ||
| channels: | ||
| - openalea3 | ||
| - conda-forge | ||
| dependencies: | ||
| - python | ||
| - pip | ||
| - pandoc | ||
| # list here manually conda-only deps (listed in [tool.conda.environment] section of pyproject) | ||
| - openalea.plantgl | ||
| - openalea.mtg | ||
| - pandas | ||
| - numpy | ||
| # let pip install the rest using pyproject.toml (if you are okay with conda/pip mix) | ||
| - pip: | ||
| - -e ..[doc,test] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add blank line |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,72 @@ | ||
| {% set pyproject = load_file_data('../pyproject.toml', from_recipe_dir=True) %} | ||
| {% set name = pyproject.get('project').get('name') %} | ||
| {% set description = pyproject.get('project').get('description') %} | ||
| {% set license = pyproject.get('project').get('license') %} | ||
| {% set home = pyproject.get('project', {}).get('urls', {}).get('Homepage', '') %} | ||
| {% set build_deps = pyproject.get("build-system", {}).get("requires", []) %} | ||
| {% set deps = pyproject.get('project', {}).get('dependencies', []) %} | ||
| {% set conda_deps = pyproject.get('tool', {}).get('conda', {}).get('environment', {}).get('dependencies',[]) %} | ||
| {% set native = 'm2w64-' if win else '' %} | ||
|
|
||
| package: | ||
| name: alinea.pyratp | ||
| version: 2.0.1 | ||
| name: {{ name }} | ||
| version: 1.0.0 | ||
|
|
||
| source: | ||
| path: .. | ||
| path: .. | ||
|
|
||
| build: | ||
| number: 0 | ||
| preserve_egg_dir: True | ||
| script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed --no-build-isolation -vv | ||
|
|
||
| requirements: | ||
| host: | ||
| - python x.x | ||
| - setuptools | ||
| - numpy >=1.25 # [osx] | ||
| - numpy x.x # [not osx] | ||
| build: | ||
| - python {{PY_VER}} | ||
| - numpy x.x # [not osx] | ||
| - numpy >=1.25 # [osx] | ||
| - meson # Maybe deprecated for current version | ||
| - make | ||
| - {{ compiler('fortran') }} # [not win] | ||
| - {{ compiler('c') }} | ||
| #- compilers | ||
| - {{ native }}toolchain # [win] | ||
| - charset-normalizer | ||
| run: | ||
| - python x.x | ||
| - path.py | ||
| - {{ native }}toolchain # [win] | ||
| - {{ pin_compatible('numpy') }} | ||
| - scipy | ||
| - pandas | ||
| - meson # Maybe deprecated for current version | ||
| - charset-normalizer | ||
| host: | ||
| - python | ||
| {% for dep in build_deps %} | ||
| - {{ dep }} | ||
| {% endfor %} | ||
| build: | ||
| - python | ||
| {% for dep in build_deps %} | ||
| - {{ dep }} | ||
| {% endfor %} | ||
| - {{ compiler('fortran') }} # [not win] | ||
| - m2w64-gcc-fortran # [win] | ||
| # - {{ compiler('c') }} | ||
| #- compilers | ||
| - {{ native }}toolchain # [win] | ||
| - charset-normalizer | ||
| run: | ||
| - python | ||
| {% for dep in deps + conda_deps %} | ||
| - {{ dep }} | ||
| {% endfor %} | ||
| - {{ native }}toolchain # [win] | ||
| # - {{ pin_compatible('numpy') }} | ||
| - charset-normalizer | ||
|
|
||
| #- openalea.mtg | ||
| #- openalea.visualea | ||
| test: | ||
| imports: | ||
| - alinea.pyratp | ||
| - alinea.pyratp.pyratp | ||
| requires: | ||
| - pytest | ||
| {% for dep in deps + conda_deps %} | ||
| - {{ dep }} | ||
| {% endfor %} | ||
| imports: | ||
| - {{ name }} | ||
| source_files: | ||
| - test/test_*.py | ||
| - test/data/** | ||
| commands: | ||
| - cd test | ||
| - pytest -v --ignore=test_complet.py | ||
|
|
||
| about: | ||
| home: http://github.com/openalea-incubator/PyRATP | ||
| license: Cecill-C | ||
| summary: RATP is a model to compute Radiation Absorption, Transpiration and Photosynthesis. | ||
| home: {{ home }} | ||
| license: {{ license }} | ||
| summary: {{ description }} | ||
|
|
||
| extra: | ||
| recipe-maintainers: | ||
| - pradal | ||
| recipe-maintainers: | ||
| - pradal | ||
| - baugetfa |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| project('PyRATP', 'c', | ||
| version : '1.0.0', | ||
| license: 'CeCILL-C', | ||
| meson_version: '>=0.64.0', | ||
| default_options : ['warning_level=0'], | ||
| ) | ||
|
|
||
| add_languages('fortran') | ||
|
|
||
| subdir('src/openalea/ratp') |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change it to main before merging