-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
75 lines (65 loc) · 2.86 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
from setuptools import setup, find_packages
from pathlib import Path
from glob import glob
def read_long_description():
"""Read the README file and use it as long description in Pypi.
:return: contents of the readme file.
"""
with open("README.md", "r") as f:
return f.read()
def get_version_number():
"""Get the version of the package from the __init__ file.
:return version: version of the package.
"""
with open("imaging_transcriptomics/__init__.py", "r") as f:
for line in f:
if '__version__' in line:
_, version, _ = line.split('"')
break
return version
def get_requirements():
"""Get the requirements for the installation."""
requirements = []
with open('requirements.txt', 'r') as f:
requirements.extend(line.rstrip('\n') for line in f if line[0] != '#')
return requirements
setup(name="imaging-transcriptomics",
author="Alessio Giacomel, Daniel Martins",
author_email="[email protected] , [email protected]",
version=get_version_number(),
url="https://github.com/alegiac95/Imaging-transcriptomics",
description="A package to perform imaging transcriptomics analysis on a "
"neuroimaging brain scan.",
license="GPLv3",
long_description=read_long_description(),
long_description_content_type="text/markdown",
classifiers=["Intended Audience :: Healthcare Industry",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
],
keywords="Image analysis, Neuroimaging, Imaging Transcriptomics, "
"Medical Imaging, Research, Multimodal Imaging",
install_requires=get_requirements(),
packages=["imaging_transcriptomics"],
include_package_data=True,
package_data={"imaging_transcriptomics": ["*.yaml", "*.nii.gz",
"*.csv", "*.txt", "*.annot",
"data/*"]},
entry_points={
"console_scripts": [
"imagingtranscriptomics=imaging_transcriptomics.script"
".imagingtranscriptomics:main",
"imt_gsea=imaging_transcriptomics.script.imt_gsea:main",
]
},
project_urls={
"Source": "https://github.com/alegiac95/Imaging-transcriptomics",
"Bug Reports": "https://github.com/alegiac95/Imaging-transcriptomics/issues",
"Documentation": "https://imaging-transcriptomics.rtfd.io/"
},
python_requires=">=3.6, <3.9"
)