forked from pywinauto/pywinauto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update setup.py and pywinauto version.
- Loading branch information
1 parent
e066eb8
commit 16528b7
Showing
2 changed files
with
6 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,16 +34,7 @@ | |
|
||
from __future__ import print_function | ||
|
||
try: | ||
try: | ||
from ez_setup import use_setuptools | ||
use_setuptools() | ||
except ImportError: | ||
print('No ez_setup.py. Using plain setuptools...') | ||
from setuptools import setup | ||
except ImportError: | ||
print('Using distutils.core for setup...') | ||
from distutils.core import setup | ||
from setuptools import setup | ||
|
||
import os.path | ||
import sys | ||
|
@@ -56,32 +47,24 @@ def setup_path(path = ""): | |
|
||
return os.path.join(setup_path, path) | ||
|
||
|
||
# add it to the system path | ||
sys.path.append(setup_path()) | ||
|
||
try: | ||
import win32api | ||
requirements = [] | ||
except ImportError: | ||
requirements = ["pypiwin32"] | ||
|
||
# make sure the documentation is in the correct place for building | ||
# todo: see how to build the website | ||
#if "sdist" in sys.argv: | ||
# import shutil | ||
# if not os.path.exists(setup_path("docs")): | ||
# shutil.move(setup_path("website"), setup_path("docs")) | ||
|
||
|
||
setup(name='pywinauto', | ||
version = '0.6.0', | ||
description = 'pywinauto is a set of python ' | ||
'modules to automate the Microsoft Windows GUI', | ||
keywords = "windows automation gui GuiAuto", | ||
url = "http://pywinauto.github.io/", | ||
author = 'Mark Mc Mahon', | ||
author_email = '[email protected]', | ||
author = 'Mark McMahon and Contributors', | ||
author_email = '[email protected]', | ||
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 | ||
|
@@ -110,5 +93,6 @@ def setup_path(path = ""): | |
'Topic :: Software Development :: User Interfaces', | ||
'Topic :: Software Development :: Quality Assurance', | ||
], | ||
install_requires=requirements, | ||
install_requires=['six', 'pypiwin32', 'comtypes'], | ||
setup_requires=['setuptools-scm'], | ||
) |