diff --git a/py/BUILD.bazel b/py/BUILD.bazel index 95bc85084095f..4537f6b9a6e14 100644 --- a/py/BUILD.bazel +++ b/py/BUILD.bazel @@ -62,7 +62,7 @@ compile_pip_requirements( ], ) -SE_VERSION = "4.28.0.202411252021" +SE_VERSION = "4.27.1" BROWSER_VERSIONS = [ "v85", diff --git a/py/CHANGES b/py/CHANGES index c0db6781b2ec8..ea3cdf8db4397 100644 --- a/py/CHANGES +++ b/py/CHANGES @@ -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) diff --git a/py/docs/source/conf.py b/py/docs/source/conf.py index a849406e4f2bf..4e78039a603c0 100644 --- a/py/docs/source/conf.py +++ b/py/docs/source/conf.py @@ -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. diff --git a/py/pyproject.toml b/py/pyproject.toml index 7da47ebed42bb..4f7ee07119c2d 100644 --- a/py/pyproject.toml +++ b/py/pyproject.toml @@ -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" @@ -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", @@ -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] diff --git a/py/selenium/__init__.py b/py/selenium/__init__.py index e3ff880df800d..2a9f1e1a9cdfb 100644 --- a/py/selenium/__init__.py +++ b/py/selenium/__init__.py @@ -16,4 +16,4 @@ # under the License. -__version__ = "4.28.0.202411252021" +__version__ = "4.27.1" diff --git a/py/selenium/webdriver/__init__.py b/py/selenium/webdriver/__init__.py index febdae5a03698..8880c5a91ff21 100644 --- a/py/selenium/webdriver/__init__.py +++ b/py/selenium/webdriver/__init__.py @@ -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__ = [ diff --git a/py/tox.ini b/py/tox.ini index 3ba7d4be20ccc..083da94651e71 100644 --- a/py/tox.ini +++ b/py/tox.ini @@ -1,5 +1,13 @@ [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 @@ -7,10 +15,10 @@ 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}/.