Skip to content

Commit

Permalink
devel/py-python-gitlab: Update to 4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
derekschrock authored and lwhsu committed Nov 6, 2023
1 parent e2043fd commit d9257c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 22 deletions.
20 changes: 12 additions & 8 deletions devel/py-python-gitlab/Makefile
@@ -1,5 +1,5 @@
PORTNAME= python-gitlab
DISTVERSION= 3.15.0
DISTVERSION= 4.1.1
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -11,14 +11,16 @@ WWW= https://github.com/python-gitlab/python-gitlab
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/COPYING

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests-toolbelt>=0.10.1:www/py-requests-toolbelt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.25.0:www/py-requests@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-console-scripts>0:devel/py-pytest-console-scripts@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}responses>0:devel/py-responses@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes
SUB_FILES= pkg-message
Expand All @@ -37,21 +39,23 @@ DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}furo>0:textproc/py-furo@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}requests-toolbelt>=0.10.1:www/py-requests-toolbelt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.25.0:www/py-requests@${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= *
DOCS_VARS= PYDISTUTILS_BUILD_TARGET=build_sphinx \
PYDISTUTILS_BUILDARGS="--all-files --fresh-env"

YAML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=5.2:devel/py-yaml@${PY_FLAVOR}

post-patch:
@${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}/etc|g' ${WRKSRC}/gitlab/config.py

do-build-DOCS-on::
(cd ${WRKSRC} && sphinx-build -j auto -n -W --keep-going -b html docs build/sphinx/html)

post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/build/sphinx/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objects.inv")
${RM} -r .doctrees && \
${RM} .buildinfo objects.inv && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= tests/unit
Expand Down
6 changes: 3 additions & 3 deletions devel/py-python-gitlab/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1686350222
SHA256 (python-gitlab-3.15.0.tar.gz) = c9e65eb7612a9fbb8abf0339972eca7fd7a73d4da66c9b446ffe528930aff534
SIZE (python-gitlab-3.15.0.tar.gz) = 273270
TIMESTAMP = 1699058975
SHA256 (python-gitlab-4.1.1.tar.gz) = e4912083d5d40a79b57875a033083e2c860e34bcc4644ef64ca377a755c5b0c9
SIZE (python-gitlab-4.1.1.tar.gz) = 453057
11 changes: 0 additions & 11 deletions devel/py-python-gitlab/files/patch-setup.py

This file was deleted.

0 comments on commit d9257c3

Please sign in to comment.