forked from axondeepseg/axondeepseg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
76 lines (62 loc) · 2.16 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
from setuptools import setup, find_packages
from setuptools.command.develop import develop
from subprocess import check_call
from codecs import open
from os import path
import AxonDeepSeg
# Get the directory where this current file is saved
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
req_path = path.join(here, 'requirements.txt')
with open(req_path, "r") as f:
install_reqs = f.read().strip()
install_reqs = install_reqs.split("\n")
class PostDevelopCommand(develop):
"""Post-installation for installation mode."""
def run(self):
develop.run(self)
check_call("download_models")
check_call("download_tests")
setup(
name='AxonDeepSeg',
python_requires='>=3.7, <3.8',
version=AxonDeepSeg.__version__,
description='Python tool for automatic axon and myelin segmentation',
long_description=long_description,
url='https://github.com/neuropoly/axondeepseg',
author='NeuroPoly Lab, Polytechnique Montreal',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
],
keywords='',
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
install_requires=install_reqs,
package_dir={'AxonDeepSeg': 'AxonDeepSeg'},
package_data={
"AxonDeepSeg": ['models/default_SEM_model/*',
'models/default_TEM_model/*',
'data_test/*'],
},
extras_require={
'docs': ['sphinx>=1.6',
'sphinx_rtd_theme>=0.2.4',
'recommonmark'],
},
include_package_data=True,
entry_points={
'console_scripts': [
'download_models = AxonDeepSeg.models.download_model:main',
'download_tests = AxonDeepSeg.download_tests:main',
'axondeepseg = AxonDeepSeg.segment:main',
'axondeepseg_test = AxonDeepSeg.integrity_test:integrity_test'
],
},
cmdclass={
'develop': PostDevelopCommand,
},
)