-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathsetup.py
More file actions
72 lines (63 loc) · 1.95 KB
/
setup.py
File metadata and controls
72 lines (63 loc) · 1.95 KB
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
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright (c) 2015--, metapool development team.
#
# Distributed under the terms of the Modified BSD License.
# ----------------------------------------------------------------------------
from setuptools import setup, find_packages
from glob import glob
from os.path import dirname
import versioneer
# NOTE: if you change this section,
# ALSO change the environment.yml file
base = [
'biom-format >= 2.1.16',
'matplotlib >= 3.9.2',
'numpy >= 2.0.2',
'openpyxl >= 3.1.5',
'pandas >= 2.2.3',
# seems seqtk cannot be installed through the setup mechanism?
# 'seqtk >= 1.4',
'seaborn >= 0.13.2',
'scikit-learn >= 1.5.2',
# below can't be installed by conda
'sample-sheet >= 0.13.0']
test = [
'flake8 >= 7.1.1',
'pytest >= 7.0.0',
'pytest-cov >= 4.0.0',
'papermill >= 2.6.0',
'pep8 >= 1.7.1']
coverage = [
'coverage >= 7.6.8',
'coveralls']
notebook = [
'jupyter >= 1.1.1',
'notebook >= 6.5.7',
'watermark >= 2.5.0',
'ipyfilechooser']
all_deps = base + test + coverage + notebook
# collect notebook data files
notebooks_fp = []
for fp in glob('notebooks/*.ipynb'):
notebooks_fp.append((dirname(fp), [fp]))
setup(
name='metapool',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(),
package_data={
'metapool': ['data/*.tsv', 'data/*.xlsx', 'tests/data/*.csv']},
include_package_data=True,
# adding all the notebooks fps
data_files=notebooks_fp,
install_requires=base,
extras_require={'test': test,
'coverage': coverage,
'all': all_deps},
entry_points={
'console_scripts': [
'seqpro=metapool.scripts.seqpro:format_preparation_files',
('seqpro_mf=metapool.scripts.seqpro_mf:'
'format_preparation_files_mf')],
})