pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-importlib-metadata Instead of depending on se...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8dc1e47f7a5d
branches: trunk
changeset: 387732:8dc1e47f7a5d
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Nov 05 22:24:39 2022 +0000
description:
Instead of depending on setuptools_scm, copy the version number of
PKG-INFO to setup.cfg directly.
diffstat:
devel/py-importlib-metadata/Makefile | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r f89e9bd4d515 -r 8dc1e47f7a5d devel/py-importlib-metadata/Makefile
--- a/devel/py-importlib-metadata/Makefile Sat Nov 05 18:43:43 2022 +0000
+++ b/devel/py-importlib-metadata/Makefile Sat Nov 05 22:24:39 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2022/08/02 11:20:02 adam Exp $
+# $NetBSD: Makefile,v 1.31 2022/11/05 22:24:39 joerg Exp $
DISTNAME= importlib_metadata-4.12.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
@@ -10,7 +10,6 @@
COMMENT= Read metadata from Python packages
LICENSE= apache-2.0
-BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm>=3.4.1:../../devel/py-setuptools_scm
BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-zipp>=0.5:../../archivers/py-zipp
TEST_DEPENDS+= ${PYPKGPREFIX}-importlib-resources-[0-9]*:../../devel/py-importlib-resources
@@ -28,6 +27,15 @@
DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.6.4:../../devel/py-typing-extensions
.endif
+pre-build:
+ ${RUN} if ! ${GREP} '^version =' ${WRKSRC}/setup.cfg; then \
+ cd ${WRKSRC}; \
+ (${HEAD} -2 setup.cfg; \
+ ${GREP} 'Version:' PKG-INFO | ${SED} -e 's,^V',v, -e 's,:, = ,'; \
+ ${TAIL} -n +3 setup.cfg \
+ ) > setup.cfg.new && ${MV} setup.cfg.new setup.cfg; \
+ fi
+
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
Home |
Main Index |
Thread Index |
Old Index