-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
80 lines (69 loc) · 2.45 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
#! /usr/bin/env python
"""
Installer script for the ``imc`` library and the ``imcpipeline`` pipeline.
Install with ``pip install .``.
"""
from setuptools import setup, find_packages
def parse_requirements(req_file):
"""Parse requirements.txt files."""
reqs = open(req_file).read().strip().split("\n")
reqs = [r for r in reqs if not r.startswith("#")]
return [r for r in reqs if "#egg=" not in r]
REQUIREMENTS_FILE = "requirements.txt"
DEV_REQUIREMENTS_FILE = "requirements.dev.txt"
README_FILE = "README.md"
# Requirements
requirements = parse_requirements(REQUIREMENTS_FILE)
requirements_dev = parse_requirements(DEV_REQUIREMENTS_FILE)
# Description
long_description = open(README_FILE).read()
# setup
setup(
name="imctransfer",
packages=find_packages(),
use_scm_version={
"write_to": "imctransfer/_version.py",
"write_to_template": '__version__ = "{version}"\n',
},
entry_points={"console_scripts": ["imctransfer = imctransfer.daemon:main",]},
description="A pipeline and utils for IMC data analysis.",
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Development Status :: 3 - Alpha",
"Typing :: Typed",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
keywords=",".join(
[
"computational biology",
"bioinformatics",
"imaging mass cytometry",
"imaging",
"mass cytometry",
"mass spectrometry",
]
),
url="https://github.com/elementolab/imctransfer",
project_urls={
"Bug Tracker": "https://github.com/elementolab/imctransfer/issues",
# "Documentation": "https://imc.readthedocs.io",
"Source Code": "https://github.com/elementolab/imctransfer",
},
author=u"Andre Rendeiro",
author_email="[email protected]",
license="GPL3",
setup_requires=["setuptools_scm"],
install_requires=requirements,
tests_require=requirements_dev,
extras_require={"dev": requirements_dev},
# package_data={"imc": ["config/*.yaml", "templates/*.html", "_models/*"]},
data_files=[
REQUIREMENTS_FILE,
# "requirements/requirements.test.txt",
],
)