Skip to content

Commit

Permalink
databases/py-duckdb: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Jun 21, 2022
1 parent b44b554 commit 05c67b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion databases/py-duckdb/Makefile
Expand Up @@ -14,11 +14,16 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@$
${PYNUMPY}
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}pandas>=0,1:math/py-pandas@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mypy>0:devel/py-mypy@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mypy>0:devel/py-mypy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}google-cloud-storage>0:www/py-google-cloud-storage@${PY_FLAVOR}

USES= python
USE_PYTHON= distutils autoplist pytest # tests fail, see https://github.com/duckdb/duckdb/issues/3924

TEST_WRKSRC= ${WRKDIR} # tests fail when run from the build directory due to a name collision with duckdb directory
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
# 2 tests are known to fail, see https://github.com/duckdb/duckdb/issues/3930

post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/duckdb.cpython-${PYTHON_SUFFIX}.so

Expand Down

0 comments on commit 05c67b7

Please sign in to comment.