pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-versioningit
Module Name: pkgsrc
Committed By: wiz
Date: Thu May 12 06:07:03 UTC 2022
Modified Files:
pkgsrc/devel/py-versioningit: Makefile PLIST
Removed Files:
pkgsrc/devel/py-versioningit/files: setup.py
Log Message:
py-versioningit: convert to wheel.mk
Add missing dependencies, add test target and test dependencies.
Mark as not-for-python-2.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-versioningit/Makefile \
pkgsrc/devel/py-versioningit/PLIST
cvs rdiff -u -r1.1 -r0 pkgsrc/devel/py-versioningit/files/setup.py
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-versioningit/Makefile
diff -u pkgsrc/devel/py-versioningit/Makefile:1.1 pkgsrc/devel/py-versioningit/Makefile:1.2
--- pkgsrc/devel/py-versioningit/Makefile:1.1 Wed May 11 17:51:43 2022
+++ pkgsrc/devel/py-versioningit/Makefile Thu May 12 06:07:02 2022
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2022/05/11 17:51:43 bouyer Exp $
+# $NetBSD: Makefile,v 1.2 2022/05/12 06:07:02 wiz Exp $
DISTNAME= versioningit-1.1.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=v/versioningit/}
@@ -10,13 +11,28 @@ HOMEPAGE= https://github.com/jwodder/ver
COMMENT= Use version control tags to discover version numbers
LICENSE= isc
+DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
-DEPENDS+= ${PYPKGPREFIX}-wheel>=0.32:../../devel/py-wheel
+DEPENDS+= ${PYPKGPREFIX}-tomli>=1.2:../../textproc/py-tomli
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel>=0.32:../../devel/py-wheel
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
+#TEST_DEPENDS+= ${PYPKGPREFIX}-dantic-[0-9]*:../../wip/py-dantic
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
-post-extract: setuppy
-.PHONY: setuppy
-setuppy:
- ${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+PYTHON_VERSIONS_INCOMPATIBLE= 27
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/pyversion.mk"
+
+.if ${_PYTHON_VERSION} < 310
+DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
+.endif
+
+# as of 1.1.1
+# 8 failed, 319 passed, 88 skipped
+TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-versioningit/PLIST
diff -u pkgsrc/devel/py-versioningit/PLIST:1.1 pkgsrc/devel/py-versioningit/PLIST:1.2
--- pkgsrc/devel/py-versioningit/PLIST:1.1 Wed May 11 17:51:43 2022
+++ pkgsrc/devel/py-versioningit/PLIST Thu May 12 06:07:02 2022
@@ -1,54 +1,42 @@
-@comment $NetBSD: PLIST,v 1.1 2022/05/11 17:51:43 bouyer Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/05/12 06:07:02 wiz Exp $
bin/versioningit
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
${PYSITELIB}/versioningit/__init__.py
-${PYSITELIB}/versioningit/__main__.py
${PYSITELIB}/versioningit/__init__.pyc
-${PYSITELIB}/versioningit/__init__.pyo
+${PYSITELIB}/versioningit/__main__.py
${PYSITELIB}/versioningit/__main__.pyc
-${PYSITELIB}/versioningit/__main__.pyo
-${PYSITELIB}/versioningit/basics.pyc
-${PYSITELIB}/versioningit/basics.pyo
-${PYSITELIB}/versioningit/cmdclasses.pyc
-${PYSITELIB}/versioningit/cmdclasses.pyo
-${PYSITELIB}/versioningit/config.pyc
-${PYSITELIB}/versioningit/config.pyo
-${PYSITELIB}/versioningit/core.pyc
-${PYSITELIB}/versioningit/core.pyo
-${PYSITELIB}/versioningit/errors.pyc
-${PYSITELIB}/versioningit/errors.pyo
-${PYSITELIB}/versioningit/git.pyc
-${PYSITELIB}/versioningit/git.pyo
-${PYSITELIB}/versioningit/hg.pyc
-${PYSITELIB}/versioningit/hg.pyo
-${PYSITELIB}/versioningit/hook.pyc
-${PYSITELIB}/versioningit/hook.pyo
-${PYSITELIB}/versioningit/logging.pyc
-${PYSITELIB}/versioningit/logging.pyo
-${PYSITELIB}/versioningit/methods.pyc
-${PYSITELIB}/versioningit/methods.pyo
-${PYSITELIB}/versioningit/next_version.pyc
-${PYSITELIB}/versioningit/next_version.pyo
-${PYSITELIB}/versioningit/onbuild.pyc
-${PYSITELIB}/versioningit/onbuild.pyo
-${PYSITELIB}/versioningit/util.pyc
-${PYSITELIB}/versioningit/util.pyo
${PYSITELIB}/versioningit/basics.py
+${PYSITELIB}/versioningit/basics.pyc
${PYSITELIB}/versioningit/cmdclasses.py
+${PYSITELIB}/versioningit/cmdclasses.pyc
${PYSITELIB}/versioningit/config.py
+${PYSITELIB}/versioningit/config.pyc
${PYSITELIB}/versioningit/core.py
+${PYSITELIB}/versioningit/core.pyc
${PYSITELIB}/versioningit/errors.py
+${PYSITELIB}/versioningit/errors.pyc
${PYSITELIB}/versioningit/git.py
+${PYSITELIB}/versioningit/git.pyc
${PYSITELIB}/versioningit/hg.py
+${PYSITELIB}/versioningit/hg.pyc
${PYSITELIB}/versioningit/hook.py
+${PYSITELIB}/versioningit/hook.pyc
${PYSITELIB}/versioningit/logging.py
+${PYSITELIB}/versioningit/logging.pyc
${PYSITELIB}/versioningit/methods.py
+${PYSITELIB}/versioningit/methods.pyc
${PYSITELIB}/versioningit/next_version.py
+${PYSITELIB}/versioningit/next_version.pyc
${PYSITELIB}/versioningit/onbuild.py
+${PYSITELIB}/versioningit/onbuild.pyc
${PYSITELIB}/versioningit/py.typed
${PYSITELIB}/versioningit/util.py
+${PYSITELIB}/versioningit/util.pyc
Home |
Main Index |
Thread Index |
Old Index