Skip to content

Commit

Permalink
[py] Fix pyproject.toml for installable from sdist (#14806)
Browse files Browse the repository at this point in the history
* [ci][py] Add rules validate-pyproject

Signed-off-by: Viet Nguyen Duc <[email protected]>

* [py] Bump version to 4.27.1

Signed-off-by: Viet Nguyen Duc <[email protected]>

* Update CHANGELOG

Signed-off-by: Viet Nguyen Duc <[email protected]>

---------

Signed-off-by: Viet Nguyen Duc <[email protected]>
Co-authored-by: Diego Molina <[email protected]>
  • Loading branch information
VietND96 and diemol authored Nov 26, 2024
1 parent 1210634 commit 1895c6e
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion py/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ compile_pip_requirements(
],
)

SE_VERSION = "4.28.0.202411252021"
SE_VERSION = "4.27.1"

BROWSER_VERSIONS = [
"v85",
Expand Down
4 changes: 4 additions & 0 deletions py/CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Selenium 4.27.1
* Fix `pyproject.toml` for installable from sdist (#14806)
* Revert the Deprecation warnings of WebElement.get_attribute() (#14808)

Selenium 4.27.0
* Add CDP for Chrome 131 and remove 128
* Add Firefox CDP deprecation warnings (#14787)
Expand Down
4 changes: 2 additions & 2 deletions py/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
# built documents.
#
# The short X.Y version.
version = '4.28'
version = '4.27'
# The full version, including alpha/beta/rc tags.
release = '4.28.0.202411252021'
release = '4.27.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
7 changes: 4 additions & 3 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"

[project]
name = "selenium"
version = "4.28.0.202411252021"
license = "Apache 2.0"
version = "4.27.1"
license = { text = "Apache 2.0" }
description = "Official Python bindings for Selenium WebDriver."
readme = "README.rst"
requires-python = "~=3.8"
Expand All @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"urllib3[socks]>=1.26,<3",
Expand All @@ -40,7 +41,7 @@ zip-safe = false
[tool.setuptools.packages.find]
include = ["selenium*"]
exclude = ["test*"]
namespace = false
namespaces = false
# include-package-data is `true` by default in pyproject.toml

[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion py/selenium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
# under the License.


__version__ = "4.28.0.202411252021"
__version__ = "4.27.1"
2 changes: 1 addition & 1 deletion py/selenium/webdriver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
from .wpewebkit.service import Service as WPEWebKitService # noqa
from .wpewebkit.webdriver import WebDriver as WPEWebKit # noqa

__version__ = "4.28.0.202411252021"
__version__ = "4.27.1"

# We need an explicit __all__ because the above won't otherwise be exported.
__all__ = [
Expand Down
14 changes: 11 additions & 3 deletions py/tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
[tox]
envlist = docs, flake8, isort
envlist = docs, flake8, isort, validate-pyproject

[testenv:validate-pyproject]
skip_install = true
deps =
validate-pyproject==0.23
packaging==24.2
commands =
validate-pyproject ./pyproject.toml

[testenv:docs]
skip_install = true
deps =
-r {toxinidir}/docs/requirements.txt
-r {toxinidir}/requirements.txt

commands =
commands =
; regenerate autodoc stub pages
sphinx-autogen docs/source/api.rst
; build api docs
; build api docs
sphinx-build -b html -d ../build/docs/doctrees docs/source ../build/docs/api/py {posargs}
setenv =
PYTHONPATH = {toxinidir}/.
Expand Down

0 comments on commit 1895c6e

Please sign in to comment.