git: cdf62c525070 - main - devel/py-python-gitlab: Update to 3.0.0

From: Loïc Bartoletti <lbartoletti_at_FreeBSD.org>
Date: Thu, 13 Jan 2022 06:57:09 UTC
The branch main has been updated by lbartoletti:

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

commit cdf62c525070a920651307e30e8f59af237aec1e
Author:     Derek Schrock <dereks@lifeofadishwasher.com>
AuthorDate: 2022-01-13 05:54:34 +0000
Commit:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
CommitDate: 2022-01-13 05:54:34 +0000

    devel/py-python-gitlab: Update to 3.0.0
    
    - Update to 3.0.0 [1]
    - Add missing dist file docs/changelog.md [2]
    - Add patch to fix sphinx 4.1 feature autodoc_typehints both [3][4]
    
    [1] https://github.com/python-gitlab/python-gitlab/releases/tag/v3.0.0
    [2] https://github.com/python-gitlab/python-gitlab/pull/1813
    [3] https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html
    [4] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257116
    
    PR:             261026
    Reported by:    Derek Schrock (maintainer)
---
 devel/py-python-gitlab/Makefile           | 15 ++++++++++-----
 devel/py-python-gitlab/distinfo           |  6 +++---
 devel/py-python-gitlab/files/changelog.md |  2 ++
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/devel/py-python-gitlab/Makefile b/devel/py-python-gitlab/Makefile
index 5d5c0b3f0999..65a7a7236c74 100644
--- a/devel/py-python-gitlab/Makefile
+++ b/devel/py-python-gitlab/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	python-gitlab
-PORTVERSION=	2.10.1
+PORTVERSION=	3.0.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,7 +17,7 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}httmock>0:www/py-httmock@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}responses>0:devel/py-responses@${PY_FLAVOR}
 
-USES=		python:3.6+
+USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
@@ -29,12 +29,14 @@ OPTIONS_DEFAULT=	AUTOCOMPLETE YAML
 AUTOCOMPLETE_DESC=	Autocompletion via argcomplete
 YAML_DESC=		YAML output
 
-AUTOCOMPLETE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argcomplete>=1.10.0<2:devel/py-argcomplete@${PY_FLAVOR}
+AUTOCOMPLETE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argcomplete>=1.10.0<3:devel/py-argcomplete@${PY_FLAVOR}
 
-DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
+DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}furo>0:textproc/py-furo@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}myst-parser>0:textproc/py-myst-parser@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}requests-toolbelt>=0.9.1:www/py-requests-toolbelt@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}requests>=2.25.0:www/py-requests@${PY_FLAVOR} \
-			${PYTHON_PKGNAMEPREFIX}sphinx>=3.2.1,1:textproc/py-sphinx@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}sphinx>=4.3.1,1:textproc/py-sphinx@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \
 			${PYTHON_PKGNAMEPREFIX}sphinxcontrib-autoprogram>0:textproc/py-sphinxcontrib-autoprogram@${PY_FLAVOR}
 DOCS_PORTDOCS=		*
@@ -43,6 +45,9 @@ DOCS_VARS=		PYDISTUTILS_BUILD_TARGET=build_sphinx \
 
 YAML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=5.2:devel/py-yaml@${PY_FLAVOR}
 
+post-extract-DOCS-on:
+	@${CP} ${FILESDIR}/changelog.md ${WRKSRC}/docs/
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}/etc|g' ${WRKSRC}/gitlab/config.py
 
diff --git a/devel/py-python-gitlab/distinfo b/devel/py-python-gitlab/distinfo
index 869f70ca28d9..c3105ff45faf 100644
--- a/devel/py-python-gitlab/distinfo
+++ b/devel/py-python-gitlab/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1630211085
-SHA256 (python-gitlab-2.10.1.tar.gz) = 7afa7d7c062fa62c173190452265a30feefb844428efc58ea5244f3b9fc0d40f
-SIZE (python-gitlab-2.10.1.tar.gz) = 178899
+TIMESTAMP = 1641516632
+SHA256 (python-gitlab-3.0.0.tar.gz) = 89f82740b76820cf407cee9c43b75ca3ddb72f344f595902ee963837d7664986
+SIZE (python-gitlab-3.0.0.tar.gz) = 210452
diff --git a/devel/py-python-gitlab/files/changelog.md b/devel/py-python-gitlab/files/changelog.md
new file mode 100644
index 000000000000..66efc0fecd15
--- /dev/null
+++ b/devel/py-python-gitlab/files/changelog.md
@@ -0,0 +1,2 @@
+```{include} ../CHANGELOG.md
+```