forked from pyatom/pyatom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (56 loc) · 2.1 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
62
63
64
65
# Copyright (c) 2010 VMware, Inc. All Rights Reserved.
# This file is part of ATOMac.
# ATOMac is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by the Free
# Software Foundation version 2 and no later version.
# ATOMac is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2
# for more details.
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
# St, Fifth Floor, Boston, MA 02110-1301 USA.
from setuptools import setup, Extension
import os
execfile('atomac/version.py') # set __version__ variable
def read(fname):
'''Returns the contents of the specified file located in the same dir as
the script
'''
return open(os.path.join(os.path.dirname(__file__), fname)).read()
source_files = [
'atomac/_a11y/a11ymodule.c',
'atomac/_a11y/conversion.c',
'atomac/_a11y/axlib.c',
]
_a11y = Extension(
'atomac._a11y',
sources = source_files,
extra_link_args = [
'-framework', 'ApplicationServices',
'-framework', 'Carbon',
],
)
setup (
name = 'atomac',
version = __version__,
author = 'The ATOMac Team',
author_email = '[email protected]',
url = 'http://pyatom.com',
description = ("Automated Testing on Mac - test GUI applications "
"written in Cocoa by using Apple's Accessibility API"),
license = 'GPLv2',
long_description = read('README.rst'),
ext_modules = [_a11y],
packages = ['atomac', 'atomac.ldtpd', 'atomac.ldtp'],
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: MacOS X :: Cocoa',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
],
entry_points={
'console_scripts' : ['ldtp = atomac.ldtpd:main'],
},
)