commit 0a64bacc402b1deb2b78f22297953b65e0f2eaedd583df1e9bcfc803edfe08ff Author: Matej Cepl Date: Mon Jul 8 18:12:18 2024 +0000 Accepting request 1186023 from home:srinidhi:branches:devel:languages:python - Upgrade to 4.7.0: * chore(deps): update all non-major dependencies (88de2f0) * chore(deps): update all non-major dependencies (a510f43) * chore(deps): update gitlab/gitlab-ee docker tag to v17.0.2-ee.0 (51779c6) * chore(deps): update python-semantic-release/upload-to-gh-release digest to 6b7558f (fd0f0b0) * chore(deps): update all non-major dependencies (d4fdf90) * chore(deps): update dependency types-setuptools to v70 (7767514) * chore(deps): update gitlab/gitlab-ee docker tag to v17.0.1-ee.0 (df0ff4c) * chore(deps): update python-semantic-release/upload-to-gh-release digest to 477a404 (02a551d) * chore(deps): update all non-major dependencies (d5de288) * chore: add a help message for gitlab project-key enable * chore: sort CLI behavior-related args to remove * feat(api): add support for latest pipeline (635f5a7) * feat: add --no-mask-credentials CLI argument * fix: add ability to add help to custom_actions - Update to 4.6.0: * chore(deps): update python-semantic-release/upload-to-gh-release digest to 673709c (1b550ac) * chore(deps): update all non-major dependencies (4c7014c) * chore: update commit reference in git-blame-ignore-revs (d0fd5ad) * chore(cli): add ability to not add _id_attr as an argument * chore: create a CustomAction dataclass (61d8679) * chore: add an initial .git-blame-ignore-revs * chore: require keyword arguments for register_custom_action * chore: remove typing-extensions from requirements.txt * chore(deps): update dependency requests to v2.32.0 [security] (1bc788c) * chore(deps): update all non-major dependencies (ba1eec4) * chore(deps): update gitlab/gitlab-ee docker tag to v17 (5070d07) * chore(cli): on the CLI help show the API endpoint of resources * chore(cli): add some simple help for the standard operations * chore: correct type-hint for job.trace() * chore: add type info for ProjectFile.content * feat(api): add additional parameter to project/group iteration search (#2796) * feat(api): add support for gitlab service account (#2851) * feat: more usernames support for MR approvals * fix(deps): update minimum dependency versions in pyproject.toml * fix(cli): don't require --id when enabling a deploy key * fix: don't raise RedirectError for redirected HEAD requests (8fc13b9) * fix: handle large number of approval rules * fix(projects): fix 'import_project' file argument type for typings - Update to 4.5.0: * build: Add "--no-cache-dir" to pip commands in Dockerfile * chore(deps): update all non-major dependencies (4f338ae) * chore(deps): update gitlab/gitlab-ee docker tag to v16.11.2-ee.0 (9be48f0) * chore(deps): update dependency myst-parser to v3 (9289189) * chore(deps): update all non-major dependencies (65d0e65) * chore(deps): update dependency jinja2 to v3.1.4 [security] (8ea10c3) * chore(deps): update all non-major dependencies (1f0343c) * chore(deps): update gitlab/gitlab-ee docker tag to v16.11.1-ee.0 (1ed8d6c) * chore(deps): update all non-major dependencies (0e9f4da) * chore(deps): update gitlab/gitlab-ee docker tag to v16 (ea8c4c2) * chore(deps): update all non-major dependencies (d5b5fb0) * chore(deps): update dependency pytest-cov to v5 (db32000) * chore: update mypy to 1.9.0 and resolve one issue * chore(deps): update dependency black to v24.3.0 [security] (f6e8692) * chore(deps): update all non-major dependencies (14a3ffe) * chore(deps): update all non-major dependencies (3c4dcca) * chore(deps): update all non-major dependencies (04c569a) * chore: add tox labels to enable running groups of environments * chore: add py312 & py313 to tox environment list * chore(deps): update python-semantic-release/python-semantic-release action to v9 (e11d889) * chore(deps): update all non-major dependencies (3c4b27e) * chore(deps): update dependency furo to v2024 (f6fd02d) * chore(deps): update dependency pytest to v8 (253babb) * chore(deps): update dependency pytest-docker to v3 (35d2aec) * chore: update version of black for pre-commit * chore(deps): update all non-major dependencies (7dc2fa6) * chore(deps): update codecov/codecov-action action to v4 (d2be1f7) * chore: adapt style for black v24 (4e68d32) * chore(deps): update dependency black to v24 (f59aee3) * chore(deps): update all non-major dependencies (48726fd) * docs: add FAQ about conflicting parameters * docs(README): tweak GitLab CI usage docs (d9aaa99) * docs: how to run smoke tests * docs(objects): minor rst formatting typo * docs: correct rotate token example * docs: Note how to use the Docker image from within GitLab CI * docs(artifacts): Fix argument indentation (c631eeb) * feat(job_token_scope): support Groups in job token allowlist API (#2816) * feat(job_token_scope): support job token access allowlist API * feat(cli): allow skipping initial auth calls (001e596) * feat(api): allow updating protected branches (#2771) * feat(api): allow updating protected branches * fix: Consider scope an ArrayAttribute in PipelineJobManager * fix(test): use different ids for merge request, approval rule, project * fix(api): fix saving merge request approval rules * fix: user.warn() to show correct filename of issue * fix(api): update manual job status when playing it (9440a32) * fix(cli): allow exclusive arguments as optional (#2770) * fix(cli): allow exclusive arguments as optional * fix(cli): inform argument parser that options are mutually exclusive * fix(cli): use correct exclusive options, add unit test * test: remove approve step * test: tidy up functional tests * test: update api tests for GL 16.10 * test(functional): enable bulk import feature flag before test (b81da2e) * test: don't use weak passwords * test: update tests for gitlab 16.8 functionality * test(smoke): normalize all dist titles for smoke tests (ee013fe) OBS-URL: https://build.opensuse.org/request/show/1186023 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gitlab?expand=0&rev=39 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-gitlab-4.6.0.tar.gz b/python-gitlab-4.6.0.tar.gz new file mode 100644 index 0000000..a551016 --- /dev/null +++ b/python-gitlab-4.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2298d3467505df20b2ae2d2b51df7eb65dc00a5ac6391e1ab8d2cd6887a8b434 +size 470525 diff --git a/python-python-gitlab.changes b/python-python-gitlab.changes new file mode 100644 index 0000000..c6de088 --- /dev/null +++ b/python-python-gitlab.changes @@ -0,0 +1,479 @@ +------------------------------------------------------------------- +Mon Jun 3 14:25:21 UTC 2024 - Srinidhi B S + +- Update to 4.6.0: + * chore(deps): update python-semantic-release/upload-to-gh-release digest to 673709c (1b550ac) + * chore(deps): update all non-major dependencies (4c7014c) + * chore: update commit reference in git-blame-ignore-revs (d0fd5ad) + * chore(cli): add ability to not add _id_attr as an argument + * chore: create a CustomAction dataclass (61d8679) + * chore: add an initial .git-blame-ignore-revs + * chore: require keyword arguments for register_custom_action + * chore: remove typing-extensions from requirements.txt + * chore(deps): update dependency requests to v2.32.0 [security] (1bc788c) + * chore(deps): update all non-major dependencies (ba1eec4) + * chore(deps): update gitlab/gitlab-ee docker tag to v17 (5070d07) + * chore(cli): on the CLI help show the API endpoint of resources + * chore(cli): add some simple help for the standard operations + * chore: correct type-hint for job.trace() + * chore: add type info for ProjectFile.content + * feat(api): add additional parameter to project/group iteration search (#2796) + * feat(api): add support for gitlab service account (#2851) + * feat: more usernames support for MR approvals + * fix(deps): update minimum dependency versions in pyproject.toml + * fix(cli): don't require --id when enabling a deploy key + * fix: don't raise RedirectError for redirected HEAD requests (8fc13b9) + * fix: handle large number of approval rules + * fix(projects): fix 'import_project' file argument type for typings +- Update to 4.5.0: + * build: Add "--no-cache-dir" to pip commands in Dockerfile + * chore(deps): update all non-major dependencies (4f338ae) + * chore(deps): update gitlab/gitlab-ee docker tag to v16.11.2-ee.0 (9be48f0) + * chore(deps): update dependency myst-parser to v3 (9289189) + * chore(deps): update all non-major dependencies (65d0e65) + * chore(deps): update dependency jinja2 to v3.1.4 [security] (8ea10c3) + * chore(deps): update all non-major dependencies (1f0343c) + * chore(deps): update gitlab/gitlab-ee docker tag to v16.11.1-ee.0 (1ed8d6c) + * chore(deps): update all non-major dependencies (0e9f4da) + * chore(deps): update gitlab/gitlab-ee docker tag to v16 (ea8c4c2) + * chore(deps): update all non-major dependencies (d5b5fb0) + * chore(deps): update dependency pytest-cov to v5 (db32000) + * chore: update mypy to 1.9.0 and resolve one issue + * chore(deps): update dependency black to v24.3.0 [security] (f6e8692) + * chore(deps): update all non-major dependencies (14a3ffe) + * chore(deps): update all non-major dependencies (3c4dcca) + * chore(deps): update all non-major dependencies (04c569a) + * chore: add tox labels to enable running groups of environments + * chore: add py312 & py313 to tox environment list + * chore(deps): update python-semantic-release/python-semantic-release action to v9 (e11d889) + * chore(deps): update all non-major dependencies (3c4b27e) + * chore(deps): update dependency furo to v2024 (f6fd02d) + * chore(deps): update dependency pytest to v8 (253babb) + * chore(deps): update dependency pytest-docker to v3 (35d2aec) + * chore: update version of black for pre-commit + * chore(deps): update all non-major dependencies (7dc2fa6) + * chore(deps): update codecov/codecov-action action to v4 (d2be1f7) + * chore: adapt style for black v24 (4e68d32) + * chore(deps): update dependency black to v24 (f59aee3) + * chore(deps): update all non-major dependencies (48726fd) + * docs: add FAQ about conflicting parameters + * docs(README): tweak GitLab CI usage docs (d9aaa99) + * docs: how to run smoke tests + * docs(objects): minor rst formatting typo + * docs: correct rotate token example + * docs: Note how to use the Docker image from within GitLab CI + * docs(artifacts): Fix argument indentation (c631eeb) + * feat(job_token_scope): support Groups in job token allowlist API (#2816) + * feat(job_token_scope): support job token access allowlist API + * feat(cli): allow skipping initial auth calls (001e596) + * feat(api): allow updating protected branches (#2771) + * feat(api): allow updating protected branches + * fix: Consider scope an ArrayAttribute in PipelineJobManager + * fix(test): use different ids for merge request, approval rule, project + * fix(api): fix saving merge request approval rules + * fix: user.warn() to show correct filename of issue + * fix(api): update manual job status when playing it (9440a32) + * fix(cli): allow exclusive arguments as optional (#2770) + * fix(cli): allow exclusive arguments as optional + * fix(cli): inform argument parser that options are mutually exclusive + * fix(cli): use correct exclusive options, add unit test + * test: remove approve step + * test: tidy up functional tests + * test: update api tests for GL 16.10 + * test(functional): enable bulk import feature flag before test (b81da2e) + * test: don't use weak passwords + * test: update tests for gitlab 16.8 functionality + * test(smoke): normalize all dist titles for smoke tests (ee013fe) + +------------------------------------------------------------------- +Thu Mar 14 04:30:21 UTC 2024 - Steve Kowalik + +- Update to 4.4.0: + * feat(api): add support for the Draft notes API + * fix(client): handle empty 204 reponses in PUT requests + * fix(cli): add ability to disable SSL verification + * feat: add pipeline status as Enum + * feat(api): add support for wiki attachments + * feat: add Merge Request merge_status and detailed_merge_status values as + constants + * fix: remove deprecated MergeStatus + * BREAKING CHANGE: python-gitlab now stores metadata in pyproject.toml + * refactor(artifacts): remove deprecated `artifact()`in favor of + `artifacts.raw()` + * refactor(artifacts): remove deprecated `artifacts()`in favor of + `artifacts.download()` + * refactor(groups): remove deprecated LDAP group link add/delete methods + * refactor(projects): remove deprecated `project.transfer_project()` in + favor of `project.transfer()` + * fix(cli): remove deprecated `--all` option in favor of `--get-all` + * feat: remove support for Python 3.7, require 3.8 or higher + * chore: update PyYAML to 6.0.1 + * feat(client): mask tokens by default when logging + * feat(api): add ProjectPackagePipeline + * feat: officially support Python 3.12 + * feat(packages): Allow uploading bytes and files + * feat: Use requests AuthBase classes + * feat(api): add support for job token scope settings + * feat(api): support project remote mirror deletion + * feat(api): add optional GET attrs for /projects/:id/ci/lint + * feat(api): add support for new runner creation API + * feat(releases): Add support for direct_asset_path + * feat: Added iteration to issue and group filters + * test: fix failing tests that use 204 (No Content) plus content + * update dependency `responses==0.23.3` as it provides support for + `urllib3>=2` +- Switch to pyproject macros. + +------------------------------------------------------------------- +Thu Oct 12 19:28:30 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + +------------------------------------------------------------------- +Thu Oct 12 18:22:00 UTC 2023 - Ondřej Súkup + +- Update to 3.15.0 +- force urllib3 < 2 for testsuite + * Add support for select="package_file" in package upload (3a49f09) + * api: Add support for events scope parameter (348f56e + * Usernames support for MR approvals ()a2b8c8c) + * Remove exclusive EE about issue links (e0f6f18) + * projects: Allow importing additional items from GitHub (ce84f2e) + * objects: Support fetching PATs via id or self endpoint (19b38bd) + * Add resource_weight_event for ProjectIssue (6e5ef55) + * backends: Use PEP544 protocols for structural subtyping (#2442) (4afeaff) + * client: Add http_patch method (#2471) (f711d9e) + * cli: Add setting of allow_force_push for protected branch (929e07d) + * cli: Warn user when no fields are displayed (8bf53c8) + * client: Properly parse content-type when charset is present (76063c3) + * Support int for parent_id in import_group (90f96ac) + * cli: Add ability to escape at-prefixed parameter (#2513) (4f7c784) + * cli: Display items when iterator is returned (33a04e7) + * objects: Fix typo in pipeline schedules (3057f45) + * advanced: Clarify netrc, proxy behavior with requests (1da7c53) + * Fix update badge behaviour (3d7ca1c) + * advanced: Fix typo in Gitlab examples (1992790) + * group: Add support for group restore API (9322db6) + * client: Automatically retry on HTTP 409 Resource lock (dced76a) + * api: Add support for bulk imports API (043de2d) + * api: Add support for resource groups (5f8b8f5) + * api: Support listing pipelines triggered by pipeline schedules (865fa41) + * Allow filtering pipelines by source (b6c0872) + * client: Bootstrap the http backends concept (#2391) (91a665f) + * Add resource iteration events (see https://docs.gitlab.com/ee/api/resource_iteration_events.html) + * Allow passing kwargs to Gitlab class when instantiating with from_config (#2392) (e88d34e) + * Add keep_base_url when getting configuration from file (50a0301) + * client: Regression - do not automatically get_next if page=# and (585e3a8) + * Change return value to "None" in case getattr returns None to prevent error (3f86d36) + * deps: Bump requests-toolbelt to fix deprecation warning (faf842e) + * Use the ProjectIterationManager within the Project object (44f05dc) + * api: Make description optional for releases (5579750) + * faq: Describe and group common errors (4c9a072) + +------------------------------------------------------------------- +Mon Dec 12 17:06:05 UTC 2022 - pgajdos@suse.com + +- six is not required + +------------------------------------------------------------------- +Wed Dec 7 22:07:34 UTC 2022 - Yogalakshmi Arunachalam + +- Update to v3.12.0 + * Feature + Add support for SAML group links (#2367) (1020ce9) + groups: Add LDAP link manager and deprecate old API endpoints (3a61f60) + groups: Add support for listing ldap_group_links (#2371) (ad7c8fa) + Implement secure files API (d0a0348) + ci: Re-Run Tests on PR Comment workflow (034cde3) + api: Add support for getting a project's pull mirror details (060cfe1) + api: Add support for remote project import from AWS S3 (#2357) (892281e) + api: Add support for remote project import (#2348) (e5dc72d) + api: Add application statistics (6fcf3b6) + * Fix + cli: Enable debug before doing auth (65abb85) + cli: Expose missing mr_default_target_self project attribute (12aea32) + Use POST method and return dict in cancel_merge_when_pipeline_succeeds() (#2350) (bd82d74) + * Documentation + Use the term "log file" for getting a job log file (9d2b1ad) + groups: Describe GitLab.com group creation limitation (9bd433a) + api: Pushrules remove saying None is returned when not found (c3600b4) + +------------------------------------------------------------------- +Wed Nov 9 18:41:29 UTC 2022 - Yogalakshmi Arunachalam + +- Update to v3.11.0 + Feature + * build: Officially support Python 3.11 (74f66c7) + * api: Add support for topics merge API (9a6d197) + Fix + * Remove project.approvals.set_approvals() method (91f08f0) + * Use epic id instead of iid for epic notes (97cae38) + * cli: Handle list response for json/yaml output (9b88132) + * Intermittent failure in test_merge_request_reset_approvals (3dde36e) + Documentation + * advanced: Add hint on type narrowing (a404152) + * Add minimal docs about the enable_debug() method (b4e9ab7) + commits: Fix commit create example for binary content (bcc1eb4) + * readme: Add a basic feature list (b4d53f1) + * api: Describe use of lower-level methods (b7a6874) + * api: Describe the list() and all() runners' functions (b6cc3f2) + * api: Update merge_requests.rst: mr_id to mr_iid (b32234d) + +------------------------------------------------------------------- +Fri Oct 28 20:36:42 UTC 2022 - Yogalakshmi Arunachalam + +- Update to v3.10.0 (2022-09-28) + Feature + Add reset_approvals api (88693ff) + Add support for deployment approval endpoint (9c9eeb9) + Fix + cli: Add missing attributes for creating MRs (1714d0a) + cli: Add missing attribute for MR changes (20c46a0) + +------------------------------------------------------------------- +Thu Oct 6 22:29:41 UTC 2022 - Yogalakshmi Arunachalam + +- Update to v3.9.0 (2022-08-28) + Feature + Add support for merge_base API (dd4fbd5) + +- Update to v3.8.1 (2022-08-10) + Fix + client: Do not assume user attrs returned for auth() (a07547c) + +- Update to v3.8.0 (2022-08-04) + Feature + client: Warn user on misconfigured URL in auth() (0040b43) + Support downloading archive subpaths (cadb0e5) + Fix + client: Ensure encoded query params are never duplicated (1398426) + Optionally keep user-provided base URL for pagination (#2149) (e2ea8b8) + Documentation + Describe self-revoking personal access tokens (5ea48fc) + +- v3.7.0 (2022-07-28) + Feature + Allow sort/ordering for project releases (b1dd284) + cli: Add a custom help formatter (005ba93) + Add support for iterations API (194ee01) + groups: Add support for shared projects API (66461ba) + issues: Add support for issue reorder API (8703324) + namespaces: Add support for namespace existence API (4882cb2) + Add support for group and project invitations API (7afd340) + projects: Add support for project restore API (4794ecc) + Add support for filtering jobs by scope (0e1c0dd) + Add asdict() and to_json() methods to Gitlab Objects (08ac071) + api: Add support for instance-level registry repositories (284d739) + groups: Add support for group-level registry repositories (70148c6) + Add 'merge_pipelines_enabled' project attribute (fc33c93) + Support validating CI lint results (3b1ede4) + cli: Add support for global CI lint (3f67c4b) + objects: Add Project CI Lint support (b213dd3) + Add support for group push rules (b5cdc09) + api: Add support for get for a MR approval rule (89c18c6) + Fix + Support array types for most resources (d9126cd) + Use the [] after key names for array variables in params (1af44ce) + runners: Fix listing for /runners/all (c6dd57c) + config: Raise error when gitlab id provided but no config section found (1ef7018) + config: Raise error when gitlab id provided but no config file found (ac46c1c) + Add get_all param (and --get-all) to allow passing all to API (7c71d5d) + Results returned by attributes property to show updates (e5affc8) + Enable epic notes (5fc3216) + cli: Remove irrelevant MR approval rule list filters (0daec5f) + Ensure path elements are escaped (5d9c198) + Documentation + cli: Showcase use of token scopes (4a6f8d6) + projects: Document export with upload to URL (03f5484) + Describe fetching existing export status (9c5b8d5) + authors: Add John (e2afb84) + Document CI Lint usage (d5de4b1) + users: Add docs about listing a user's projects (065a1a5) + Update return type of pushrules (53cbecc) + Describe ROPC flow in place of password authentication (91c17b7) + readme: Remove redundant -v that breaks the command (c523e18) +- v3.6.0 (2022-06-28) + Feature + downloads: Allow streaming downloads access to response iterator (#1956) (b644721) + api: Support head() method for get and list endpoints (ce9216c) + api: Implement HEAD method (90635a7) + users: Add approve and reject methods to User (f57139d) + api: Convert gitlab.const to Enums (c3c6086) + Add support for Protected Environments (1dc9d0f) + users: Add ban and unban methods (0d44b11) + docker: Provide a Debian-based slim image (384031c) + Support mutually exclusive attributes and consolidate validation to fix board lists (#2037) (3fa330c) + client: Introduce iterator=True and deprecate as_list=False in list() (cdc6605) + Fix + base: Do not fail repr() on lazy objects (1efb123) + cli: Project-merge-request-approval-rule (15a242c) + cli: Fix project export download for CLI (5d14867) + Documentation + api: Add separate section for advanced usage (22ae101) + api: Document usage of head() methods (f555bfb) + projects: Provide more detailed import examples (8f8611a) + projects: Document 404 gotcha with unactivated integrations (522ecff) + variables: Instruct users to follow GitLab rules for values (194b6be) + api: Stop linking to python-requests.org (49c7e83) + api: Fix incorrect docs for merge_request_approvals (#2094) (5583eaa) + api-usage: Add import os in example (2194a44) + Drop deprecated setuptools build_sphinx (048d66a) + usage: Refer to upsteam docs instead of custom attributes (ae7d3b0) + ext: Fix rendering for RequiredOptional dataclass (4d431e5) + Documentation updates to reflect addition of mutually exclusive attributes (24b720e) + Use as_list=False or all=True in Getting started (de8c6e8) + +------------------------------------------------------------------- +Wed May 4 06:24:11 UTC 2022 - pgajdos@suse.com + +- version update to 3.4.0 + too many changes, see CHANGELOG.md in documantation or at + https://github.com/python-gitlab/python-gitlab/blob/main/CHANGELOG.md +- python-mock is not required for build + +------------------------------------------------------------------- +Thu Jan 14 13:16:51 UTC 2021 - John Vandenberg + +- Update to v2.5.0 + * add support to resource milestone events + * add share/unshare group with group + * add support for instance variables + * add support for Packages API + * add endpoint for latest ref artifacts + * wrong reconfirmation parameter when updating user's email + * tests fail when using REUSE_CONTAINER option + * implement Gitlab's behavior change for owned=True +- from v2.4.0 + * do not check if kwargs is none + * make query kwargs consistent between call in init and next + * pass kwargs to subsequent queries in gitlab list + * merge: parse arguments as query_data + * add NO_ACCESS const + * add masked parameter for variables command +- from v2.3.1 + * revert keyset pagination by default +- from v2.3.0 + * add group runners api + * add play command to project pipeline schedules + * allow an environment variable to specify config location + * api: added support in the GroupManager to upload Group avatars + * services: add project service list API + * types: add dir to RESTObject to expose attributes + * use keyset pagination by default for /projects > 50000 + * config: fix duplicate code + * project: add missing project parameters + +------------------------------------------------------------------- +Mon May 4 18:51:52 UTC 2020 - Matej Cepl + +- Don't use %python3_only command, but properly use alternatives. +- Update to 2.2.0: + - add missing import_project param + - types: do not split single value string in ListAttribute + - add commit GPG signature API + - add create from template args to ProjectManager + - add remote mirrors API (#1056) + - add Gitlab Deploy Token API + - add Group Import/Export API (#1037) + +------------------------------------------------------------------- +Mon Apr 20 10:05:29 UTC 2020 - Tomáš Chvátal + +- Fix dependencies for testing + +------------------------------------------------------------------- +Fri Mar 20 12:20:39 UTC 2020 - pgajdos@suse.com + +- version update to 2.1.2 + * This releases drops support for python < 3.6 + * lot of other changes, see + https://github.com/python-gitlab/python-gitlab/releases + +------------------------------------------------------------------- +Tue Sep 10 11:26:49 UTC 2019 - Tomáš Chvátal + +- Update to 1.11.0: + * add methods to retrieve an individual project environment + * group labels with subscriptable mixin + * add mr rebase method bc4280c + * get artifact by ref and job cda1174 + * add support for board update 908d79f, closes #801 + * add support for issue.related_merge_requests 90a3631, closes #794 + +------------------------------------------------------------------- +Mon Jul 22 13:15:50 UTC 2019 - Tomáš Chvátal + +- Update to 1.9.0: + * implement artifacts deletion + * add endpoint to get the variables of a pipeline + * delete ProjectPipeline + * implement __eq__ and __hash__ methods + * Allow runpy invocation of CLI tool (python -m gitlab) + * add project releases api + * merged new release & registry apis + +------------------------------------------------------------------- +Thu May 9 06:22:28 UTC 2019 - pgajdos@suse.com + +- version update to 1.8.0 + * fix(api): make reset_time_estimate() work again + * fix: handle empty 'Retry-After' header from GitLab + * fix: remove decode() on error_message string + * fix(api): avoid parameter conflicts with python and gitlab + * fix(api): Don't try to parse raw downloads + * feat: Added approve & unapprove method for Mergerequests + * fix all kwarg behaviour + +------------------------------------------------------------------- +Mon Dec 31 10:36:44 UTC 2018 - Thomas Bechtold + +- update to 1.7.0: + * [docs] Fix the owned/starred usage documentation + * [docs] Add a warning about http to https redirects + * Fix the https redirection test + * [docs] Add a note about GroupProject limited API + * Add missing comma in ProjectIssueManager _create_attrs + * More flexible docker image + * Add project protected tags management + * [cli] Print help and usage without config file + * Rename MASTER_ACCESS to MAINTAINER_ACCESS + * [docs] Add docs build information + * Use docker image with current sources + * [docs] Add PyYAML requirement notice + * Add Gitter badge to README + * [docs] Add an example of pipeline schedule vars listing + * [cli] Exit on config parse error, instead of crashing + * Add support for resource label events + * [docs] Fix the milestone filetring doc (iid -> iids) + * [docs] Fix typo in custom attributes example + * Improve error message handling in exceptions + * Add support for members all() method + * Add access control options to protected branch creation + * [docs] Don't use hardcoded values for ids + * [docs] Improve the snippets examples + * [cli] Output: handle bytes in API responses + * [cli] Fix the case where we have nothing to print + * Project import: fix the override_params parameter + * Support group and global MR listing + * Implement MR.pipelines() + * MR: add the squash attribute for create/update + * Added support for listing forks of a project + * [docs] Add/update notes about read-only objects + * Raise an exception on https redirects for PUT/POST + * [docs] Add a FAQ + * [cli] Fix the project-export download + +------------------------------------------------------------------- +Tue Dec 4 12:53:03 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Wed Aug 8 14:53:53 UTC 2018 - jengelh@inai.de + +- Use noun phrase in summary. + +------------------------------------------------------------------- +Fri Aug 3 03:37:05 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-python-gitlab.spec b/python-python-gitlab.spec new file mode 100644 index 0000000..a7a3d5a --- /dev/null +++ b/python-python-gitlab.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-python-gitlab +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-python-gitlab +Version: 4.6.0 +Release: 0 +Summary: Python module for interacting with the GitLab API +License: LGPL-3.0-only +URL: https://github.com/python-gitlab/python-gitlab +Source: https://files.pythonhosted.org/packages/source/p/python-gitlab/python-gitlab-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-PyYAML >= 6.0.1 +Requires: python-argcomplete >= 1.10.0 +Requires: python-requests >= 2.22.0 +Requires: python-requests-toolbelt >= 0.9.1 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module httmock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.22.0} +BuildRequires: %{python_module requests-toolbelt >= 0.9.1} +BuildRequires: %{python_module responses} +# /SECTION +%python_subpackages + +%description +The python-gitlab package provides access to the GitLab server API. + +It supports the v4 API of GitLab, and provides a CLI tool (gitlab). + +%prep +%autosetup -p1 -n python-gitlab-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/gitlab +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +touch $HOME/.python-gitlab.cfg +%pytest tests/unit + +%post +%python_install_alternative gitlab + +%postun +%python_uninstall_alternative gitlab + +%files %{python_files} +%doc AUTHORS CHANGELOG.md README.rst +%license COPYING +%python_alternative %{_bindir}/gitlab +%{python_sitelib}/gitlab +%{python_sitelib}/python_gitlab-%{version}.dist-info + +%changelog