Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[py] Fix pyproject.toml for installable from sdist #14806

Merged
merged 4 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading