Skip to content

Commit

Permalink
[ci][py] Update latest index for new Nightly upload (#14739)
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 authored Nov 20, 2024
1 parent 8f725b3 commit 789e8d4
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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
Expand Down
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.27.0.dev202410311942"
SE_VERSION = "4.27.0.202410311942"

BROWSER_VERSIONS = [
"v85",
Expand Down
2 changes: 1 addition & 1 deletion py/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
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.27.0.dev202410311942"
__version__ = "4.27.0.202410311942"
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.27.0.dev202410311942"
__version__ = "4.27.0.202410311942"

# We need an explicit __all__ because the above won't otherwise be exported.
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
],
}

setup(**setup_args)
setup(**setup_args)

0 comments on commit 789e8d4

Please sign in to comment.