diff --git a/Rakefile b/Rakefile index 24f41e429f1cd..454096c176366 100644 --- a/Rakefile +++ b/Rakefile @@ -582,10 +582,11 @@ namespace :py do desc 'Update Python version' task :version, [:version] do |_task, arguments| old_version = python_version - nightly = ".dev#{Time.now.strftime('%Y%m%d%H%M')}" + nightly = ".#{Time.now.strftime('%Y%m%d%H%M')}" new_version = updated_version(old_version, arguments[:version], nightly) ['py/setup.py', + 'py/pyproject.toml', 'py/BUILD.bazel', 'py/selenium/__init__.py', 'py/selenium/webdriver/__init__.py', @@ -1138,7 +1139,7 @@ def updated_version(current, desired = nil, nightly = nil) desired.split('.').tap { |v| v << 0 while v.size < 3 }.join('.') elsif current.split(/\.|-/).size > 3 # if current version is already nightly, just need to bump it; this will be noop for some languages - pattern = /-?\.?(nightly|SNAPSHOT|dev)\d*$/ + pattern = /-?\.?(nightly|SNAPSHOT|dev|\d{12})\d*$/ current.gsub(pattern, nightly) elsif current.split(/\.|-/).size == 3 # if current version is not nightly, need to bump the version and make nightly diff --git a/py/BUILD.bazel b/py/BUILD.bazel index beba3d5684c7c..0e955f052f4d8 100644 --- a/py/BUILD.bazel +++ b/py/BUILD.bazel @@ -62,7 +62,7 @@ compile_pip_requirements( ], ) -SE_VERSION = "4.27.0.dev202410311942" +SE_VERSION = "4.27.0.202410311942" BROWSER_VERSIONS = [ "v85", diff --git a/py/docs/source/conf.py b/py/docs/source/conf.py index 1d5148a0508fa..41a620b368248 100644 --- a/py/docs/source/conf.py +++ b/py/docs/source/conf.py @@ -58,7 +58,7 @@ # The short X.Y version. version = '4.27' # The full version, including alpha/beta/rc tags. -release = '4.27.0.dev202410311942' +release = '4.27.0.202410311942' # 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 7ee15417a32f1..6488cda070f56 100644 --- a/py/pyproject.toml +++ b/py/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "selenium" -version = "4.27.0.dev202410311942" +version = "4.27.0.202410311942" license = "Apache 2.0" description = "Official Python bindings for Selenium WebDriver." readme = "README.rst" @@ -52,15 +52,15 @@ SourceCode = "https://github.com/SeleniumHQ/selenium/tree/trunk/py" [tool.setuptools.package-data] selenium_package = [ - "*.py", + "*.py", "*.rst", - "*.json", - "*.xpi", + "*.json", + "*.xpi", "*.js", "py.typed", "prune*", "selenium.egg-info*", - "selenium-manager", + "selenium-manager", "selenium-manager.exe", "CHANGES", "LICENSE" diff --git a/py/selenium/__init__.py b/py/selenium/__init__.py index e7ab5cc0b075e..8fa1fd3219d4d 100644 --- a/py/selenium/__init__.py +++ b/py/selenium/__init__.py @@ -16,4 +16,4 @@ # under the License. -__version__ = "4.27.0.dev202410311942" +__version__ = "4.27.0.202410311942" diff --git a/py/selenium/webdriver/__init__.py b/py/selenium/webdriver/__init__.py index b64471644e380..c57217aefb69f 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.27.0.dev202410311942" +__version__ = "4.27.0.202410311942" # We need an explicit __all__ because the above won't otherwise be exported. __all__ = [ diff --git a/py/setup.py b/py/setup.py index 3014b5321e307..0f93e33f0ecae 100755 --- a/py/setup.py +++ b/py/setup.py @@ -35,4 +35,4 @@ ], } -setup(**setup_args) \ No newline at end of file +setup(**setup_args)