|
1 | 1 | #!/usr/bin/env python
|
| 2 | + |
| 3 | +# Copyright 2015 Software Freedom Conservancy |
2 | 4 | # Copyright 2008-2009 WebDriver committers
|
3 | 5 | # Copyright 2008-2009 Google Inc.
|
4 | 6 | #
|
|
14 | 16 | # See the License for the specific language governing permissions and
|
15 | 17 | # limitations under the License.
|
16 | 18 |
|
17 |
| -from setuptools import setup |
18 |
| -from setuptools.command.install import install |
| 19 | +import sys |
19 | 20 |
|
| 21 | +from distutils.command.install import INSTALL_SCHEMES |
20 | 22 | from os.path import dirname, join, isfile, abspath
|
| 23 | +from setuptools import setup |
| 24 | +from setuptools.command.install import install |
21 | 25 | from shutil import copy
|
22 |
| -import sys |
23 | 26 |
|
24 |
| -from distutils.command.install import INSTALL_SCHEMES |
| 27 | + |
25 | 28 | for scheme in INSTALL_SCHEMES.values():
|
26 | 29 | scheme['data'] = scheme['purelib']
|
27 | 30 |
|
28 | 31 | setup_args = {
|
29 |
| - 'cmdclass':{'install': install}, |
30 |
| - 'name':'selenium', |
31 |
| - 'version':"2.45.0", |
32 |
| - 'description':'Python bindings for Selenium', |
33 |
| - 'long_description':open(join(abspath(dirname(__file__)), "py", "README")).read(), |
34 |
| - 'url':'http://code.google.com/p/selenium/', |
35 |
| - 'classifiers':['Development Status :: 5 - Production/Stable', |
36 |
| - 'Intended Audience :: Developers', |
37 |
| - 'License :: OSI Approved :: Apache Software License', |
38 |
| - 'Operating System :: POSIX', |
39 |
| - 'Operating System :: Microsoft :: Windows', |
40 |
| - 'Operating System :: MacOS :: MacOS X', |
41 |
| - 'Topic :: Software Development :: Testing', |
42 |
| - 'Topic :: Software Development :: Libraries', |
43 |
| - 'Programming Language :: Python', |
44 |
| - 'Programming Language :: Python :: 2.6', |
45 |
| - 'Programming Language :: Python :: 2.7', |
46 |
| - 'Programming Language :: Python :: 3.2', |
47 |
| - 'Programming Language :: Python :: 3.3'], |
48 |
| - 'package_dir':{ |
| 32 | + 'cmdclass': {'install': install}, |
| 33 | + 'name': 'selenium', |
| 34 | + 'version': "2.45.0", |
| 35 | + 'description': 'Python bindings for Selenium', |
| 36 | + 'long_description': open(join(abspath(dirname(__file__)), "py", "README")).read(), |
| 37 | + 'url': 'http://code.google.com/p/selenium/', |
| 38 | + 'classifiers': ['Development Status :: 5 - Production/Stable', |
| 39 | + 'Intended Audience :: Developers', |
| 40 | + 'License :: OSI Approved :: Apache Software License', |
| 41 | + 'Operating System :: POSIX', |
| 42 | + 'Operating System :: Microsoft :: Windows', |
| 43 | + 'Operating System :: MacOS :: MacOS X', |
| 44 | + 'Topic :: Software Development :: Testing', |
| 45 | + 'Topic :: Software Development :: Libraries', |
| 46 | + 'Programming Language :: Python', |
| 47 | + 'Programming Language :: Python :: 2.6', |
| 48 | + 'Programming Language :: Python :: 2.7', |
| 49 | + 'Programming Language :: Python :: 3.2', |
| 50 | + 'Programming Language :: Python :: 3.3'], |
| 51 | + 'package_dir': { |
49 | 52 | 'selenium': 'py/selenium',
|
50 | 53 | 'selenium.common': 'py/selenium/common',
|
51 | 54 | 'selenium.test': 'py/test',
|
52 | 55 | 'selenium.test.selenium': 'py/test/selenium',
|
53 | 56 | 'selenium.webdriver': 'py/selenium/webdriver',
|
54 | 57 | },
|
55 |
| - 'packages':['selenium', |
56 |
| - 'selenium.common', |
57 |
| - 'selenium.test', |
58 |
| - 'selenium.test.selenium', |
59 |
| - 'selenium.test.selenium.common', |
60 |
| - 'selenium.test.selenium.webdriver', |
61 |
| - 'selenium.test.selenium.webdriver.common', |
62 |
| - 'selenium.test.selenium.webdriver.ie', |
63 |
| - 'selenium.test.selenium.webdriver.support', |
64 |
| - 'selenium.webdriver', |
65 |
| - 'selenium.webdriver.android', |
66 |
| - 'selenium.webdriver.chrome', |
67 |
| - 'selenium.webdriver.common', |
68 |
| - 'selenium.webdriver.common.html5', |
69 |
| - 'selenium.webdriver.support', |
70 |
| - 'selenium.webdriver.firefox', |
71 |
| - 'selenium.webdriver.ie', |
72 |
| - 'selenium.webdriver.opera', |
73 |
| - 'selenium.webdriver.phantomjs', |
74 |
| - 'selenium.webdriver.remote', |
75 |
| - 'selenium.webdriver.support', ], |
76 |
| - 'package_data':{ |
| 58 | + 'packages': ['selenium', |
| 59 | + 'selenium.common', |
| 60 | + 'selenium.test', |
| 61 | + 'selenium.test.selenium', |
| 62 | + 'selenium.test.selenium.common', |
| 63 | + 'selenium.test.selenium.webdriver', |
| 64 | + 'selenium.test.selenium.webdriver.common', |
| 65 | + 'selenium.test.selenium.webdriver.ie', |
| 66 | + 'selenium.test.selenium.webdriver.support', |
| 67 | + 'selenium.webdriver', |
| 68 | + 'selenium.webdriver.android', |
| 69 | + 'selenium.webdriver.chrome', |
| 70 | + 'selenium.webdriver.common', |
| 71 | + 'selenium.webdriver.common.html5', |
| 72 | + 'selenium.webdriver.support', |
| 73 | + 'selenium.webdriver.firefox', |
| 74 | + 'selenium.webdriver.ie', |
| 75 | + 'selenium.webdriver.opera', |
| 76 | + 'selenium.webdriver.phantomjs', |
| 77 | + 'selenium.webdriver.remote', |
| 78 | + 'selenium.webdriver.support', ], |
| 79 | + 'package_data': { |
77 | 80 | 'selenium.webdriver.firefox': ['*.xpi', 'webdriver_prefs.json'],
|
78 | 81 | },
|
79 |
| - 'data_files':[('selenium/webdriver/firefox/x86', ['py/selenium/webdriver/firefox/x86/x_ignore_nofocus.so']), |
80 |
| - ('selenium/webdriver/firefox/amd64', ['py/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so'])], |
81 |
| - 'include_package_data':True, |
82 |
| - 'zip_safe':False |
| 82 | + 'data_files': [('selenium/webdriver/firefox/x86', ['py/selenium/webdriver/firefox/x86/x_ignore_nofocus.so']), |
| 83 | + ('selenium/webdriver/firefox/amd64', ['py/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so'])], |
| 84 | + 'include_package_data': True, |
| 85 | + 'zip_safe': False |
83 | 86 | }
|
84 | 87 |
|
85 | 88 | setup(**setup_args)
|
0 commit comments