-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
72 lines (64 loc) · 2.13 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
# coding: utf-8
from pathlib import Path
from setuptools import setup, find_packages
from vpv import annotations, resources
import os
import vpv
# Get __verison_dunder without importing lama
version_file = Path(__file__).resolve().parent / 'vpv' / 'version.py'
exec(open(version_file).read())
def get_resources():
"""
Need to find the non-.py file that are needed for annotations
Returns
-------
"""
# get the IMPC annotation configs
options_dir = Path(annotations.__file__).parent
files = [os.path.relpath(x, Path(vpv.__file__).parent) for x in options_dir.rglob('*.yaml')]
resources_dir = Path(resources.__file__).parent
resource_files = [os.path.relpath(x, Path(vpv.__file__).parent) for x in resources_dir.rglob('*')]
files.extend(resource_files)
return files
setup(
name='vpv_viewer',
version=__version__,
packages=find_packages(exclude=("dev")),
package_data={'': get_resources()}, # Puts it in the wheel dist. MANIFEST.in gets it in source dist
# package_data={'': ['current_commit',
# 'stats/rscripts/lmFast.R',
# 'stats/rscripts/r_padjust.R']}, # Puts it in the wheel dist. MANIFEST.in gets it in source dist
include_package_data=True,
install_requires=[
'pyqt5',
'simpleitk',
'pyyaml',
'scipy',
'appdirs',
'pillow',
'lxml',
'pyqtgraph',
'toml',
'python-dateutil',
'addict',
'ordered_set',
'pandas',
'lama_phenotype_detection'
],
url='https://github.com/mpi2/vpv',
license='Apache2',
author='Neil Horner',
author_email='[email protected], [email protected]',
description='Viewing and annotation of 3D volumetric phenotype data for the IMPC',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
keywords=['image processing', 'bioinformatics', 'phenotype'],
entry_points ={
'console_scripts': [
'vpv_viewer=vpv.run_vpv:main',
]
},
)