Skip to content

Commit

Permalink
devel/py-python-gitlab: Update to 3.0.0
Browse files Browse the repository at this point in the history
- 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] python-gitlab/python-gitlab#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)
  • Loading branch information
derekschrock authored and lbartoletti committed Jan 13, 2022
1 parent 779b49b commit cdf62c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
15 changes: 10 additions & 5 deletions devel/py-python-gitlab/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PORTNAME= python-gitlab
PORTVERSION= 2.10.1
PORTVERSION= 3.0.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -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
Expand All @@ -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= *
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions devel/py-python-gitlab/distinfo
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions devel/py-python-gitlab/files/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```{include} ../CHANGELOG.md
```

0 comments on commit cdf62c5

Please sign in to comment.