-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
47 lines (41 loc) · 1.54 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
from setuptools import setup, find_packages
# setup.py
import os
import sys
version = '2.2.0'
if sys.argv[-1] == 'publish':
if (os.system("python setup.py test") == 0):
if (os.system("python setup.py sdist upload") == 0):
if (os.system("python setup.py bdist_wheel upload") == 0):
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push")
sys.exit()
# Below this point is the rest of the setup() function
setup(name='SlideRunner',
version=version,
description='SlideRunner - A Tool for Massive Cell Annotations in Whole Slide Images',
url='http://github.com/maubreville/SlideRunner',
author='Marc Aubreville',
author_email='[email protected]',
license='GPL',
packages=find_packages(),
package_data={
'SlideRunner': ['artwork/*.png', 'Slides.sqlite', 'plugins/*.py'],
},
install_requires=[
'openslide-python>=1.1.1', 'opencv-python>=3.1.0',
'SlideRunner_dataAccess>=1.0.7',
'matplotlib>=2.0.0', 'numpy>=1.13', 'matplotlib>=2.0.0', 'rollbar>=0.14', 'shapely>=1.6.4', 'pydicom>=1.4.1'
],
setup_requires=['pytest-runner'],
entry_points={
# 'console_scripts': [
# 'foo = my_package.some_module:main_func',
# 'bar = other_module:some_func',
# ],
'gui_scripts': [
'sliderunner = SlideRunner.__main__:main',
]
},
tests_require=['pytest'],
zip_safe=False)