forked from glitchassassin/lackey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (47 loc) · 1.85 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
""" Setup script for Lackey
"""
import re
import platform
from setuptools import setup, find_packages
from setuptools.dist import Distribution
with open('lackey/_version.py', 'r') as fd:
__version__ = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
class BinaryDistribution(Distribution):
""" Custom class for platform-specific modules
"""
def is_pure(self):
return False
install_requires = ['requests', 'pillow', 'numpy', 'opencv-python', 'keyboard', 'mouse', 'pyperclip', 'pytesseract']
if platform.system() == "Darwin":
install_requires += ['pyobjc']
setup(
name="Lackey",
description="A Sikuli script implementation in Python",
long_description="""Lackey is an implementation of Sikuli script, using image recognition
to control complex and non-OS-standard business applications. Potential applications include
automating tedious workflows, routine user interface testing, etc.""",
url="https://github.com/glitchassassin/lackey",
author="Jon Winsley",
author_email="[email protected]",
license="MIT",
version=__version__,
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
"Topic :: Desktop Environment"
],
keywords="automation testing sikuli",
packages=find_packages(exclude=['docs', 'tests']),
install_requires=install_requires,
include_package_data=True,
distclass=BinaryDistribution
)