Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

chore(deps): update dependency python-gitlab to v5.6.0#92

Merged
gi8lino merged 1 commit into
masterfrom
renovate/python-gitlab-5.x
Jan 29, 2025
Merged

chore(deps): update dependency python-gitlab to v5.6.0#92
gi8lino merged 1 commit into
masterfrom
renovate/python-gitlab-5.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jan 28, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
python-gitlab (changelog) ==5.3.1 -> ==5.6.0 age adoption passing confidence

Release Notes

python-gitlab/python-gitlab (python-gitlab)

v5.6.0

Compare Source

Features
  • group: Add support for group level MR approval rules
    (304bdd0)

v5.5.0

Compare Source

Chores
  • Add deprecation warning for mirror_pull functions
    (7f6fd5c)

  • Relax typing constraints for response action
    (f430078)

  • tests: Catch deprecation warnings
    (0c1af08)

Documentation
  • Add usage of pull mirror
    (9b374b2)

  • Remove old pull mirror implementation
    (9e18672)

Features
  • functional: Add pull mirror test
    (3b31ade)

  • projects: Add pull mirror class
    (2411bff)

  • unit: Add pull mirror tests
    (5c11203)

v5.4.0

Compare Source

Bug Fixes
  • api: Make type ignores more specific where possible
    (e3cb806)

Instead of using absolute ignore # type: ignore use a more specific ignores like # type: ignore[override]. This might help in the future where a new bug might be introduced and get
ignored by a general ignore comment but not a more specific one.

Signed-off-by: Igor Ponomarev igor.ponomarev@collabora.com

  • api: Return the new commit when calling cherry_pick
    (de29503)

  • files: Add optional ref parameter for cli project-file raw (#​3032)
    (22f03bd)

The ef parameter was removed in python-gitlab v4.8.0. This will add ef back as an optional parameter
for the project-file raw cli command.

Chores
  • Fix missing space in deprecation message
    (ba75c31)

  • Fix pytest deprecation
    (95db680)

pytest has changed the function argument name to start_path

  • Fix warning being generated
    (0eb5eb0)

The CI shows a warning. Use get_all=False to resolve issue.

  • Resolve DeprecationWarning message in CI run
    (accd5aa)

Catch the DeprecationWarning in our test, as we expect it.

  • ci: Set a 30 minute timeout for 'functional' tests
    (e8d6953)

Currently the functional API test takes around 17 minutes to run. And the functional CLI test takes
around 12 minutes to run.

Occasionally a job gets stuck and will sit until the default 360 minutes job timeout occurs.

Now have a 30 minute timeout for the 'functional' tests.

Co-authored-by: renovate[bot] <29139614+renovate[bot]@​users.noreply.github.com>

  • deps: Update gitlab/gitlab-ee docker tag to v17.7.1-ee.0
    (#​3082,
    1e95944)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@​users.noreply.github.com>

  • deps: Update mypy to 1.14 and resolve issues
    (671e711)

mypy 1.14 has a change to Enum Membership Semantics:
https://mypy.readthedocs.io/en/latest/changelog.html

Resolve the issues with Enum and typing, and update mypy to 1.14

  • test: Prevent 'job_with_artifact' fixture running forever
    (e4673d8)

Previously the 'job_with_artifact' fixture could run forever. Now give it up to 60 seconds to
complete before failing.

Continuous Integration
  • Use gitlab-runner:v17.7.1 for the CI
    (2dda9dc)

The latest gitlab-runner image does not have the gitlab-runner user and it causes our tests to
fail.

Closes: #​3091

Features
  • api: Add argument that appends extra HTTP headers to a request
    (fb07b5c)

Currently the only way to manipulate the headers for a request is to use Gitlab.headers attribute.
However, this makes it very concurrently unsafe because the Gitlab object can be shared between
multiple requests at the same time.

Instead add a new keyword argument extra_headers which will update the headers dictionary with new
values just before the request is sent.

For example, this can be used to download a part of a artifacts file using the Range header:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests

Signed-off-by: Igor Ponomarev igor.ponomarev@collabora.com

  • api: Add support for external status check
    (175b355)

  • api: Narrow down return type of download methods using typing.overload
    (44fd9dc)

Currently the download methods such as ProjectJob.artifacts have return type set to
Optional[Union[bytes, Iterator[Any]]] which means they return either None or bytes or
Iterator[Any].

However, the actual return type is determined by the passed streamed and iterator arguments.
Using @typing.overload decorator it is possible to return a single type based on the passed
arguments.

Add overloads in the following order to all download methods:

  1. If streamed=False and iterator=False return bytes. This is the default argument values
    therefore it should be first as it will be used to lookup default arguments. 2. If iterator=True
    return Iterator[Any]. This can be combined with both streamed=True and streamed=False. 3. If
    streamed=True and iterator=False return None. In this case action argument can be set to a
    callable that accepts bytes.

Signed-off-by: Igor Ponomarev igor.ponomarev@collabora.com

  • api: Narrow down return type of ProjectFileManager.raw using typing.overload
    (36d9b24)

This is equivalent to the changes in 44fd9dc but for
ProjectFileManager.raw method that I must have missed in the original commit.

Signed-off-by: Igor Ponomarev igor.ponomarev@collabora.com


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependency label Jan 28, 2025
@renovate renovate Bot force-pushed the renovate/python-gitlab-5.x branch from 367d73c to b0a6502 Compare January 28, 2025 17:00
@renovate renovate Bot changed the title chore(deps): update dependency python-gitlab to v5.4.0 chore(deps): update dependency python-gitlab to v5.6.0 Jan 28, 2025
@gi8lino gi8lino merged commit afcff52 into master Jan 29, 2025
@gi8lino gi8lino deleted the renovate/python-gitlab-5.x branch January 29, 2025 07:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant