generated from brsynth/conda-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
45 lines (41 loc) · 1.23 KB
/
setup.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
import glob
import setuptools
import yaml
# Version
version = ""
fversion = glob.glob("**/_version.py", recursive=True)[0]
with open(fversion) as fid:
lines = fid.read().splitlines()
version = lines[1].split("=")[-1].strip().replace('"', "")
# App name - dependencies
env = {}
with open("recipes/workflow.yaml") as fid:
env = yaml.safe_load(fid)
name = env["name"]
install_requires = []
for package in env["dependencies"]:
if isinstance(package, dict):
package = package.get("pip", [])
install_requires += package
else:
install_requires.append(package)
description = "provides a cli interface to predict gene knockout \
targets with an heterologous pathway"
setuptools.setup(
name=name,
version=version,
author=["guillaume-gricourt"],
author_email=["[email protected]"],
description=description,
long_description_content_type="text/markdown",
url="https://github.com/brsynth/straindesign",
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,
)