pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-versioningit py-versioningit: convert to whee...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50ce46ab7355
branches:  trunk
changeset: 379136:50ce46ab7355
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu May 12 06:07:02 2022 +0000

description:
py-versioningit: convert to wheel.mk

Add missing dependencies, add test target and test dependencies.
Mark as not-for-python-2.

diffstat:

 devel/py-versioningit/Makefile       |  30 +++++++++++++----
 devel/py-versioningit/PLIST          |  60 ++++++++++++++---------------------
 devel/py-versioningit/files/setup.py |   4 --
 3 files changed, 47 insertions(+), 47 deletions(-)

diffs (138 lines):

diff -r ed157add004b -r 50ce46ab7355 devel/py-versioningit/Makefile
--- a/devel/py-versioningit/Makefile    Thu May 12 05:39:41 2022 +0000
+++ b/devel/py-versioningit/Makefile    Thu May 12 06:07:02 2022 +0000
@@ -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 @@
 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
+
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
+.include "../../lang/python/pyversion.mk"
 
-post-extract: setuppy
-.PHONY: setuppy
-setuppy:
-       ${CP} ${FILESDIR}/setup.py ${WRKSRC}/
+.if ${_PYTHON_VERSION} < 310
+DEPENDS+=      ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
+.endif
 
-.include "../../lang/python/egg.mk"
+# 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"
diff -r ed157add004b -r 50ce46ab7355 devel/py-versioningit/PLIST
--- a/devel/py-versioningit/PLIST       Thu May 12 05:39:41 2022 +0000
+++ b/devel/py-versioningit/PLIST       Thu May 12 06:07:02 2022 +0000
@@ -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.py
 ${PYSITELIB}/versioningit/basics.pyc
-${PYSITELIB}/versioningit/basics.pyo
+${PYSITELIB}/versioningit/cmdclasses.py
 ${PYSITELIB}/versioningit/cmdclasses.pyc
-${PYSITELIB}/versioningit/cmdclasses.pyo
+${PYSITELIB}/versioningit/config.py
 ${PYSITELIB}/versioningit/config.pyc
-${PYSITELIB}/versioningit/config.pyo
+${PYSITELIB}/versioningit/core.py
 ${PYSITELIB}/versioningit/core.pyc
-${PYSITELIB}/versioningit/core.pyo
+${PYSITELIB}/versioningit/errors.py
 ${PYSITELIB}/versioningit/errors.pyc
-${PYSITELIB}/versioningit/errors.pyo
+${PYSITELIB}/versioningit/git.py
 ${PYSITELIB}/versioningit/git.pyc
-${PYSITELIB}/versioningit/git.pyo
+${PYSITELIB}/versioningit/hg.py
 ${PYSITELIB}/versioningit/hg.pyc
-${PYSITELIB}/versioningit/hg.pyo
+${PYSITELIB}/versioningit/hook.py
 ${PYSITELIB}/versioningit/hook.pyc
-${PYSITELIB}/versioningit/hook.pyo
+${PYSITELIB}/versioningit/logging.py
 ${PYSITELIB}/versioningit/logging.pyc
-${PYSITELIB}/versioningit/logging.pyo
+${PYSITELIB}/versioningit/methods.py
 ${PYSITELIB}/versioningit/methods.pyc
-${PYSITELIB}/versioningit/methods.pyo
+${PYSITELIB}/versioningit/next_version.py
 ${PYSITELIB}/versioningit/next_version.pyc
-${PYSITELIB}/versioningit/next_version.pyo
+${PYSITELIB}/versioningit/onbuild.py
 ${PYSITELIB}/versioningit/onbuild.pyc
-${PYSITELIB}/versioningit/onbuild.pyo
-${PYSITELIB}/versioningit/util.pyc
-${PYSITELIB}/versioningit/util.pyo
-${PYSITELIB}/versioningit/basics.py
-${PYSITELIB}/versioningit/cmdclasses.py
-${PYSITELIB}/versioningit/config.py
-${PYSITELIB}/versioningit/core.py
-${PYSITELIB}/versioningit/errors.py
-${PYSITELIB}/versioningit/git.py
-${PYSITELIB}/versioningit/hg.py
-${PYSITELIB}/versioningit/hook.py
-${PYSITELIB}/versioningit/logging.py
-${PYSITELIB}/versioningit/methods.py
-${PYSITELIB}/versioningit/next_version.py
-${PYSITELIB}/versioningit/onbuild.py
 ${PYSITELIB}/versioningit/py.typed
 ${PYSITELIB}/versioningit/util.py
+${PYSITELIB}/versioningit/util.pyc
diff -r ed157add004b -r 50ce46ab7355 devel/py-versioningit/files/setup.py
--- a/devel/py-versioningit/files/setup.py      Thu May 12 05:39:41 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-from setuptools import setup
-
-if __name__ == '__main__':
-    setup()



Home | Main Index | Thread Index | Old Index