forked from albumentations-team/albumentations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (53 loc) · 2.27 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
import io
import os
import re
import sys
from setuptools import setup, find_packages
def get_version():
current_dir = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(current_dir, 'albumentations', '__init__.py')
with io.open(version_file, encoding='utf-8') as f:
return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.M).group(1)
def get_test_requirements():
requirements = ['pytest']
if sys.version_info < (3, 3):
requirements.append('mock')
return requirements
def get_long_description():
base_dir = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(base_dir, 'README.md'), encoding='utf-8') as f:
return f.read()
setup(
name='albumentations',
version=get_version(),
description='Fast image augmentation library and easy to use wrapper around other libraries',
long_description=get_long_description(),
long_description_content_type='text/markdown',
author='Buslaev Alexander, Alexander Parinov, Vladimir Iglovikov, Eugene Khvedchenya',
license='MIT',
url='https://github.com/albu/albumentations',
packages=find_packages(exclude=['tests']),
install_requires=['numpy>=1.11.1', 'scipy', 'opencv-python-headless', 'imgaug>=0.2.5,<0.2.7', 'PyYAML'],
extras_require={'tests': get_test_requirements()},
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)