Skip to content

Commit 673d2c7

Browse files
[py] moved project metadata from setup.py to pyproject.toml (#14311)
1 parent d9149ac commit 673d2c7

File tree

2 files changed

+44
-60
lines changed

2 files changed

+44
-60
lines changed

py/pyproject.toml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,54 @@
22
requires = ["setuptools", "setuptools-rust"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "selenium"
7+
version = "4.27.0.dev202410311942"
8+
license = "Apache 2.0"
9+
description = "Official Python bindings for Selenium WebDriver."
10+
readme = "README.rst"
11+
requires-python = "~=3.8"
12+
classifiers = [
13+
"Development Status :: 5 - Production/Stable",
14+
"Intended Audience :: Developers",
15+
"License :: OSI Approved :: Apache Software License",
16+
"Operating System :: POSIX",
17+
"Operating System :: Microsoft :: Windows",
18+
"Operating System :: MacOS :: MacOS X",
19+
"Topic :: Software Development :: Testing",
20+
"Topic :: Software Development :: Libraries",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3.8",
23+
"Programming Language :: Python :: 3.9",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
]
28+
dependencies = [
29+
"urllib3[socks]>=1.26,<3",
30+
"trio~=0.17",
31+
"trio-websocket~=0.9",
32+
"certifi>=2021.10.8",
33+
"typing_extensions~=4.9",
34+
"websocket-client~=1.8",
35+
]
36+
37+
[tool.setuptools]
38+
zip-safe = false
39+
540
[tool.setuptools.packages.find]
641
include = ["selenium*"]
742
exclude = ["test*"]
8-
namespaces = false
43+
namespace = false
944
# include-package-data is `true` by default in pyproject.toml
1045

46+
[project.urls]
47+
Repository = "https://github.com/SeleniumHQ/selenium/"
48+
BugTracker = "https://github.com/SeleniumHQ/selenium/issues"
49+
Changelog = "https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES"
50+
Documentation = "https://www.selenium.dev/documentation/overview/"
51+
SourceCode = "https://github.com/SeleniumHQ/selenium/tree/trunk/py"
52+
1153
[tool.setuptools.package-data]
1254
selenium_package = [
1355
"*.py",

py/setup.py

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -27,70 +27,12 @@
2727

2828
setup_args = {
2929
'cmdclass': {'install': install},
30-
'name': 'selenium',
31-
'version': "4.27.0.dev202410311942",
32-
'license': 'Apache 2.0',
33-
'description': 'Official Python bindings for Selenium WebDriver.',
34-
'long_description': open(join(abspath(dirname(__file__)), "README.rst")).read(),
35-
'url': 'https://github.com/SeleniumHQ/selenium/',
36-
'project_urls': {
37-
'Bug Tracker': 'https://github.com/SeleniumHQ/selenium/issues',
38-
'Changes': 'https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES',
39-
'Documentation': 'https://www.selenium.dev/documentation/overview/',
40-
'Source Code': 'https://github.com/SeleniumHQ/selenium/tree/trunk/py',
41-
},
42-
'python_requires': '~=3.8',
43-
'classifiers': ['Development Status :: 5 - Production/Stable',
44-
'Intended Audience :: Developers',
45-
'License :: OSI Approved :: Apache Software License',
46-
'Operating System :: POSIX',
47-
'Operating System :: Microsoft :: Windows',
48-
'Operating System :: MacOS :: MacOS X',
49-
'Topic :: Software Development :: Testing',
50-
'Topic :: Software Development :: Libraries',
51-
'Programming Language :: Python',
52-
'Programming Language :: Python :: 3.8',
53-
'Programming Language :: Python :: 3.9',
54-
'Programming Language :: Python :: 3.10',
55-
'Programming Language :: Python :: 3.11',
56-
'Programming Language :: Python :: 3.12',
57-
],
58-
'package_dir': {
59-
'selenium': 'selenium',
60-
'selenium.common': 'selenium/common',
61-
'selenium.webdriver': 'selenium/webdriver',
62-
},
63-
'packages': ['selenium',
64-
'selenium.common',
65-
'selenium.webdriver',
66-
'selenium.webdriver.chrome',
67-
'selenium.webdriver.chromium',
68-
'selenium.webdriver.common',
69-
'selenium.webdriver.edge',
70-
'selenium.webdriver.firefox',
71-
'selenium.webdriver.ie',
72-
'selenium.webdriver.remote',
73-
'selenium.webdriver.safari',
74-
'selenium.webdriver.support',
75-
'selenium.webdriver.webkitgtk',
76-
'selenium.webdriver.wpewebkit',
77-
],
78-
'include_package_data': True,
79-
'install_requires': [
80-
"urllib3[socks]>=1.26,<3",
81-
"trio~=0.17",
82-
"trio-websocket~=0.9",
83-
"certifi>=2021.10.8",
84-
"typing_extensions~=4.9",
85-
"websocket-client~=1.8",
86-
],
8730
'rust_extensions': [
8831
RustExtension(
8932
{"selenium-manager": "selenium.webdriver.common.selenium-manager"},
9033
binding=Binding.Exec
9134
)
9235
],
93-
'zip_safe': False
9436
}
9537

96-
setup(**setup_args)
38+
setup(**setup_args)

0 commit comments

Comments
 (0)