2006-01-05 19:19:36 +01:00
|
|
|
# GUI Application automation and testing library
|
|
|
|
# Copyright (C) 2006 Mark Mc Mahon
|
|
|
|
#
|
2006-01-21 01:28:35 +01:00
|
|
|
# This library is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU Lesser General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2.1
|
2006-01-05 19:19:36 +01:00
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
2006-01-21 01:28:35 +01:00
|
|
|
# This library 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.
|
2006-01-05 19:19:36 +01:00
|
|
|
# See the GNU Lesser General Public License for more details.
|
|
|
|
#
|
2006-01-21 01:28:35 +01:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this library; if not, write to the
|
2006-01-05 19:19:36 +01:00
|
|
|
# Free Software Foundation, Inc.,
|
|
|
|
# 59 Temple Place,
|
2006-01-21 01:28:35 +01:00
|
|
|
# Suite 330,
|
|
|
|
# Boston, MA 02111-1307 USA
|
2006-01-05 19:19:36 +01:00
|
|
|
|
2006-04-19 01:19:00 +02:00
|
|
|
"Install and build pywinauto distributions"
|
|
|
|
|
|
|
|
|
2006-01-05 19:19:36 +01:00
|
|
|
# to build files:
|
|
|
|
# setup.py py2exe
|
|
|
|
|
2006-01-21 01:28:35 +01:00
|
|
|
from distutils.core import setup
|
2006-01-05 19:19:36 +01:00
|
|
|
|
2006-03-06 22:59:29 +01:00
|
|
|
import pywinauto
|
|
|
|
|
2006-03-31 01:46:32 +02:00
|
|
|
|
2006-04-19 01:19:00 +02:00
|
|
|
# make sure the documentation is in the correct place for building
|
|
|
|
import sys
|
|
|
|
import os.path
|
|
|
|
if "sdist" in sys.argv:
|
2006-03-31 01:46:32 +02:00
|
|
|
import shutil
|
2006-04-19 01:19:00 +02:00
|
|
|
if not os.path.exists("documentation"):
|
2006-07-31 13:53:37 +02:00
|
|
|
shutil.move(r"website", "documentation")
|
2006-03-30 11:18:04 +02:00
|
|
|
|
|
|
|
|
2006-01-15 22:40:12 +01:00
|
|
|
|
2006-01-05 19:55:55 +01:00
|
|
|
setup(name='pywinauto',
|
2006-03-06 22:59:29 +01:00
|
|
|
version = pywinauto.__version__,
|
2006-04-19 01:19:00 +02:00
|
|
|
description = 'pywinauto is a set of python '
|
|
|
|
'modules to automate the Microsoft Windows GUI',
|
2006-03-07 18:23:57 +01:00
|
|
|
keywords = "windows automation gui GuiAuto",
|
2006-03-06 22:59:29 +01:00
|
|
|
url = "http://sourceforge.net/projects/pywinauto",
|
|
|
|
author = 'Mark Mc Mahon',
|
|
|
|
author_email = 'mark.m.mcmahon@gmail.com',
|
2006-03-07 17:42:02 +01:00
|
|
|
long_description = """
|
|
|
|
At it's simplest it allows you to send mouse and keyboard
|
|
|
|
actions to windows dialogs and controls, but It has support for more complex
|
|
|
|
controls also.
|
2006-03-07 18:23:57 +01:00
|
|
|
""",
|
2006-01-06 22:15:35 +01:00
|
|
|
|
2006-01-17 22:25:59 +01:00
|
|
|
packages = ["pywinauto", "pywinauto.tests", "pywinauto.controls"],
|
2006-03-20 20:04:48 +01:00
|
|
|
|
2006-03-20 21:29:50 +01:00
|
|
|
#data_files=[
|
|
|
|
# ('examples', ['examples/notepad_fast.pkl', ]),
|
|
|
|
#],
|
2006-03-20 20:04:48 +01:00
|
|
|
|
2006-01-05 19:55:55 +01:00
|
|
|
license = "LGPL",
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Intended Audience :: Developers',
|
2006-04-19 01:19:00 +02:00
|
|
|
'License :: OSI Approved :: '
|
|
|
|
'GNU Library or Lesser General Public License (LGPL)',
|
2006-01-05 19:55:55 +01:00
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
'Programming Language :: Python',
|
2006-03-07 17:42:02 +01:00
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
2006-01-05 19:55:55 +01:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2006-04-19 01:19:00 +02:00
|
|
|
if "sdist" in sys.argv:
|
2006-07-31 13:53:37 +02:00
|
|
|
if not os.path.exists(r"website"):
|
|
|
|
shutil.move("documentation", r"website")
|