forked from Lainports/freebsd-ports
devel/py-python-gitlab: Update to 5.1.0
Add GRAPHQL to default option and remove GRAPHQL_BROKEN. Use DISTNAME= instead of ?=. Patch CHANGELOG.md to better format. Changelog: https://github.com/python-gitlab/python-gitlab/releases/tag/v5.1.0 PR: 283033 Approved by: submitter is maintainer
This commit is contained in:
parent
14c8e1f68e
commit
6c66c743c0
4 changed files with 40 additions and 18 deletions
|
|
@ -1,9 +1,9 @@
|
|||
PORTNAME= python-gitlab
|
||||
DISTVERSION= 5.0.0
|
||||
DISTVERSION= 5.1.0
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
DISTNAME?= ${PORTNAME:S/-/_/}-${DISTVERSIONFULL}
|
||||
DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSIONFULL}
|
||||
|
||||
MAINTAINER= dereks@lifeofadishwasher.com
|
||||
COMMENT= Interact with GitLab API
|
||||
|
|
@ -27,7 +27,7 @@ NO_ARCH= yes
|
|||
SUB_FILES= pkg-message
|
||||
|
||||
OPTIONS_DEFINE= AUTOCOMPLETE DOCS GRAPHQL YAML
|
||||
OPTIONS_DEFAULT= AUTOCOMPLETE YAML
|
||||
OPTIONS_DEFAULT= AUTOCOMPLETE GRAPHQL YAML
|
||||
|
||||
AUTOCOMPLETE_DESC= Autocompletion via argcomplete
|
||||
GRAPHQL_DESC= GraphQL support
|
||||
|
|
@ -44,10 +44,11 @@ DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}furo>0:textproc/py-furo@${PY_FLAVOR}
|
|||
${PYTHON_PKGNAMEPREFIX}sphinxcontrib-autoprogram>0:textproc/py-sphinxcontrib-autoprogram@${PY_FLAVOR}
|
||||
DOCS_PORTDOCS= *
|
||||
|
||||
GRAPHQL_BROKEN= GRAPHQL
|
||||
GRAPHQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gql>=3.5<4:devel/py-gql@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}httpx>0:www/py-httpx@${PY_FLAVOR}
|
||||
|
||||
GRAPHQL_TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}respx>0:www/py-respx@${PY_FLAVOR}
|
||||
|
||||
YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyyaml>=5.2:devel/py-pyyaml@${PY_FLAVOR}
|
||||
|
||||
post-patch:
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1730466683
|
||||
SHA256 (python_gitlab-5.0.0.tar.gz) = d156b9810d2a5c2916226cecf354956286a9e8133ee707d6584e40f126329956
|
||||
SIZE (python_gitlab-5.0.0.tar.gz) = 486119
|
||||
TIMESTAMP = 1732841331
|
||||
SHA256 (python_gitlab-5.1.0.tar.gz) = d5a10dae8328f32fb9214bd3f9dc199b4930cd496f81c9be42a0f8ff338aeb35
|
||||
SIZE (python_gitlab-5.1.0.tar.gz) = 384162
|
||||
|
|
|
|||
32
devel/py-python-gitlab/files/patch-CHANGELOG.md
Normal file
32
devel/py-python-gitlab/files/patch-CHANGELOG.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
--- CHANGELOG.md.orig 2024-11-29 01:52:15 UTC
|
||||
+++ CHANGELOG.md
|
||||
@@ -7596,7 +7596,12 @@ - **readme**: Fix Docker image reference
|
||||
- **readme**: Fix Docker image reference
|
||||
([`b9a40d8`](https://github.com/python-gitlab/python-gitlab/commit/b9a40d822bcff630a4c92c395c134f8c002ed1cb))
|
||||
|
||||
-v1.8.0 is not available. ``` Unable to find image
|
||||
+ v1.8.0 is not available.
|
||||
+ ```
|
||||
+ Unable to find image 'registry.gitlab.com/python-gitlab/python-gitlab:v1.8.0' locally
|
||||
+ docker: Error response from daemon: manifest for registry.gitlab.com/python-gitlab/python-gitlab:v1.8.0 not found: manifest unknown: manifest unknown.
|
||||
+ ```
|
||||
+
|
||||
'registry.gitlab.com/python-gitlab/python-gitlab:v1.8.0' locally docker: Error response from
|
||||
daemon: manifest for registry.gitlab.com/python-gitlab/python-gitlab:v1.8.0 not found: manifest
|
||||
unknown: manifest unknown. ```
|
||||
@@ -7928,9 +7933,12 @@ The integration tests failed because a test called 'de
|
||||
GitLabException class handles byte-to-string conversion already in its __init__. This commit
|
||||
removes the call to 'decode()' in the test.
|
||||
|
||||
-``` Traceback (most recent call last): File "./tools/python_test_v4.py", line 801, in <module>
|
||||
- assert 'Retry later' in error_message.decode() AttributeError: 'str' object has no attribute
|
||||
- 'decode' ```
|
||||
+ ```
|
||||
+ Traceback (most recent call last):
|
||||
+ File "./tools/python_test_v4.py", line 801, in <module>
|
||||
+ assert 'Retry later' in error_message.decode()
|
||||
+ AttributeError: 'str' object has no attribute 'decode'
|
||||
+ ```
|
||||
|
||||
- Handle empty 'Retry-After' header from GitLab
|
||||
([`7a3724f`](https://github.com/python-gitlab/python-gitlab/commit/7a3724f3fca93b4f55aed5132cf46d3718c4f594))
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
--- tests/unit/test_graphql.py.orig 2024-09-15 19:09:56 UTC
|
||||
+++ tests/unit/test_graphql.py
|
||||
@@ -1,5 +1,7 @@
|
||||
-import httpx
|
||||
import pytest
|
||||
+
|
||||
+pytest.skip(reason="gql is missing from ports", allow_module_level=True)
|
||||
+import httpx
|
||||
import respx
|
||||
|
||||
import gitlab
|
||||
Loading…
Add table
Reference in a new issue