pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-setuptools_scm py-setuptools_scm: add missing...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/917b6752b9a4
branches:  trunk
changeset: 386757:917b6752b9a4
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Oct 14 14:03:01 2022 +0000

description:
py-setuptools_scm: add missing dependencies

Add test status in comment.

Bump PKGREVISION.

diffstat:

 devel/py-setuptools_scm/Makefile |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 6c4f2f36f30d -r 917b6752b9a4 devel/py-setuptools_scm/Makefile
--- a/devel/py-setuptools_scm/Makefile  Fri Oct 14 12:35:09 2022 +0000
+++ b/devel/py-setuptools_scm/Makefile  Fri Oct 14 14:03:01 2022 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.32 2022/10/13 12:11:12 adam Exp $
+# $NetBSD: Makefile,v 1.33 2022/10/14 14:03:01 wiz Exp $
 
 DISTNAME=      setuptools_scm-7.0.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/setuptools_scm/}
 
@@ -11,8 +12,9 @@
 LICENSE=       mit
 
 DEPENDS+=      ${PYPKGPREFIX}-packaging>=20.0:../../devel/py-packaging
-DEPENDS+=      ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+DEPENDS+=      ${PYPKGPREFIX}-setuptools>=45:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-tomli>=1.0.0:../../textproc/py-tomli
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
 TEST_DEPENDS+= ${PYPKGPREFIX}-mercurial-[0-9]*:../../devel/py-mercurial
 TEST_DEPENDS+= ${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
 TEST_DEPENDS+= ${PYPKGPREFIX}-test>=6.2:../../devel/py-test
@@ -20,9 +22,19 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} == 37
+DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
+.endif
+
 USE_LANGUAGES= # none
 
-# needs to be installed for testing
+TEST_ENV+=     PYTHONPATH=${WRKSRC}/build/lib
+# needs to be installed for testing, otherwise you'll see
+# INTERNALERROR> importlib.metadata.PackageNotFoundError: No package metadata was found for setuptools_scm
+# as of 7.0.5:
+# 140 passed, 93 skipped, 1 xfailed, 16 errors
 do-test:
        cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
 



Home | Main Index | Thread Index | Old Index