Skip to content

Commit

Permalink
[py] moved project metadata from setup.py to pyproject.toml (#14311)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsuryaprasad authored Nov 20, 2024
1 parent d9149ac commit 673d2c7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 60 deletions.
44 changes: 43 additions & 1 deletion py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,54 @@
requires = ["setuptools", "setuptools-rust"]
build-backend = "setuptools.build_meta"

[project]
name = "selenium"
version = "4.27.0.dev202410311942"
license = "Apache 2.0"
description = "Official Python bindings for Selenium WebDriver."
readme = "README.rst"
requires-python = "~=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"urllib3[socks]>=1.26,<3",
"trio~=0.17",
"trio-websocket~=0.9",
"certifi>=2021.10.8",
"typing_extensions~=4.9",
"websocket-client~=1.8",
]

[tool.setuptools]
zip-safe = false

[tool.setuptools.packages.find]
include = ["selenium*"]
exclude = ["test*"]
namespaces = false
namespace = false
# include-package-data is `true` by default in pyproject.toml

[project.urls]
Repository = "https://github.com/SeleniumHQ/selenium/"
BugTracker = "https://github.com/SeleniumHQ/selenium/issues"
Changelog = "https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES"
Documentation = "https://www.selenium.dev/documentation/overview/"
SourceCode = "https://github.com/SeleniumHQ/selenium/tree/trunk/py"

[tool.setuptools.package-data]
selenium_package = [
"*.py",
Expand Down
60 changes: 1 addition & 59 deletions py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,70 +27,12 @@

setup_args = {
'cmdclass': {'install': install},
'name': 'selenium',
'version': "4.27.0.dev202410311942",
'license': 'Apache 2.0',
'description': 'Official Python bindings for Selenium WebDriver.',
'long_description': open(join(abspath(dirname(__file__)), "README.rst")).read(),
'url': 'https://github.com/SeleniumHQ/selenium/',
'project_urls': {
'Bug Tracker': 'https://github.com/SeleniumHQ/selenium/issues',
'Changes': 'https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES',
'Documentation': 'https://www.selenium.dev/documentation/overview/',
'Source Code': 'https://github.com/SeleniumHQ/selenium/tree/trunk/py',
},
'python_requires': '~=3.8',
'classifiers': ['Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Libraries',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
],
'package_dir': {
'selenium': 'selenium',
'selenium.common': 'selenium/common',
'selenium.webdriver': 'selenium/webdriver',
},
'packages': ['selenium',
'selenium.common',
'selenium.webdriver',
'selenium.webdriver.chrome',
'selenium.webdriver.chromium',
'selenium.webdriver.common',
'selenium.webdriver.edge',
'selenium.webdriver.firefox',
'selenium.webdriver.ie',
'selenium.webdriver.remote',
'selenium.webdriver.safari',
'selenium.webdriver.support',
'selenium.webdriver.webkitgtk',
'selenium.webdriver.wpewebkit',
],
'include_package_data': True,
'install_requires': [
"urllib3[socks]>=1.26,<3",
"trio~=0.17",
"trio-websocket~=0.9",
"certifi>=2021.10.8",
"typing_extensions~=4.9",
"websocket-client~=1.8",
],
'rust_extensions': [
RustExtension(
{"selenium-manager": "selenium.webdriver.common.selenium-manager"},
binding=Binding.Exec
)
],
'zip_safe': False
}

setup(**setup_args)
setup(**setup_args)

0 comments on commit 673d2c7

Please sign in to comment.