-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
124 lines (92 loc) · 2.55 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# import sys
import os
import io
from setuptools import setup, find_packages, Command
from os import path
root = 'monet'
name = 'monet'
version = '0.3.2'
here = path.abspath(path.dirname(__file__))
description = ('Monet: An open-source Python package for analyzing and '
'integrating single-cell RNA-Seq data using PCA-based latent '
'spaces.')
install_requires = [
'pandas>=1.0.3',
'numpy>=1.18.1',
'scipy>=1.4.1',
'scikit-learn>=0.22.1',
#'plotly>=4.4.1',
'plotly>=4.2.1',
'click>=7, <8',
'xlmhg>=2.5.4',
'scanpy>=1.5.1',
'umap-learn>=0.4.6',
]
# get long description from file
long_description = ''
with io.open(path.join(here, 'README.md'), encoding='UTF-8') as fh:
long_description = fh.read()
class CleanCommand(Command):
"""Removes files generated by setuptools.
"""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
error_msg = 'You must run this command in the package root!'
if not os.getcwd() == here:
raise OSError(error_msg)
else:
os.system('rm -rf ./dist ./build ./*.egg-info ')
setup(
name=name,
version=version,
description=description,
long_description=long_description,
# homepage
url='https://github.com/flo-compbio/monet',
author='Florian Wagner',
author_email='[email protected]',
license='3-clause BSD',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
keywords='',
packages=find_packages(exclude=['docs', 'tests*']),
# libraries = [],
install_requires=install_requires,
# tests_require=[],
extras_require={
'docs': [
],
'tests': [
'pytest>=5.2.1',
'pytest-cov>=2.7.1',
],
},
# data
package_data={
'monet': [
'data/gene_lists/*.txt',
'data/test/*',
'data/RdBu_r_colormap.tsv',
]
},
entry_points={
'console_scripts': [
'enhance.py = monet.denoise.cli:run_enhance',
],
},
cmdclass={
'clean': CleanCommand,
},
)