forked from rticau/ScreenCapLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (52 loc) · 1.88 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
#!/usr/bin/env python
import re
import sys
from os.path import abspath, dirname, join
from setuptools import setup
CURDIR = dirname(abspath(__file__))
REQUIREMENTS = ['robotframework >= 3.0', 'pillow >= 5.2.0']
with open(join(CURDIR, 'src', 'ScreenCapLibrary', 'version.py')) as f:
VERSION = re.search("\nVERSION = '(.*)'", f.read()).group(1)
with open(join(CURDIR, 'README.rst')) as f:
DESCRIPTION = f.read()
if sys.version_info[0] < 3:
REQUIREMENTS.append('imageio == 2.6.1')
REQUIREMENTS.append('futures >= 3.2.0')
REQUIREMENTS.append('mss == 4.0.3')
REQUIREMENTS.append('opencv-python == 4.2.0.32')
else:
REQUIREMENTS.append('imageio >= 2.6.1')
REQUIREMENTS.append('mss >= 4.0.3')
REQUIREMENTS.append('opencv-python >= 4.2.0.32')
REQUIREMENTS.append('pyautogui >= 0.9.52')
CLASSIFIERS = '''
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Topic :: Software Development :: Testing
Framework :: Robot Framework
Framework :: Robot Framework :: Library
'''.strip().splitlines()
setup(
name='robotframework-screencaplibrary',
version=VERSION,
description='Robot Framework test library for taking screenshots',
long_description=DESCRIPTION,
author=u'Mihai Pârvu',
author_email='[email protected]',
url='https://github.com/rticau/ScreenCapLibrary',
license='Apache License 2.0',
keywords='robotframework testing testautomation screenshot screencap',
platforms='any',
classifiers=CLASSIFIERS,
install_requires=REQUIREMENTS,
package_dir={'': 'src'},
packages=['ScreenCapLibrary']
)