-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (46 loc) · 1.43 KB
/
Copy pathsetup.py
File metadata and controls
50 lines (46 loc) · 1.43 KB
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
49
50
import glob
import setuptools
import yaml
# Version
version = ""
name = ""
fversion = glob.glob("**/_version.py", recursive=True)[0]
with open(fversion) as fid:
lines = fid.read().splitlines()
name = lines[0].split("=")[-1].strip().replace('"', "")
version = lines[1].split("=")[-1].strip().replace('"', "")
# App name - dependencies
env = {}
with open("recipes/workflow.yaml") as fid:
env = yaml.safe_load(fid)
install_requires = []
for package in env["dependencies"]:
if isinstance(package, dict):
raise ValueError("pip dependancies are defined in the yaml")
if "=" in package:
package = package.replace("=", "==")
install_requires.append(package)
description = (
"End-to-end mapping of membrane transport from chemical structure to microorganisms"
)
setuptools.setup(
name=name,
version=version,
author=["guillaume-gricourt"],
author_email=["guillaume.gricourt@inrae.fr"],
description=description,
long_description_content_type="text/markdown",
url="https://github.com/brsynth/chemproflow",
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
include_package_data=True,
license="MIT",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
install_requires=install_requires,
entry_points={
"console_scripts": ["chemproflow=chemproflow.pipeline.__main__:main"]
},
)