-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·80 lines (73 loc) · 2.89 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
import sys
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.9",
"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 :: 3.9",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
VERSION = "1.0.0"
AUTHOR = "Xinyang Zhang, Ali Rahnavard"
AUTHOR_EMAIL = "[email protected], [email protected] "
# 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/BGCLens/blob/master/README.md"
counter_file = "README.md"
if not os.path.isfile(counter_file):
print("Downloading counter file to track BGCLens 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="BGCLens",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
version=VERSION,
license="MIT",
description="BGCLens: jointly profile microbial strains, genes, and biosynthetic gene clusters from metagenomics data",
long_description="BGCLens: jointly profile microbial strains, genes, and biosynthetic gene clusters from metagenomics data.",
url="http://github.com/omicsEye/BGCLens",
keywords=['Microbiome', 'Metagenomics', 'Gene', "Biosynthetic Gene Clusters", "Microbial profiling"],
platforms=['Linux', 'MacOS', "Windows"],
classifiers=classifiers,
install_requires=required,
packages=find_packages(),
entry_points={
'console_scripts': [
'BGCLens = BGCLens.BGCLens:main',
'BGCLens_join_tables = BGCLens.tools.join_tables:main',
'BGCLens_barplot = BGCLens.tools.BGCLens_barplot:main',
'BGCLens_databases = BGCLens.tools.BGCLens_databases:main',
'BGCLens_config = BGCLens.tools.BGCLens_config:main'
]},
zip_safe=False
)