pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-setuptools_scm
Module Name: pkgsrc
Committed By: wiz
Date: Fri Oct 14 14:03:02 UTC 2022
Modified Files:
pkgsrc/devel/py-setuptools_scm: Makefile
Log Message:
py-setuptools_scm: add missing dependencies
Add test status in comment.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/devel/py-setuptools_scm/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-setuptools_scm/Makefile
diff -u pkgsrc/devel/py-setuptools_scm/Makefile:1.32 pkgsrc/devel/py-setuptools_scm/Makefile:1.33
--- pkgsrc/devel/py-setuptools_scm/Makefile:1.32 Thu Oct 13 12:11:12 2022
+++ pkgsrc/devel/py-setuptools_scm/Makefile Fri Oct 14 14:03:01 2022
@@ -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 @@ COMMENT= Manage your versions by scm tag
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 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-virtualenv
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