-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·56 lines (50 loc) · 1.84 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
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""Setup for PyPI usage."""
import sys
from glob import glob
from setuptools import setup
def get_long_description():
"""Get the package's long description."""
with open("README.md", "r") as ifstrm:
return ifstrm.read()
def get_version():
"""Get the package's version from without using an import."""
with open("src/enrichmentanalysis/__init__.py", "r") as ifstrm:
for line in ifstrm:
if line[:15] == "__version__ = '":
return line.rstrip()[15:-1]
def get_install_requires():
"""Get requirements for installation."""
# pip: User installs items in requirements.txt
base = ['docopt', 'xlsxwriter']
# conda: Anaconda installs all needed to run scripts
if sys.argv[1:2] == ['bdist_conda']:
base.append('statsmodels')
return base
setup(
name='enrichmentanalysis_dvklopfenstein',
version=get_version(),
author='DV Klopfenstein',
author_email='dvklopfenstein@gmail.com',
long_description=get_long_description(),
long_description_content_type="text/markdown",
packages=[
'enrichmentanalysis',
],
package_dir={'enrichmentanalysis': 'src/enrichmentanalysis'},
# include_package_data=True,
# package_data={"enrichmentanalysis.test_data.nbt_3102": ["*.*"]},
scripts=glob('src/bin/*.py'),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Operating System :: OS Independent',
],
url='http://github.com/dvklopfenstein/enrichmentanalysis',
description='Perform enrichment analysis on any IDs and associations',
install_requires=get_install_requires(),
)