pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wip/py-hkdf: TEST_DEPENDS fails with "don't know how to make generate-wrappers"



On Sun, Jun 27, 2021 at 12:50:29PM -0400, Greg Troxel wrote:
> I wonder if we want PYTHON_NO_TEST=yes, or if that should be expressed
> by (and thus hinted at in extension.mk):
>   # This package does not have any tests.
>   TEST_TARGET=
> which I think will omit the implicit tests rule being added.

with TEST_TARGET=<empty> it tries to install nose via pip (or with
TEST_DEPENDS set, tries to build it and fails).

devel/py-pip has a different technique, like Rhialto already hinted
at do-test:
    # no tests included
    do-test:
            ${DO_NADA}

copying that to py-hkdf, I get:

    # bmake test
    => Bootstrap dependency digest>=20010302: found digest-20190127
    ===> Checking for vulnerabilities in py38-hkdf-0.0.3
    ===> Testing for py38-hkdf-0.0.3
    true

"bmake test" for other package with tests still needs fixing.

Matthias


Home | Main Index | Thread Index | Old Index