Index | Thread | Search

From:
Mikolaj Kucharski <mikolaj@kucharski.name>
Subject:
Re: UPDATE: py-hvac 2.3.0 and request for help to make test work
To:
ports@openbsd.org
Date:
Sat, 18 Oct 2025 17:12:19 +0000

Download raw body.

Thread
Stuart,

Thank you. Your reply is very helpful. I wanted to ask about something
unrelated to the upgrade itself, which I see in py-hvac port directory:

$ pwd
.../openbsd/ports/security/py-hvac

$ ulimit -p
1024

I wanted to clean build, run and test dependencies:

$ make BUILD_DEPENDS+='${TEST_DEPENDS}' clean=depends | wc -l
tsort: cycle in data
tsort: devel/py-twisted
tsort: devel/py-incremental
tsort: cycle in data
tsort: devel/py-test
tsort: devel/py-test-xdist
tsort: devel/py-coverage
tsort: devel/py-hypothesis
tsort: cycle in data
tsort: www/py-flask
tsort: net/py-curl
tsort: www/py-tornado
tsort: www/py-urllib3
tsort: textproc/py-elasticsearch
tsort: devel/py-test-benchmark
tsort: devel/py-isort
tsort: devel/pylint
tsort: devel/py-trio
tsort: www/py-jinja2
tsort: cycle in data
tsort: www/py-aiohttp
...

Do you see the same? Is this a bug in port infra?


On Sat, Oct 18, 2025 at 04:06:49PM +0100, Stuart Henderson wrote:
> > I tried with MODPY_PYTEST_ARGS and MODPY_TEST_DIR but to no avail.
> > Any tips?
> >
> > $ make test
> > ...
> > ===>  Building for py3-hvac-2.3.0
> > * Getting build dependencies for wheel...
> > * Building wheel...
> > Successfully built hvac-2.3.0-py3-none-any.whl
> > ===> py3-hvac-2.3.0 depends on: py3-requests-* -> py3-requests-2.32.5
> > ===> py3-hvac-2.3.0 depends on: py3-test-* -> py3-test-8.4.2p0
> > ===>  Regression tests for py3-hvac-2.3.0
> > ERROR: usage: __main__.py [options] [file_or_dir] [file_or_dir] [...]
> > __main__.py: error: unrecognized arguments: -n --dist worksteal
>
> these are a bit of a pain. it means that you're missing a dependency
> which registers an extension to pytest, but it can be hard to figure
> out which one. in this case it's py-test-xdist.
>
> some other TEST_DEPENDS from tool.poetry.group.dev.dependencies are
> needed, we have most of them already, I've attached a port for py-pyhcl
> that fixes a big bunch of these tests.
>
> a couple other tests need Authlib and ldap_test but they're relatively
> minor so I've just ignored them for now.
>
> any OKs to import py-pyhcl?
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/security/py-hvac/Makefile,v
> diff -u -p -r1.8 Makefile
> --- Makefile	16 Sep 2025 08:42:45 -0000	1.8
> +++ Makefile	18 Oct 2025 15:03:32 -0000
> @@ -1,9 +1,8 @@
>  COMMENT =		Python client library for Hashicorp Vault
>
> -MODPY_DISTV =	1.1.0
> +MODPY_DISTV =		2.3.0
>  DISTNAME =		hvac-${MODPY_DISTV}
>  PKGNAME =		py-${DISTNAME}
> -REVISION =		2
>
>  MAINTAINER =		Mikolaj Kucharski <mikolaj@kucharski.name>
>
> @@ -19,5 +18,22 @@ MODPY_PYBUILD =		poetry-core
>  MODPY_PI =		Yes
>
>  RUN_DEPENDS =		www/py-requests
> +TEST_DEPENDS =		databases/py-flask-sqlalchemy \
> +			devel/flake8 \
> +			devel/py-coverage \
> +			devel/py-test-cov \
> +			devel/py-test-mock \
> +			devel/py-test-xdist \
> +			devel/py-parameterized \
> +			textproc/py-pyhcl \
> +			www/py-flask \
> +			www/py-requests-mock \
> +			www/py-werkzeug
> +
> +# these tests need
> +# https://pypi.org/project/python-ldap-test
> +# https://pypi.org/project/Authlib
> +MODPY_PYTEST_ARGS=	--ignore tests/integration_tests/api/auth_methods/test_ldap.py \
> +			--ignore tests/integration_tests/api/auth_methods/test_oidc.py
>
>  .include <bsd.port.mk>
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/security/py-hvac/distinfo,v
> diff -u -p -r1.2 distinfo
> --- distinfo	19 May 2023 12:27:39 -0000	1.2
> +++ distinfo	18 Oct 2025 15:03:32 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (hvac-1.1.0.tar.gz) = B53KWIVt7mZG7VovIoOAnBbS3u3eHp6WFbKRAySkuWk=
> -SIZE (hvac-1.1.0.tar.gz) = 106777
> +SHA256 (hvac-2.3.0.tar.gz) = G4XjMg6GQt2C8jTbYyU82haagXWJ6CNxPcX8qDEZseI=
> +SIZE (hvac-2.3.0.tar.gz) = 332660
> Index: pkg/PLIST
> ===================================================================
> RCS file: /cvs/ports/security/py-hvac/pkg/PLIST,v
> diff -u -p -r1.6 PLIST
> --- pkg/PLIST	16 Sep 2025 08:42:45 -0000	1.6
> +++ pkg/PLIST	18 Oct 2025 15:03:32 -0000
...

-- 
Regards,
 Mikolaj