-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
58 lines (53 loc) · 2.01 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
import os
import re
import setuptools
main_script = 'bin/mercat2.py'
version = re.search(r'__version__\s+= "(.+)"', open(main_script).read()).group(1)
author = re.search(r'__author__\s+= "(.+)"', open(main_script).read()).group(1)
# recursively load package files
def package_files(directory):
paths = []
for (path, _, filenames) in os.walk(directory):
for filename in filenames:
if not filename.endswith('.py'):
paths.append(os.path.join('..', path, filename))
return paths
setuptools.setup(
name = "mercat2",
version = version,
author = author,
author_email = "[email protected]",
description = "versatile k-mer counter and diversity estimator for database independent property analysis (DIPA) for multi-omic analysis",
long_description = open("README.md", "r").read(),
long_description_content_type = "text/markdown",
url = "https://github.com/raw-lab/mercat2",
scripts = [main_script], # scripts to install to 'bin' path
packages = ['mercat2_lib'], # list of packages, installed to 'site-packages' folder
package_dir = dict(mercat2_lib='lib'), # dict with 'package'='relative dir'
package_data = dict(mercat2_lib=package_files('lib/')), # add non-python data to package, relative paths
license = "BSD License", # metadata
platforms = ['Unix'], # metadata
classifiers = [ # This is the new updated way for metadata, but old way seems to still be used in some of the output
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: BSD License",
"Operating System :: Unix",
],
python_requires = '>=3.9',
install_requires = [
'setuptools',
'ray',
'configargparse',
'humanize',
'plotly',
'psutil',
'dominate',
'scikit-learn',
'scikit-bio',
'scipy',
'metaomestats',
'kaleido',
'pyrodigal',
]
)