Skip to content

Commit 3cc908d

Browse files
committed
[ci][py] Add rules validate-pyproject
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent d87cd35 commit 3cc908d

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

py/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "selenium"
77
version = "4.28.0.202411252021"
8-
license = "Apache 2.0"
8+
license = { text = "Apache 2.0" }
99
description = "Official Python bindings for Selenium WebDriver."
1010
readme = "README.rst"
1111
requires-python = "~=3.8"
@@ -24,6 +24,7 @@ classifiers = [
2424
"Programming Language :: Python :: 3.10",
2525
"Programming Language :: Python :: 3.11",
2626
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2728
]
2829
dependencies = [
2930
"urllib3[socks]>=1.26,<3",
@@ -40,7 +41,7 @@ zip-safe = false
4041
[tool.setuptools.packages.find]
4142
include = ["selenium*"]
4243
exclude = ["test*"]
43-
namespace = false
44+
namespaces = false
4445
# include-package-data is `true` by default in pyproject.toml
4546

4647
[project.urls]

py/tox.ini

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
[tox]
2-
envlist = docs, flake8, isort
2+
envlist = docs, flake8, isort, validate-pyproject
3+
4+
[testenv:validate-pyproject]
5+
skip_install = true
6+
deps =
7+
validate-pyproject==0.23
8+
packaging==24.2
9+
commands =
10+
validate-pyproject ./pyproject.toml
311

412
[testenv:docs]
513
skip_install = true
614
deps =
715
-r {toxinidir}/docs/requirements.txt
816
-r {toxinidir}/requirements.txt
917

10-
commands =
18+
commands =
1119
; regenerate autodoc stub pages
1220
sphinx-autogen docs/source/api.rst
13-
; build api docs
21+
; build api docs
1422
sphinx-build -b html -d ../build/docs/doctrees docs/source ../build/docs/api/py {posargs}
1523
setenv =
1624
PYTHONPATH = {toxinidir}/.

0 commit comments

Comments
 (0)