Update dependency python-gitlab to v8 - #141
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.13.0→==8.5.0Release Notes
python-gitlab/python-gitlab (python-gitlab)
v8.5.0Compare Source
Bug Fixes
Typo
(
72134f5)api: Allow ProjectMergeRequestDiscussionNote.resolved to be updated
(
b411e5a)client: Retry fetching server version after an unknown result
(
046fbac)Continuous Integration
(
a9c5d17)Documentation
Correct error with backticks
(
e57559e)discussions: Add example of resolving a single project merge request discussion note
(
2ef6452)Features
api: Add ListMixin to remaining *DiscussionNoteManagers
(
0e2347c)client: Additionally handle retries for request timeouts
(
4e32439)hooks: Support custom webhook template on project hooks
(
39dc990)users: Allow updating only a user's email, username or name
(
0d2afb8)Testing
(
57fd60c)v8.4.0Compare Source
Features
(
3738bb2)Testing
(
2ab6d9f)v8.3.0Compare Source
Bug Fixes
api: Update CI/CD variable create and update attributes
(
849301b)mixins: Register service account token classes in RotateMixin CLI actions
(
2cf430b)Features
(
feb6ced)v8.2.0Compare Source
Documentation
(
e6669f9)Features
api: Add support for project feature flags and feature flag user lists
(
be68285)projects: Add optional parameter to set approval rule on all protected branches.
(
8d76028)v8.1.0Compare Source
Bug Fixes
(
84ad3fd)Features
api: Add support for order_by filter in runner jobs
(
d5dc73d)api: Add support for sort filter in runner jobs
(
b117ee3)v8.0.0Compare Source
Bug Fixes
Actually define project repr_attr
(
4187a69)File save start_branch as a body attribute
(
1001d93)Chores
black: Run black v26 on code
(
4a8d82b)precommit: Update dependency black to v26
(
ad43b76)Features
(
6f0da67)Breaking Changes
v7.1.0Compare Source
Bug Fixes
(
4221195)Continuous Integration
(
614a74c)Features
(
9dd62c3)Testing
(
c7c139b)v7.0.0Compare Source
Features
(
22941ac)Breaking Changes
v6.5.0Compare Source
Bug Fixes
(
fb9693b)Continuous Integration
(
9357a37)Documentation
(
2acac19)Features
api: Add content_ref and dry_run_ref parameters to ProjectCiLintManager
(
e8d2538)users: Implement 'skip_confirmation' in users 'emails' creation
(
2981730)v6.4.0Compare Source
Features
users: Implement missing arguments in users 'list'
(
99923d4)users: Sort 'user list' arguments against documentation
(
99923d4)v6.3.0Compare Source
Features
Add sync method to force remote mirror updates
(
f3c6678)api: Add missing ProjectJob list filters
(
5fe0e71)api: Add missing ProjectPackageManager list filters
(
b1696be)users: Implement support for 'admins' in administrators 'list'
(
aaed51c)v6.2.0Compare Source
Build System
(
2f20634)Continuous Integration
stale: Improve formatting of stale message
(
0ef20d1)stale: Increase
operations-per-runto 500(
326e1a4)Features
api: Add ListMixin to ProjectIssueDiscussionNoteManager
(
f908f0e)api: Add ListMixin to ProjectMergeRequestDiscussionNoteManager
(
865339a)v6.1.0Compare Source
Chores
(
f734c58)Documentation
(
45dda50)Features
api: Add listing user contributed projects
(
98c1307)api: Add support for project tag list filters
(
378a836)api: Pipeline inputs support
(#3194,
306c4b1)const: Add PLANNER_ACCESS constant
(
ba6f174)groups: Add protectedbranches to group class
(#3164,
bfd31a8)v6.0.0Compare Source
Chores
Add reformat code commit to .git-blame-ignore-revs
(
a6ac939)Reformat code with skip_magic_trailing_comma = true
(
2100aa4)Remove trivial get methods in preparation for generic Get mixin
(
edd01a5)Upgrade to sphinx 8.2.1 and resolve issues
(
d0b5ae3)ci: Replace docs artifact with readthedocs previews
(
193c5de)Documentation
Use get_all keyword arg instead of all in docstrings
(
f62dda7)Use list(get_all=True) in documentation examples
(
f36614f)api-usage: Fix GitLab API links to the publicly accessible URLs
(
f55fa15)api-usage-graphql: Fix the example graphql query string
(
8dbdd7e)job_token_scope: Fix typo/inconsistency
(
203bd92)Features
Adds member role methods
(
055557e)api: Add iteration_id as boards create attribute
(#3191,
938b0d9)api: Add support for adding instance deploy keys
(
22be96c)api: Add support for avatar removal
(
5edd2e6)api: Add support for token self-rotation
(
da40e09)api: ListMixin.list typing overload
(
6eee494)api: Make RESTManager generic on RESTObject class
(
91c4f18)api: Make RESTObjectList typing generic
(
befba35)settings: Implement support for 'silent_mode_enabled'
(
a9163a9)Refactoring
(
4e90c11)Testing
(
cbc613d)v5.6.0Compare Source
Features
(
304bdd0)v5.5.0Compare 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.0Compare Source
Bug Fixes
(
e3cb806)Instead of using absolute ignore
# type: ignoreuse a more specific ignores like# type: ignore[override]. This might help in the future where a new bug might be introduced and getignored 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(
0eb5eb0)The CI shows a warning. Use
get_all=Falseto resolve issue.(
accd5aa)Catch the DeprecationWarning in our test, as we expect it.
(
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.
deps: Update all non-major dependencies
(
939505b)deps: Update all non-major dependencies
(
cbd4263)deps: Update gitlab (#3088,
9214b83)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(#3082,
1e95944)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(
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
(
e4673d8)Previously the 'job_with_artifact' fixture could run forever. Now give it up to 60 seconds to
complete before failing.
Continuous Integration
(
2dda9dc)The
latestgitlab-runner image does not have thegitlab-runneruser and it causes our tests tofail.
Closes: #3091
Features
(
fb07b5c)Currently the only way to manipulate the headers for a request is to use
Gitlab.headersattribute.However, this makes it very concurrently unsafe because the
Gitlabobject can be shared betweenmultiple requests at the same time.
Instead add a new keyword argument
extra_headerswhich will update the headers dictionary with newvalues just before the request is sent.
For example, this can be used to download a part of a artifacts file using the
Rangeheader: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.artifactshave return type set toOptional[Union[bytes, Iterator[Any]]]which means they return eitherNoneorbytesorIterator[Any].However, the actual return type is determined by the passed
streamedanditeratorarguments.Using
@typing.overloaddecorator it is possible to return a single type based on the passedarguments.
Add overloads in the following order to all download methods:
streamed=Falseanditerator=Falsereturnbytes. This is the default argument valuestherefore it should be first as it will be used to lookup default arguments. 2. If
iterator=Truereturn
Iterator[Any]. This can be combined with bothstreamed=Trueandstreamed=False. 3. Ifstreamed=Trueanditerator=FalsereturnNone. In this caseactionargument can be set to acallable that accepts
bytes.Signed-off-by: Igor Ponomarev igor.ponomarev@collabora.com
(
36d9b24)This is equivalent to the changes in
44fd9dcbut forProjectFileManager.rawmethod that I must have missed in the original commit.Signed-off-by: Igor Ponomarev igor.ponomarev@collabora.com
v5.3.1Compare Source
Bug Fixes
api: Allow configuration of keep_base_url from file
(
f4f7d7a)registry-protection: Fix api url
(
8c1aaa3)See:
https://docs.gitlab.com/ee/api/container_repository_protection_rules.html#list-container-repository-protection-rules
Chores
Bump to 5.3.1
(
912e1a0)deps: Update dependency jinja2 to v3.1.5 [security]
(
01d4194)v5.3.0Compare Source
Chores
(#3070,
62b7eb7)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(
aa07449)Features
(
40af1c8)v5.2.0Compare Source
Chores
deps: Update all non-major dependencies
(
1e02f23)deps: Update all non-major dependencies
(
6532e8c)deps: Update all non-major dependencies
(
8046387)deps: Update codecov/codecov-action action to v5
(
735efff)deps: Update dependency commitizen to v4
(
9306362)deps: Update gitlab/gitlab-ee docker tag to v17.6.1-ee.0
(#3053,
f2992ae)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(#3065,
db0db26)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
deps: Update pre-commit hook commitizen-tools/commitizen to v4
(
a8518f1)docs: Fix CHANGELOG tracebacks codeblocks
(
9fe372a)With v5.1.0 CHANGELOG.md was updated that mangled v1.10.0 triple backtick codeblock Traceback output
that made sphinx fail [1] with a non-zero return code.
The resulting docs appears to be processes as text after the failing line [2]. While reviewing other
backtick codeblocks fix v1.8.0 [3] to the original traceback.
[1]
https://github.com/python-gitlab/python-gitlab/actions/runs/12060608158/job/33631303063#step:5:204
[2] https://python-gitlab.readthedocs.io/en/v5.1.0/changelog.html#v1-10-0-2019-07-22 [3]
https://python-gitlab.readthedocs.io/en/v5.0.0/changelog.html#id258
(
b70830d)Documentation
(#3059,
f460d95)Features
0d41da3)managers to Project in project.py * docs(merge_requests): Add example of creating mr with
description template * test(templates): Added unit tests for templates * docs(templates): added
section for project templates
(
288f39c)v5.1.0Compare Source
Chores
deps: Update all non-major dependencies
(
1e02f23)deps: Update all non-major dependencies
(
6532e8c)deps: Update all non-major dependencies
(
8046387)deps: Update codecov/codecov-action action to v5
(
735efff)deps: Update dependency commitizen to v4
(
9306362)deps: Update gitlab/gitlab-ee docker tag to v17.6.1-ee.0
(#3053,
f2992ae)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(#3065,
db0db26)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
deps: Update pre-commit hook commitizen-tools/commitizen to v4
(
a8518f1)docs: Fix CHANGELOG tracebacks codeblocks
(
9fe372a)With v5.1.0 CHANGELOG.md was updated that mangled v1.10.0 triple backtick codeblock Traceback output
that made sphinx fail [1] with a non-zero return code.
The resulting docs appears to be processes as text after the failing line [2]. While reviewing other
backtick codeblocks fix v1.8.0 [3] to the original traceback.
[1]
https://github.com/python-gitlab/python-gitlab/actions/runs/12060608158/job/33631303063#step:5:204
[2] https://python-gitlab.readthedocs.io/en/v5.1.0/changelog.html#v1-10-0-2019-07-22 [3]
https://python-gitlab.readthedocs.io/en/v5.0.0/changelog.html#id258
(
b70830d)Documentation
(#3059,
f460d95)Features
0d41da3)managers to Project in project.py * docs(merge_requests): Add example of creating mr with
description template * test(templates): Added unit tests for templates * docs(templates): added
section for project templates
(
288f39c)v5.0.0Compare Source
Bug Fixes
(#3011,
1a68f1c)Co-authored-by: Patrick Evans patrick.evans@gehealthcare.com
Chores
b565e78)Mark that Python 3.13 is supported.
Use Python 3.13 for the Mac and Windows tests.
Also remove the 'py38' tox environment. We no longer support Python 3.8.
(
14d2a82)Also fix annotations not working in Python 3.14 by using the annotation on the 'class' instead
of on the 'instance'
Closes: #3013
(#3017,
482f2fe)python-gitlab hasn't supported the GitLab v3 API since 2018. The last version of python-gitlab to
support it was v1.4
Support was removed in:
commit
fe89b94Author: Gauvain Pocentek gauvain@pocentek.netDate: Sat May 19 17:10:08 2018 +0200
Drop API v3 support
Drop the code, the tests, and update the documentation.
deps: Update all non-major dependencies
(
1e4326b)deps: Update all non-major dependencies
(
b3834dc)deps: Update dependency ubuntu to v24
(
6fda15d)deps: Update gitlab/gitlab-ee docker tag to v17.4.2-ee.0
(
1cdfe40)deps: Update gitlab/gitlab-ee docker tag to v17.5.0-ee.0
(
c02a392)Documentation
(#3022,
3739b5d)Features
(#3005,
9734ad4)Python 3.8 is End-of-Life (EOL) as of 2024-10 as stated in https://devguide.python.org/versions/ and
https://peps.python.org/pep-0569/#lifespan
By dropping support for Python 3.8 and requiring Python 3.9 or higher it allows python-gitlab to
take advantage of new features in Python 3.9, which are documented at:
https://docs.python.org/3/whatsnew/3.9.html
Closes: #2968
BREAKING CHANGE: As of python-gitlab 5.0.0, Python 3.8 is no longer supported. Python 3.9 or higher
is required.
Testing
to_json()method(
f4bfe19)This should get us to 100% test coverage on
gitlab/base.pyBREAKING CHANGES
v4.13.0Compare Source
Chores
deps: Update all non-major dependencies
(
c3efb37)deps: Update dependency pre-commit to v4
(#3008,
5c27546)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Features
(
0ee0e02)v4.12.2Compare Source
Bug Fixes
project.files.head()method(#3006,
9bf26df)When an error occurs, raise
GitlabHeadErrorinproject.files.head()method.Closes: #3004
v4.12.1Compare Source
Bug Fixes
ci: Do not rely on GitLab.com runner arch variables
(#3003,
c848d12)files: Correctly raise GitlabGetError in get method
(
190ec89)Chores
(#3000,
d3da326)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(
64eed5d)v4.12.0Compare Source
Bug Fixes
(#2977,
96a18b0)Co-authored-by: Patrick Evans patrick.evans@gehealthcare.com
Co-authored-by: Nejc Habjan hab.nejc@gmail.com
Chores
(#2997,
a0729b8)pylint 3.3.1 appears to have added "too-many-positional-arguments" check with a value of 5.
I don't disagree with this, but we have many functions which exceed this value. We might think about
converting some of positional arguments over to keyword arguments in the future. But that is for
another time.
For now disable the check across the project.
deps: Update all non-major dependencies
(
ae132e7)deps: Update all non-major dependencies
(
10ee58a)deps: Update dependency types-setuptools to v75
(
a2ab54c)deps: Update gitlab/gitlab-ee docker tag to v17.3.2-ee.0
(
5cd1ab2)deps: Update gitlab/gitlab-ee docker tag to v17.4.0-ee.0
(
8601808)Features
Introduce related_issues to merge requests
(#2996,
174d992)build: Build multi-arch images
(#2987,
29f617d)v4.11.1Compare Source
Bug Fixes
(
b41b2de)v4.11.0Compare Source
Chores
deps: Update all non-major dependencies
(
fac8bf9)deps: Update all non-major dependencies
(
88c7529)deps: Update dependency types-setuptools to v74
(
bdfaddb)pre-commit: Add deps
(
fe5e608)Documentation
(
b9f5c12)Features
Add a minimal GraphQL client
(
d6b1b0a)api: Add exclusive GET attrs for /groups/:id/members
(
d44ddd2)api: Add exclusive GET attrs for /projects/:id/members
(
e637808)client: Add retry handling to GraphQL client
(
8898c38)client: Make retries configurable in GraphQL
(
145870e)Refactoring
(
3235c48)v4.10.0Compare Source
Chores
deps: Update all non-major dependencies
(
2ade0d9)deps: Update all non-major dependencies
(
0578bf0)deps: Update all non-major dependencies
(
31786a6)deps: Update dependency myst-parser to v4
(
930d4a2)deps: Update dependency sphinx to v8
(
cb65ffb)deps: Update dependency types-setuptools to v73
(
d55c045)deps: Update gitlab/gitlab-ee docker tag to v17.2.2-ee.0
(
b2275f7)deps: Update gitlab/gitlab-ee docker tag to v17.3.0-ee.0
(
e5a46f5)deps: Update gitlab/gitlab-ee docker tag to v17.3.1-ee.0
(
3fdd130)deps: Update python-semantic-release/upload-to-gh-release digest to
17c75b7(
12caaa4)release: Track tags for renovate
(
d600444)Documentation
(
43a16ac)There is an example about object attributes in the FAQ. It shows how to properly fetch all
attributes of all projects, by using list() followed by a get(id) call.
Unfortunately this example used a wrong variable name, which caused it not to work and which could
have made it slightly confusing to readers. This commit fixes that, by changing the variable name.
Now the example uses one variable for two Python objects. As they correspond to the same GitLab
object and the intended behavior is to obtain that very object, just with all attributes, this is
fine and is probably what readers will find most useful in this context.
Features
(
9353f54)Add the ability to trigger tests of project and group hooks.
Fixes #2924
Testing
(
bdc155b)Before we allowed a maximum of around 15 seconds for the project-export. Often times the CI was
failing with this value.
Change it to a maximum of around 30 seconds.
v4.9.0Compare Source
Chores
(
67370d8)pre-commit incorrectly wants double back-quotes inside the code section. Rather than fight it, just
use single quotes.
deps: Update all non-major dependencies
(
f95ca26)deps: Update all non-major dependencies
(
7adc86b)deps: Update all non-major dependencies
(
e820db0)deps: Update dependency types-setuptools to v71
(
d6a7dba)deps: Update gitlab/gitlab-ee docker tag to v17.2.1-ee.0
(
d13a656)deps: Update pre-commit hook maxbrunet/pre-commit-renovate to v38
(
f13968b)deps: Update python-semantic-release/upload-to-gh-release digest to
0dcddac(
eb5c6f7)deps: Update python-semantic-release/upload-to-gh-release digest to
e2355e1(
eb18552)Features
(
64ae61e)v4.8.0Compare Source
Bug Fixes
(
e3cb806)Instead of using absolute ignore
# type: ignoreuse a more specific ignores like# type: ignore[override]. This might help in the future where a new bug might be introduced and getignored by a general ignore comment but not a more specific one.
Signed-off-by: Igor Ponomarev igor.ponomarev@collabora.com
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.