Update dependency python-gitlab to v3.15.0 #3
+1
−1
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.3.0->==3.15.0Release Notes
python-gitlab/python-gitlab (python-gitlab)
v3.15.0Compare Source
Chores
Update copyright year to include 2023
(
511c6e5)Update sphinx from 5.3.0 to 6.2.1
(
c44a290)ci: Use OIDC trusted publishing for pypi.org
(#2559,
7be09e5)chore(ci): use OIDC trusted publishing for pypi.org
chore(ci): explicitly install setuptools in tests
deps: Update all non-major dependencies
(
e3de6ba)deps: Update dependency commitizen to v3
(
784d59e)deps: Update dependency myst-parser to v1
(
9c39848)deps: Update dependency requests-toolbelt to v1
(
86eba06)deps: Update dependency types-setuptools to v67
(
c562424)deps: Update pre-commit hook commitizen-tools/commitizen to v3
(
1591e33)deps: Update pre-commit hook maxbrunet/pre-commit-renovate to v35
(
8202e3f)Documentation
(
e0f6f18)Features
select="package_file"in package upload(
3a49f09)Add ability to use
select="package_file"when uploading a generic package as described in:https://docs.gitlab.com/ee/user/packages/generic_packages/index.html
Closes: #2557
(
a2b8c8c)This can be used instead of 'user_ids'
See: https://docs.gitlab.com/ee/api/merge_request_approvals.html#create-project-level-rule
(
348f56e)v3.14.0Compare Source
Bug Fixes
parent_idinimport_group(
90f96ac)This will also fix other use cases where an integer is passed in to MultipartEncoder.
Added unit tests to show it works.
Closes: #2506
(#2513,
4f7c784)Co-authored-by: Nejc Habjan hab.nejc@gmail.com
cli: Display items when iterator is returned
(
33a04e7)cli: Warn user when no fields are displayed
(
8bf53c8)client: Properly parse content-type when charset is present
(
76063c3)Chores
(
fe334c9)See https://www.contributor-covenant.org/version/2/1/code_of_conduct/
(
0867564)Add a unit test for Python 3.12. This will use the latest version of Python 3.12 that is available
from https://github.com/actions/python-versions/
At this time it is 3.12.0-alpha.4 but will move forward over time until the final 3.12 release and
updates. So 3.12.0, 3.12.1, ... will be matched.
Add SECURITY.md
(
572ca3b)Remove
pre-commitas a defaulttoxenvironment(#2470,
fde2495)For users who use
toxhavingpre-commitas part of the default environment list is redundant asit will run the same tests again that are being run in other environments. For example: black,
flake8, pylint, and more.
prepare_send_data(
f2b5e4f)I found the tuple of three values confusing. So instead use a dataclass to return the three values.
It is still confusing but a little bit less so.
Also add some unit tests
.github: Actually make PR template the default
(
7a8a862)ci: Wait for all coverage reports in CI status
(
511764d)contributing: Refresh development docs
(
d387d91)deps: Update actions/stale action to v8
(
7ac4b86)deps: Update all non-major dependencies
(
8b692e8)deps: Update all non-major dependencies
(
2f06999)deps: Update all non-major dependencies
(#2493,
07d03dc)chore(deps): ungroup typing deps, group gitlab instead * chore(deps): downgrade argcomplete for
now
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nejc Habjan nejc.habjan@siemens.com
(#2479,
44786ef)Update the dependency versions: black: 23.1.0
commitizen: 2.40.0
They needed to be updated together as just updating
blackcaused a dependency conflict.Updated files by running
blackand committing the changes.(#2501,
aee73d0)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(#2502,
3d4596e)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
deps: Update dependency furo to v2023
(
7a1545d)deps: Update dependency pre-commit to v3
(#2508,
7d779c8)Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(
9c24657)Update the
requirements-*files.In order to update mypy==1.0.0 we need to also update responses==0.22.0
Fix one issue found by
mypyLeaving updates for
precommitto be done in a separate commit by someone.deps: Update pre-commit hook psf/black to v23
(
217a787)github: Add default pull request template
(
bf46c67)pre-commit: Bumping versions
(
e973729)renovate: Bring back custom requirements pattern
(
ae0b21c)renovate: Do not ignore tests dir
(
5b8744e)renovate: Swith to gitlab-ee
(
8da48ee)setup: Depend on typing-extensions for 3.7 until EOL
(
3abc557)Documentation
(
3d7ca1c)docs: fix update badge behaviour
Earlier: badge.image_link = new_link
Now: badge.image_url = new_image_url badge.link_url = new_link_url
advanced: Clarify netrc, proxy behavior with requests
(
1da7c53)advanced: Fix typo in Gitlab examples
(
1992790)objects: Fix typo in pipeline schedules
(
3057f45)Features
Add resource_weight_event for ProjectIssue
(
6e5ef55)backends: Use PEP544 protocols for structural subtyping
(#2442,
4afeaff)The purpose of this change is to track API changes described in
https://github.com/python-gitlab/python-gitlab/blob/main/docs/api-levels.rst, for example, for
package versioning and breaking change announcements in case of protocol changes.
This is MVP implementation to be used by #2435.
allow_force_pushfor protected branch(
929e07d)For the CLI: add
allow_force_pushas an optional argument for creating a protected branch.API reference: https://docs.gitlab.com/ee/api/protected_branches.html#protect-repository-branches
Closes: #2466
(#2471,
f711d9e)In order to support some new API calls we need to support the HTTP
PATCHmethod.Closes: #2469
objects: Support fetching PATs via id or
selfendpoint(
19b38bd)projects: Allow importing additional items from GitHub
(
ce84f2e)Refactoring
(
2dd177b)Testing
functional: Clarify MR fixture factory name
(
d8fd1a8)meta: Move meta suite into unit tests
(
847004b)They're always run with it anyway, so it makes no difference.
unit: Consistently use inline fixtures
(
1bc56d1)unit: Increase V4 CLI coverage
(
5748d37)unit: Remove redundant package
(
4a9e3ee)unit: Split the last remaining unittest-based classes into modules"
(
14e0f65)v3.13.0Compare Source
Bug Fixes
Change return value to "None" in case getattr returns None to prevent error
(
3f86d36)Typo fixed in docs
(
ee5f444)Use the ProjectIterationManager within the Project object
(
44f05dc)The Project object was previously using the GroupIterationManager resulting in the incorrect API
endpoint being used. Utilize the correct ProjectIterationManager instead.
Resolves #2403
api: Make description optional for releases
(
5579750)client: Regression - do not automatically get_next if page=# and
(
585e3a8)deps: Bump requests-toolbelt to fix deprecation warning
(
faf842e)Chores
iterator=Trueandpage=Xare used(#2462,
8e85791)If a caller calls a
list()method with bothiterator=True(oras_list=False) andpage=Xthenemit a
UserWarningas the options are mutually exclusive.Add docs for schedule pipelines
(
9a9a6a9)Add test, docs, and helper for 409 retries
(
3e1c625)Make backends private
(
1e629af)Remove tox
envdirvalues(
3c7c7fc)tox > 4 no longer will re-use the tox directory :( What this means is that with the previous config
if you ran: $ tox -e mypy; tox -e isort; tox -e mypy It would recreate the tox environment each
time :(
By removing the
envdirvalues it will have the tox environments in separate directories and notrecreate them.
The have an FAQ entry about this: https://tox.wiki/en/latest/upgrading.html#re-use-of-environments
Update attributes for create and update projects
(
aa44f2a)Use SPDX license expression in project metadata
(
acb3a4a)ci: Complete all unit tests even if one has failed
(#2438,
069c6c3)deps: Update actions/download-artifact action to v3
(
64ca597)deps: Update actions/stale action to v7
(
76eb024)deps: Update all non-major dependencies
(
ea7010b)deps: Update all non-major dependencies
(
122988c)deps: Update all non-major dependencies
(
49c0233)deps: Update all non-major dependencies
(
10c4f31)deps: Update all non-major dependencies
(
bbd01e8)deps: Update all non-major dependencies
(
6682808)deps: Update all non-major dependencies
(
1816107)deps: Update all non-major dependencies
(
21e767d)deps: Update dessant/lock-threads action to v4
(
337b25c)deps: Update pre-commit hook maxbrunet/pre-commit-renovate to v34.48.4
(
985b971)deps: Update pre-commit hook pycqa/flake8 to v6
(
82c61e1)tox: Ensure test envs have all dependencies
(
63cf4e4)Documentation
(
4c9a072)Features
Add keep_base_url when getting configuration from file
(
50a0301)Add resource iteration events (see https://docs.gitlab.com/ee/api/resource_iteration_events.html)
(
ef5feb4)Allow filtering pipelines by source
(
b6c0872)See: https://docs.gitlab.com/ee/api/pipelines.html#list-project-pipelines Added in GitLab 14.3
Allow passing kwargs to Gitlab class when instantiating with
from_config(#2392,
e88d34e)api: Add support for bulk imports API
(
043de2d)api: Add support for resource groups
(
5f8b8f5)api: Support listing pipelines triggered by pipeline schedules
(
865fa41)client: Automatically retry on HTTP 409 Resource lock
(
dced76a)Fixes: #2325
client: Bootstrap the http backends concept
(#2391,
91a665f)group: Add support for group restore API
(
9322db6)Refactoring
Add reason property to RequestsResponse
(#2439,
b59b7bd)Migrate MultipartEncoder to RequestsBackend
(#2421,
43b369f)Move Response object to backends
(#2420,
7d9ce0d)Move the request call to the backend
(#2413,
283e7cc)Moving RETRYABLE_TRANSIENT_ERROR_CODES to const
(
887852d)Remove unneeded requests.utils import
(#2426,
6fca651)Testing
functional: Do not require config file
(
43c2dda)unit: Expand tests for pipeline schedules
(
c7cf0d1)v3.12.0Compare Source
Bug Fixes
cancel_merge_when_pipeline_succeeds()(#2350,
bd82d74)PUTmethod when should have used aPOSTmethod. * Changed returntype to a
dictas GitLab only returns {'status': 'success'} on success. Since the functiondidn't work previously, this should not impact anyone. * Updated the test fixture
merge_requestto add ability to create a pipeline. * Added functional test for
mr.cancel_merge_when_pipeline_succeeds()Fixes: #2349
(
65abb85)Authentication issues are currently hard to debug since
--debugonly has effect aftergl.auth()has been called.
For example, a 401 error is printed without any details about the actual HTTP request being sent:
$ gitlab --debug --server-url https://gitlab.com current-user get 401: 401 Unauthorized
By moving the call to
gl.enable_debug()the usual debug logs get printed before the final errormessage.
Signed-off-by: Emanuele Aina emanuele.aina@collabora.com
(
12aea32)Example::
gitlab project update --id 616 --mr-default-target-self 1
References:
https://gitlab.com/gitlab-org/gitlab/-/blob/v13.11.0-ee/doc/user/project/merge_requests/creating_merge_requests.md#new-merge-request-from-a-fork
Chores
(
fcd72fe)Use https://github.com/PyCQA/pylint as the website for pylint.
Validate httpx package is not installed by default
(
0ecf3bb)deps: Update all non-major dependencies
(
d8a657b)deps: Update all non-major dependencies
(
b2c6d77)deps: Update pre-commit hook maxbrunet/pre-commit-renovate to v34
(
623e768)deps: Update pre-commit hook maxbrunet/pre-commit-renovate to v34.20.0
(
e6f1bd6)deps: Update pre-commit hook maxbrunet/pre-commit-renovate to v34.24.0
(
a0553c2)Documentation
(
9d2b1ad)The GitLab docs refer to it as a log file: https://docs.gitlab.com/ee/api/jobs.html#get-a-log-file
"trace" is the endpoint name but not a common term people will think of for a "log file"
Noneis returned when not found(
c3600b4)In
groups.pushrules.get(), GitLab does not returnNonewhen no rules are found. GitLab returns a404.
Update docs to not say it will return
NoneAlso update docs in
project.pushrules.get()to be consistent. Not 100% sure if it returnsNoneor returns a 404, but we don't need to document that.
Closes: #2368
(
9bd433a)Features
Add support for SAML group links
(#2367,
1020ce9)Implement secure files API
(
d0a0348)api: Add application statistics
(
6fcf3b6)api: Add support for getting a project's pull mirror details
(
060cfe1)Add the ability to get a project's pull mirror details. This was added in GitLab 15.5 and is a
PREMIUM feature.
https://docs.gitlab.com/ee/api/projects.html#get-a-projects-pull-mirror-details
api: Add support for remote project import
(#2348,
e5dc72d)api: Add support for remote project import from AWS S3
(#2357,
892281e)ci: Re-run Tests on PR Comment workflow
(
034cde3)groups: Add LDAP link manager and deprecate old API endpoints
(
3a61f60)groups: Add support for listing ldap_group_links
(#2371,
ad7c8fa)Refactoring
(
0c98b2d)Testing
test_cancel_merge_when_pipeline_succeeds(
6525c17)This is an attempt to fix the flaky test
test_cancel_merge_when_pipeline_succeeds. Were seeing a:405 Method Not Allowed error when setting the MR to merge_when_pipeline_succeeds.
Closes: #2383
v3.11.0Compare Source
Bug Fixes
(
3dde36e)Have been seeing intermittent failures in the test:
tests/functional/api/test_merge_requests.py::test_merge_request_reset_approvals
Also saw a failure in: tests/functional/cli/test_cli_v4.py::test_accept_request_merge[subprocess]
Add a call to
wait_for_sidekiq()to hopefully resolve the issues.project.approvals.set_approvals()method(
91f08f0)The
project.approvals.set_approvals()method used the/projects/:id/approversend point. Thatend point was removed from GitLab in the 13.11 release, on 2-Apr-2021 in commit
27dc2f2via merge commite482597. It was deprecated on 19-Aug-2019.See merge request: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57473
Use epic id instead of iid for epic notes
(
97cae38)cli: Handle list response for json/yaml output
(
9b88132)Handle the case with the CLI where a list response is returned from GitLab and json/yaml output is
requested.
Add a functional CLI test to validate it works.
Closes: #2287
Chores
not-callableto pylint ignore list(
f0c02a5)The
not-callableerror started showing up. Ignore this error as it is invalid. Alsomypytestsfor these issues.
Closes: #2334
Add basic type checks to functional/api tests
(
5b642a5)Add basic type checks to meta tests
(
545d6d6)Add basic typing to functional tests
(
ee143c9)Add basic typing to smoke tests
(
64e8c31)Add basic typing to test root
(
0b2f6bc)Add responses to pre-commit deps
(
4b8ddc7)Fix flaky test
(
fdd4114)Narrow type hints for license API
(
50731c1)Renovate and precommit cleanup
(
153d373)Revert compose upgrade
(
dd04e8e)This reverts commit
f825d70.wait_for_sidekiqusage(
196538b)Simplify usage of
wait_for_sidekiqby putting the assert if it timed out inside the functionrather than after calling it.
Topic functional tests
(
d542eba)Update the issue templates
(
c15bd33)bug/issue template into the .github/ISSUE_TEMPLATE/ directory
Use kwargs for http_request docs
(
124abab)deps: Group non-major upgrades to reduce noise
(
37d14bd)deps: Pin and clean up test dependencies
(
60b9197)deps: Pin dependencies
(
953f38d)deps: Pin GitHub Actions
(
8dbaa5c)deps: Update all non-major dependencies
(
dde3642)deps: Update all non-major dependencies
(
2966234)deps: Update black to v22.10.0
(
531ee05)deps: Update dependency commitizen to v2.35.0
(
4ce9559)deps: Update dependency mypy to v0.981
(
da48849)deps: Update dependency pylint to v2.15.3
(
6627a60)deps: Update dependency types-requests to v2.28.11.2
(
d47c0f0)deps: Update pre-commit hook maxbrunet/pre-commit-renovate to v33
(
932bbde)deps: Update typing dependencies
(
81285fa)Documentation
enable_debug()method(
b4e9ab7)Add some minimal documentation about the
enable_debug()method.advanced: Add hint on type narrowing
(
a404152)api: Describe the list() and all() runners' functions
(
b6cc3f2)api: Describe use of lower-level methods
(
b7a6874)api: Update
merge_requests.rst:mr_idtomr_iid(
b32234d)Typo: Author probably meant
mr_iid(i.e. project-specific MR ID)and not
mr_id(i.e. server-wide MR ID)Closes: #2295
Signed-off-by: Stavros Ntentos 133706+stdedos@users.noreply.github.com
commits: Fix commit create example for binary content
(
bcc1eb4)readme: Add a basic feature list
(
b4d53f1)Features
api: Add support for topics merge API
(
9a6d197)build: Officially support Python 3.11
(
74f66c7)Refactoring
Migrate legacy EE tests to pytest
(
88c2505)Pre-commit trigger from tox
(
6e59c12)Pytest-docker fixtures
(
3e4781a)deps: Drop compose v1 dependency in favor of v2
(
f825d70)Testing
Enable skipping tests per GitLab plan
(
01d5f68)Fix
test_project_push_rulestest(
8779cf6)Make the
test_project_push_rulestest work.(
51964b3)On Debian systems false is located at /bin/false (coreutils package). This fixes unit test failure
on Debian system:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/false'
/usr/lib/python3.10/subprocess.py:1845: FileNotFoundError
v3.10.0Compare Source
Bug Fixes
cli: Add missing attribute for MR changes
(
20c46a0)cli: Add missing attributes for creating MRs
(
1714d0a)Chores
(
b87a2bc)settings.delayed_group_deletion=Falseas that is the recommended method to turn off thedelayed group deletion now. * Change test to look for
defaultaspagesis not mentioned in thedocs[1]
[1] https://docs.gitlab.com/ee/api/sidekiq_metrics.html#get-the-current-queue-metrics
deps: Update black to v22.8.0
(
86b0e40)deps: Update dependency commitizen to v2.32.2
(
31aea28)deps: Update dependency commitizen to v2.32.5
(
e180f14)deps: Update dependency pytest to v7.1.3
(
ec7f26c)deps: Update dependency types-requests to v2.28.10
(
5dde7d4)deps: Update pre-commit hook commitizen-tools/commitizen to v2.32.2
(
31ba64f)Features
(
88693ff)Added the newly added reset_approvals merge request api.
Signed-off-by: Lucas Zampieri lzampier@redhat.com
(
9c9eeb9)Add support for the deployment approval endpoint[1]
[1] https://docs.gitlab.com/ee/api/deployments.html#approve-or-reject-a-blocked-deployment Closes:
#2253
v3.9.0Compare Source
Chores
(
98f1956)Make it so can run just the test_gitlab.py functional test.
For example: $ tox -e api_func_v4 -- -k test_gitlab.py
(
bd4dfb4)The GitHub CI is showing a ResourceWarning, causing our test to fail.
Update test to only look for our UserWarning which should not appear.
What was seen when debugging the GitHub CI: {message: ResourceWarning( "unclosed <socket.socket
fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('127.0.0.1',
50862), raddr=('127.0.0.1', 8080)>" ), category: 'ResourceWarning', filename:
'/home/runner/work/python-gitlab/python-gitlab/.tox/api_func_v4/lib/python3.10/site-packages/urllib3/poolmanager.py',
lineno: 271, line: None }
ci: Make pytest annotations work
(
f67514e)deps: Update dependency commitizen to v2.31.0
(
4ff0894)deps: Update dependency commitizen to v2.32.1
(
9787c5c)deps: Update dependency types-requests to v2.28.8
(
8e5b86f)deps: Update dependency types-requests to v2.28.9
(
be932f6)deps: Update dependency types-setuptools to v64
(
4c97f26)deps: Update pre-commit hook commitizen-tools/commitizen to v2.31.0
(
71d37d9)deps: Update pre-commit hook commitizen-tools/commitizen to v2.32.1
(
cdd6efe)deps: Update pre-commit hook pycqa/flake8 to v5
(
835d884)Features
(
dd4fbd5)v3.8.1Compare Source
Bug Fixes
(
a07547c)This is mostly relevant for people mocking the API in tests.
Chores
Add license badge to readme
(
9aecc9e)Consolidate license and authors
(
366665e)Remove broad Exception catching from
config.py(
0abc90b)Change "except Exception:" catching to more granular exceptions.
A step in enabling the "broad-except" check in pylint.
deps: Update dependency commitizen to v2.29.5
(
181390a)deps: Update dependency flake8 to v5.0.4
(
50a4fec)deps: Update dependency sphinx to v5
(
3f3396e)v3.8.0Compare Source
Bug Fixes
Optionally keep user-provided base URL for pagination
(#2149,
e2ea8b8)client: Ensure encoded query params are never duplicated
(
1398426)Chores
_repr_attrfor Project to bepath_with_namespace(
7cccefe)Previously
_repr_attrwaspathbut that only gives the basename of the path. Sohttps://gitlab.com/gitlab-org/gitlab would only show "gitlab". Using
path_with_namespaceit willnow show "gitlab-org/gitlab"
Enable mypy check
disallow_any_generics(
24d17b4)Enable mypy check
no_implicit_optional(
64b208e)Enable mypy check
warn_return_any(
76ec4b4)Update code so that the
warn_return_anycheck passes.(
433dba0)Use
encoding="utf-8"inopen()and open-like functions.https://peps.python.org/pep-0597/
urlunparseinstead of string replace(
6d1b62d)Use the
urlunparse()function to reconstruct the URL without the query parameters.ci: Bump semantic-release for fixed commit parser
(
1e063ae)clusters: Deprecate clusters support
(
b46b379)Cluster support was deprecated in GitLab 14.5 [1]. And disabled by default in GitLab 15.0 [2]
[1] https://docs.gitlab.com/ee/api/project_clusters.html [2]
https://gitlab.com/groups/gitlab-org/configure/-/epics/8
deps: Update dependency commitizen to v2.29.2
(
30274ea)deps: Update dependency flake8 to v5
(
cdc384b)deps: Update dependency types-requests to v2.28.6
(
54dd4c3)deps: Update pre-commit hook commitizen-tools/commitizen to v2.29.2
(
4988c02)topics: 'title' is required when creating a topic
(
271f688)In GitLab >= 15.0
titleis required when creating a topic.Documentation
(
5ea48fc)Features
Support downloading archive subpaths
(
cadb0e5)client: Warn user on misconfigured URL in
auth()(
0040b43)Refactoring
client: Factor out URL check into a helper
(
af21a18)client: Remove handling for incorrect link header
(
77c04b1)This was a quirk only present in GitLab 13.0 and fixed with 13.1. See
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33714 and
https://gitlab.com/gitlab-org/gitlab/-/issues/218504 for more context.
Testing
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.
This PR was generated by Mend Renovate. View the repository job log.