-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·80 lines (74 loc) · 3.02 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
try:
from setuptools import setup, find_packages
except ImportError:
sys.exit("Please install setuptools.")
import os
import urllib
try:
from urllib.request import urlretrieve
classifiers = [
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
except ImportError:
from urllib import urlretrieve
classifiers = [
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.4",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
VERSION = "1.0.0"
AUTHOR = "Tyson Dawson, Xinyang Zhang, Ali Rahnavard"
AUTHOR_EMAIL = "[email protected], [email protected]"
MAINTAINER = "Tyson Dawson, Xinyang Zhang, Ali Rahnavard"
# try to download the bitbucket counter file to count downloads
# this has been added since PyPI has turned off the download stats
# this will be removed when PyPI Warehouse is production as it
# will have download stats
COUNTER_URL = "https://github.com/omicsEye/seqSight/blob/master/README.md"
counter_file = "README.md"
if not os.path.isfile(counter_file):
print("Downloading counter file to track strainFocus downloads" +
" since the global PyPI download stats are currently turned off.")
try:
pass # file, headers = urlretrieve(COUNTER_URL,counter_file)
except EnvironmentError:
print("Unable to download counter")
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name="strainFocus",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
version=VERSION,
license="MIT",
description="strainFocus: jointly profile microbial strains, genes, and biosynthetic gene clusters from metagenomics data",
long_description="strainFocus: jointly profile microbial strains, genes, and biosynthetic gene clusters from metagenomics data.",
url="http://github.com/omicsEye/seqSight",
keywords=['Microbiome', 'metagenomics', 'gene', "biosynthetic gene clusters", "Microbial profiling"],
platforms=['Linux', 'MacOS', "Windows"],
classifiers=classifiers,
# long_description=open('readme.md').read(),
install_requires=required,
packages=find_packages(),
entry_points={
'console_scripts': [
'strainFocus = strainFocus.strainFocus:main',
'seqSight_join_tables = strainFocus.tools.join_tables:main'
]},
#test_suite='strainFocus.tests.seqSight_test',
zip_safe=False
)