-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·99 lines (88 loc) · 2.7 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import os
from setuptools import setup
PACKAGE_NAME = "geniml"
# Ordinary dependencies
DEPENDENCIES = []
with open("requirements/requirements-basic.txt", "r") as reqs_file:
for line in reqs_file:
if not line.strip():
continue
DEPENDENCIES.append(line)
# Additional keyword arguments for setup()
extra = {"install_requires": DEPENDENCIES}
with open(PACKAGE_NAME + "/_version.py", "r") as versionfile:
version = versionfile.readline().split()[-1].strip("\"'\n")
# Optional dependencies
# Extras requires a dictionary and not a list?
with open("requirements/requirements-ml.txt", "r") as reqs_file:
ml_dep = []
for line in reqs_file:
if not line.strip():
continue
ml_dep.append(line.strip())
with open("requirements/requirements-test.txt", "r") as reqs_file:
test_dep = []
for line in reqs_file:
if not line.strip():
continue
test_dep.append(line.strip())
extra["install_requires"] = DEPENDENCIES
extra["extras_require"] = {
"ml": ml_dep,
"test": test_dep,
}
with open("README.md") as f:
long_description = f.read()
setup(
name=PACKAGE_NAME,
packages=[
PACKAGE_NAME,
"geniml.atacformer",
"geniml.assess",
"geniml.bedspace",
"geniml.bedshift",
"geniml.eval",
"geniml.likelihood",
"geniml.models",
"geniml.training",
"geniml.region2vec",
"geniml.scembed",
"geniml.tokenization",
"geniml.universe",
"geniml.io",
"geniml.text2bednn",
"geniml.bbclient",
"geniml.search",
"geniml.search.backends",
"geniml.search.interfaces",
"geniml.search.query2vec",
"geniml.nn",
],
version=version,
long_description=long_description,
long_description_content_type="text/markdown",
description="Genomic interval toolkit",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
license="BSD2",
entry_points={
"console_scripts": [
"geniml = geniml.cli:main",
"bedshift = geniml.bedshift.bedshift:main",
],
},
keywords="bioinformatics, sequencing, ngs",
package_data={"geniml": [os.path.join("geniml", "*")]},
include_package_data=True,
url="https://docs.bedbase.org/geniml/",
author="Nathan Sheffield",
**extra,
)