-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsetup.py
More file actions
65 lines (58 loc) · 1.95 KB
/
Copy pathsetup.py
File metadata and controls
65 lines (58 loc) · 1.95 KB
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
# coding=utf-8
'''
usage:
(sudo) python setup.py +
install ... local
register ... at http://pypi.python.org/pypi
sdist ... create *.tar to be uploaded to pyPI
sdist upload ... build the package and upload in to pyPI
'''
from setuptools import setup, find_packages
import os
def read(*paths):
"""Build a file path from *paths* and return the contents."""
try:
f_name = os.path.join(*paths)
with open(f_name, 'r') as f:
return f.read()
except IOError:
print('%s not existing ... skipping' % f_name)
return ''
setup(
name='imgProcessor',
version='0.2.5',
author='Karl Bedrich',
author_email='karl@bedrich.de',
url='https://github.com/radjkarl/imgProcessor',
license='GPLv3',
install_requires=[
'scikit-image',
'numpy',
'scipy',
'numba',
'transforms3d'
# opencv // cv2 # to be installed manually
],
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Libraries :: Python Modules',
],
description="""A collection of various image processing routines""",
packages=find_packages(exclude=['tests*']),
include_package_data=True,
scripts=[] if not os.path.exists('bin') else [
os.path.join('bin', x) for x in os.listdir('bin')],
long_description=(
read('README.rst') + '\n\n' +
read('CHANGES.rst') + '\n\n' +
read('AUTHORS.rst')
),
zip_safe=False,
)