Skip to content

Commit 7576157

Browse files
committed
py: lint file; no functional changes
1 parent a4278ff commit 7576157

File tree

1 file changed

+53
-50
lines changed

1 file changed

+53
-50
lines changed

setup.py

+53-50
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python
2+
3+
# Copyright 2015 Software Freedom Conservancy
24
# Copyright 2008-2009 WebDriver committers
35
# Copyright 2008-2009 Google Inc.
46
#
@@ -14,72 +16,73 @@
1416
# See the License for the specific language governing permissions and
1517
# limitations under the License.
1618

17-
from setuptools import setup
18-
from setuptools.command.install import install
19+
import sys
1920

21+
from distutils.command.install import INSTALL_SCHEMES
2022
from os.path import dirname, join, isfile, abspath
23+
from setuptools import setup
24+
from setuptools.command.install import install
2125
from shutil import copy
22-
import sys
2326

24-
from distutils.command.install import INSTALL_SCHEMES
27+
2528
for scheme in INSTALL_SCHEMES.values():
2629
scheme['data'] = scheme['purelib']
2730

2831
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': {
4952
'selenium': 'py/selenium',
5053
'selenium.common': 'py/selenium/common',
5154
'selenium.test': 'py/test',
5255
'selenium.test.selenium': 'py/test/selenium',
5356
'selenium.webdriver': 'py/selenium/webdriver',
5457
},
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': {
7780
'selenium.webdriver.firefox': ['*.xpi', 'webdriver_prefs.json'],
7881
},
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
8386
}
8487

8588
setup(**setup_args)

0 commit comments

Comments
 (0)