From 2888ec7011f5f2623fd3f3718d4668311932bb30 Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Mon, 4 Aug 2025 09:14:11 +0000 Subject: [PATCH] Bump python-jenkins to 1.8.3 (#14520) Co-authored-by: Brian Schubert --- stubs/python-jenkins/METADATA.toml | 2 +- stubs/python-jenkins/jenkins/__init__.pyi | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/stubs/python-jenkins/METADATA.toml b/stubs/python-jenkins/METADATA.toml index c6777f45f..fdf458654 100644 --- a/stubs/python-jenkins/METADATA.toml +++ b/stubs/python-jenkins/METADATA.toml @@ -1,3 +1,3 @@ -version = "1.8.*" +version = "~=1.8.3" upstream_repository = "https://opendev.org/jjb/python-jenkins" requires = ["types-requests"] diff --git a/stubs/python-jenkins/jenkins/__init__.pyi b/stubs/python-jenkins/jenkins/__init__.pyi index 0394676ed..4dd80855b 100644 --- a/stubs/python-jenkins/jenkins/__init__.pyi +++ b/stubs/python-jenkins/jenkins/__init__.pyi @@ -2,7 +2,7 @@ from _typeshed import Incomplete from collections.abc import Mapping, MutableMapping, Sequence from re import Pattern from typing import Any, Final, Literal, overload -from typing_extensions import TypeAlias +from typing_extensions import TypeAlias, deprecated import requests from requests.models import Request, Response @@ -14,6 +14,7 @@ LAUNCHER_JNLP: Final[str] LAUNCHER_WINDOWS_SERVICE: Final[str] DEFAULT_HEADERS: Final[dict[str, str]] DEFAULT_TIMEOUT: Final[float] +DEFAULT_RETRIES: Final = 0 INFO: Final[str] PLUGIN_INFO: Final[str] CRUMB_URL: Final[str] @@ -96,7 +97,9 @@ class Jenkins: auth: _Auth | None crumb: Mapping[str, Incomplete] | bool | Incomplete timeout: int - def __init__(self, url: str, username: str | None = None, password: str | None = None, timeout: int = ...) -> None: ... + def __init__( + self, url: str, username: str | None = None, password: str | None = None, timeout: int = ..., retries: int = 0 + ) -> None: ... def maybe_add_crumb(self, req: Request) -> None: ... def get_job_info(self, name: str, depth: int = 0, fetch_all_builds: bool = False) -> _JSON: ... def get_job_info_regex( @@ -112,7 +115,7 @@ class Jenkins: def get_queue_item(self, number: int, depth: int = 0) -> _JSON: ... def get_build_info(self, name: str, number: int, depth: int = 0) -> _JSON: ... def get_build_env_vars(self, name: str, number: int, depth: int = 0) -> _JSON | None: ... - def get_build_test_report(self, name: str, number: int, depth: int = 0) -> _JSON | None: ... + def get_build_test_report(self, name: str, number: int, depth: int = 0, tree: str | None = None) -> _JSON | None: ... def get_build_artifact(self, name: str, number: int, artifact: str) -> _JSON: ... def get_build_artifact_as_bytes(self, name: str, number: int, artifact: str) -> bytes: ... def get_build_stages(self, name: str, number: int) -> _JSON: ... @@ -121,6 +124,7 @@ class Jenkins: def get_info(self, item: str = "", query: str | None = None) -> _JSON: ... def get_whoami(self, depth: int = 0) -> _JSON: ... def get_version(self) -> str: ... + @deprecated("Deprecated since 0.4.9. Use `get_plugins` instead.") def get_plugins_info(self, depth: int = 2) -> _JSON: ... def get_plugin_info(self, name: str, depth: int = 2) -> _JSON: ... def get_plugins(self, depth: int = 2) -> _JSON: ... @@ -179,6 +183,7 @@ class Jenkins: def delete_build(self, name: str, number: int) -> None: ... def wipeout_job_workspace(self, name: str) -> None: ... def get_running_builds(self) -> list[_JSON]: ... + def get_nodes_with_info(self, depth: int = 0) -> list[_JSON]: ... def get_nodes(self, depth: int = 0) -> list[_JSON]: ... def get_node_info(self, name: str, depth: int = 0) -> _JSON: ... def node_exists(self, name: str) -> bool: ...