-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
89 lines (80 loc) · 2.97 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
try:
from setuptools import setup, find_packages
except ImportError:
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.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
except ImportError:
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.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Bio-Informatics"
]
VERSION = "1.1.4"
AUTHOR = "Mahdi Baghbanzadeh"
AUTHOR_EMAIL = "mbagh@gwu.edu"
MAINTAINER = "Mahdi Baghbanzadeh"
MAINTAINER_EMAIL = "mbagh@gwu.edu"
# 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/deepBreaks/blob/master/README.md"
counter_file = "README.md"
if not os.path.isfile(counter_file):
print("Downloading counter file to track deepBreaks 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")
# read the contents of your README file
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name="deepBreaks",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
version=VERSION,
license="MIT",
description="deepBreaks: a machine learning tool for identifying and prioritizing genotype-phenotype associations",
long_description=long_description,
long_description_content_type="text/markdown",
url="http://github.com/omicsEye/deepBreaks",
keywords=['machine learning', 'genomics', 'sequencing data'],
platforms=['Linux', 'MacOS', "Windows"],
classifiers=classifiers,
# long_description=open('readme.md').read(),
data_files=[('.', ['requirements.txt'])],
install_requires=required,
packages=find_packages(),
entry_points={
'console_scripts': [
'deepBreaks = deepBreaks.deepBreaks:main'
]},
test_suite='deepBreaks.tests.deepBreaks_test',
zip_safe=False
)