-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- install and run tests using conda - no deployment yet
- Loading branch information
1 parent
d506d46
commit 9c4adb6
Showing
4 changed files
with
144 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
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,8 @@ | ||
CONDA_BUILD_SYSROOT: | ||
- /opt/MacOSX10.13.sdk # [osx and x86_64] | ||
- /opt/MacOSX11.0.sdk # [osx and arm64] | ||
python: | ||
- "3.12" | ||
- "3.11" | ||
- "3.10" | ||
- "3.9" |
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,39 @@ | ||
package: | ||
name: mdrefine | ||
version: __VERSION__ | ||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
number: 0 | ||
noarch: python | ||
script: "{{ PYTHON }} -m pip install . --no-deps -vv" | ||
|
||
requirements: | ||
host: | ||
- python >=3.9 | ||
- pip | ||
run: | ||
__REQUIRED__ | ||
- python >=3.9 | ||
|
||
test: | ||
imports: | ||
- MDRefine | ||
#commands: | ||
# - bussilab check --import | ||
|
||
about: | ||
home: https://github.com/bussilab/MDRefine | ||
license: LGPL-2.1 | ||
license_family: GPL | ||
summary: '__SUMMARY__' | ||
description: | | ||
__DESCRIPTION__ | ||
#doc_url: https://bussilab.github.io/doc-py-bussilab | ||
#dev_url: https://github.com/bussilab/py-bussilab | ||
|
||
extra: | ||
recipe-maintainers: | ||
- GiovanniBussi |
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,41 @@ | ||
import ast | ||
import re | ||
from MDRefine import _required_ | ||
from MDRefine import __version__ | ||
|
||
def readme(): | ||
with open('README.md') as f: | ||
return f.read() | ||
|
||
def description(): | ||
from MDRefine import __doc__ as doc | ||
return doc.partition('\n')[0] | ||
|
||
with open('conda/meta.yaml.in') as f: | ||
recipe=f.read() | ||
|
||
recipe=re.sub("__VERSION__",__version__,recipe) | ||
|
||
match=re.search("( *)(__REQUIRED__)",recipe) | ||
|
||
requirements="" | ||
|
||
for r in ast.literal_eval(str(_required_)): | ||
requirements+=match.group(1)+"- " + r+"\n" | ||
|
||
recipe=re.sub("( *)(__REQUIRED__)\n",requirements,recipe) | ||
|
||
recipe=re.sub("__SUMMARY__",description(),recipe) | ||
|
||
match=re.search("( *)(__DESCRIPTION__)",recipe) | ||
|
||
description="" | ||
|
||
for r in readme().split("\n"): | ||
description+=match.group(1)+r+"\n" | ||
|
||
recipe=re.sub("( *)(__DESCRIPTION__)",description,recipe) | ||
|
||
with open('conda/meta.yaml',"w") as f: | ||
f.write(recipe) | ||
|