-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake_conda.py
48 lines (43 loc) · 1.17 KB
/
make_conda.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import yaml
import os
import sys
sys.path = [os.path.join(os.path.dirname(os.path.realpath(__file__)), '')] + sys.path
import src.version as version
data = {
"package": {
"name": "cgphylo",
"version": version.__version__
},
"source": {
"url": "https://github.com/genomicepidemiology/CGPhylo/archive/refs/tags/{}.tar.gz".format(version.__version__),
},
"build": {
"number": 0,
"noarch": "python",
"script": "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vvv",
"script_env": ["PYTHONNOUSERSITE=1"]
},
"requirements": {
"host": [
"python >=3.6",
"pip"
],
"run": [
"kma >=1.4.9",
"biopython"
]
},
"about": {
"home": "https://github.com/genomicepidemiology/CGPhylo",
"summary": "CGPhylo - core genome phylogenetics",
"license": "Apache-2.0"
},
"extra": {
"recipe-maintainers": ["malhal"]
}
}
# Convert the data to YAML and print it
os.system('mkdir -p conda')
yaml_str = yaml.dump(data, sort_keys=False)
with open('conda/meta.yaml', 'w') as f:
f.write(yaml_str)