-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (42 loc) · 1.33 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
46
import glob
import setuptools
import yaml
# Version
name = ""
version = ""
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):
package = package.get("pip", [])
install_requires += package
else:
install_requires.append(package)
description = "Import SBML file into Neo4j"
setuptools.setup(
name=name,
version=version,
author=["guillaume-gricourt", "tduigou"],
author_email=["[email protected]", "[email protected]"],
description=description,
long_description_content_type="text/markdown",
url="https://github.com/brsynth/neo4jsbml",
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": ["neo4jsbml=neo4jsbml.__main__:main"]},
)