Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2024 02:07:33 GMT
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f941e91c480e - main - devel/py-python-gitlab: Update 4.10.0 =?utf-8?Q?=E2=86=92?= 4.11.1
Message-ID:  <202409160207.48G27XC7096832@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f941e91c480ef02c5daa5e2d925d0efb935593e4

commit f941e91c480ef02c5daa5e2d925d0efb935593e4
Author:     Derek Schrock <dereks@lifeofadishwasher.com>
AuthorDate: 2024-09-16 02:05:52 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-09-16 02:05:52 +0000

    devel/py-python-gitlab: Update 4.10.0 → 4.11.1
    
    - Update to 4.11.1 [1][2]
    - Add GRAPHQL option.
    - Make GRAPHQL as broken because gql is missing from ports. Adding
      devel/gql soon.
    - Disable graphql unit tests.
    
    [1] https://github.com/python-gitlab/python-gitlab/releases/tag/v4.11.0
    [2] https://github.com/python-gitlab/python-gitlab/releases/tag/v4.11.1
    
    PR:     281523
---
 devel/py-python-gitlab/Makefile                               |  9 +++++++--
 devel/py-python-gitlab/distinfo                               |  6 +++---
 .../py-python-gitlab/files/patch-tests_unit_test__graphql.py  | 11 +++++++++++
 3 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/devel/py-python-gitlab/Makefile b/devel/py-python-gitlab/Makefile
index e6c8da9038cf..561b4163ce7f 100644
--- a/devel/py-python-gitlab/Makefile
+++ b/devel/py-python-gitlab/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	python-gitlab
-DISTVERSION=	4.10.0
+DISTVERSION=	4.11.1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -26,10 +26,11 @@ USE_PYTHON=	autoplist concurrent pep517
 NO_ARCH=	yes
 SUB_FILES=	pkg-message
 
-OPTIONS_DEFINE=		AUTOCOMPLETE DOCS YAML
+OPTIONS_DEFINE=		AUTOCOMPLETE DOCS GRAPHQL YAML
 OPTIONS_DEFAULT=	AUTOCOMPLETE YAML
 
 AUTOCOMPLETE_DESC=	Autocompletion via argcomplete
+GRAPHQL_DESC=		GraphQL support
 YAML_DESC=		YAML output
 
 AUTOCOMPLETE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argcomplete>=1.10.0<4:devel/py-argcomplete@${PY_FLAVOR}
@@ -43,6 +44,10 @@ 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}
+
 YAML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyyaml>=5.2:devel/py-pyyaml@${PY_FLAVOR}
 
 post-patch:
diff --git a/devel/py-python-gitlab/distinfo b/devel/py-python-gitlab/distinfo
index d5ba0448a668..0fc9f844cfeb 100644
--- a/devel/py-python-gitlab/distinfo
+++ b/devel/py-python-gitlab/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1724892682
-SHA256 (python_gitlab-4.10.0.tar.gz) = 86f99c1915088e2d2573817aca8bf6bab5e4f12d42b04ef6b2df2abb528d57fd
-SIZE (python_gitlab-4.10.0.tar.gz) = 478822
+TIMESTAMP = 1726234834
+SHA256 (python_gitlab-4.11.1.tar.gz) = 7afa2f9c30618bc3daee95d2186a06e1cf18ca2fa97890eb55fd8ddc4e339812
+SIZE (python_gitlab-4.11.1.tar.gz) = 482437
diff --git a/devel/py-python-gitlab/files/patch-tests_unit_test__graphql.py b/devel/py-python-gitlab/files/patch-tests_unit_test__graphql.py
new file mode 100644
index 000000000000..8a945f152b50
--- /dev/null
+++ b/devel/py-python-gitlab/files/patch-tests_unit_test__graphql.py
@@ -0,0 +1,11 @@
+--- 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409160207.48G27XC7096832>