setup.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/usr/bin/env python
  2. # Licensed to the Software Freedom Conservancy (SFC) under one
  3. # or more contributor license agreements. See the NOTICE file
  4. # distributed with this work for additional information
  5. # regarding copyright ownership. The SFC licenses this file
  6. # to you under the Apache License, Version 2.0 (the
  7. # "License"); you may not use this file except in compliance
  8. # with the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing,
  13. # software distributed under the License is distributed on an
  14. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. # KIND, either express or implied. See the License for the
  16. # specific language governing permissions and limitations
  17. # under the License.
  18. from distutils.command.install import INSTALL_SCHEMES
  19. from os.path import dirname, join, abspath
  20. from setuptools import setup
  21. from setuptools.command.install import install
  22. for scheme in INSTALL_SCHEMES.values():
  23. scheme['data'] = scheme['purelib']
  24. setup_args = {
  25. 'cmdclass': {'install': install},
  26. 'name': 'selenium',
  27. 'version': "3.141.0",
  28. 'license': 'Apache 2.0',
  29. 'description': 'Python bindings for Selenium',
  30. 'long_description': open(join(abspath(dirname(__file__)), "README.rst")).read(),
  31. 'url': 'https://github.com/SeleniumHQ/selenium/',
  32. 'classifiers': ['Development Status :: 5 - Production/Stable',
  33. 'Intended Audience :: Developers',
  34. 'License :: OSI Approved :: Apache Software License',
  35. 'Operating System :: POSIX',
  36. 'Operating System :: Microsoft :: Windows',
  37. 'Operating System :: MacOS :: MacOS X',
  38. 'Topic :: Software Development :: Testing',
  39. 'Topic :: Software Development :: Libraries',
  40. 'Programming Language :: Python',
  41. 'Programming Language :: Python :: 2.7',
  42. 'Programming Language :: Python :: 3.4',
  43. 'Programming Language :: Python :: 3.5',
  44. 'Programming Language :: Python :: 3.6'],
  45. 'package_dir': {
  46. 'selenium': 'selenium',
  47. 'selenium.common': 'selenium/common',
  48. 'selenium.webdriver': 'selenium/webdriver',
  49. },
  50. 'packages': ['selenium',
  51. 'selenium.common',
  52. 'selenium.webdriver',
  53. 'selenium.webdriver.android',
  54. 'selenium.webdriver.chrome',
  55. 'selenium.webdriver.common',
  56. 'selenium.webdriver.common.html5',
  57. 'selenium.webdriver.support',
  58. 'selenium.webdriver.firefox',
  59. 'selenium.webdriver.ie',
  60. 'selenium.webdriver.edge',
  61. 'selenium.webdriver.opera',
  62. 'selenium.webdriver.phantomjs',
  63. 'selenium.webdriver.remote',
  64. 'selenium.webdriver.support', ],
  65. 'include_package_data': True,
  66. 'install_requires': ['urllib3'],
  67. 'zip_safe': False
  68. }
  69. setup(**setup_args)