diff options
author | wiz <wiz@pkgsrc.org> | 2020-05-18 12:45:25 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2020-05-18 12:45:25 +0000 |
commit | 2a7360c4e976c2d8565ca8ec93abc6e7161966c8 (patch) | |
tree | b84e29eec0c46936f54ec7b527d036f5facda25a /devel | |
parent | 50bda38bae8554435423c669e287baf3ac4c336f (diff) | |
download | pkgsrc-2a7360c4e976c2d8565ca8ec93abc6e7161966c8.tar.gz |
devel/py-test-benchmark: import py-test-benchmark-3.2.3
A pytest fixture for benchmarking code. It will group the tests
into rounds that are calibrated to the chosen timer.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-test-benchmark/ALTERNATIVES | 2 | ||||
-rw-r--r-- | devel/py-test-benchmark/DESCR | 2 | ||||
-rw-r--r-- | devel/py-test-benchmark/Makefile | 44 | ||||
-rw-r--r-- | devel/py-test-benchmark/PLIST | 67 | ||||
-rw-r--r-- | devel/py-test-benchmark/distinfo | 6 |
5 files changed, 121 insertions, 0 deletions
diff --git a/devel/py-test-benchmark/ALTERNATIVES b/devel/py-test-benchmark/ALTERNATIVES new file mode 100644 index 00000000000..148106c89ce --- /dev/null +++ b/devel/py-test-benchmark/ALTERNATIVES @@ -0,0 +1,2 @@ +bin/py.test-benchmark @PREFIX@/bin/py.test-benchmark-@PYVERSSUFFIX@ +bin/pytest-benchmark @PREFIX@/bin/pytest-benchmark-@PYVERSSUFFIX@ diff --git a/devel/py-test-benchmark/DESCR b/devel/py-test-benchmark/DESCR new file mode 100644 index 00000000000..29fb32566ec --- /dev/null +++ b/devel/py-test-benchmark/DESCR @@ -0,0 +1,2 @@ +A pytest fixture for benchmarking code. It will group the tests +into rounds that are calibrated to the chosen timer. diff --git a/devel/py-test-benchmark/Makefile b/devel/py-test-benchmark/Makefile new file mode 100644 index 00000000000..5bf0560f5b9 --- /dev/null +++ b/devel/py-test-benchmark/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1 2020/05/18 12:45:25 wiz Exp $ + +DISTNAME= pytest-benchmark-3.2.3 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} +CATEGORIES= devel python +MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-benchmark/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/ionelmc/pytest-benchmark +COMMENT= Pytest support for benchmarking +LICENSE= 2-clause-bsd + +# Optional dependencies, not yet packaged: +# 'aspect': ['aspectlib'], +# 'histogram': ['pygaljs'], +DEPENDS+= ${PYPKGPREFIX}-cpuinfo-[0-9]*:../../sysutils/py-cpuinfo +DEPENDS+= ${PYPKGPREFIX}-pygal-[0-9]*:../../graphics/py-pygal +DEPENDS+= ${PYPKGPREFIX}-elasticsearch-[0-9]*:../../databases/py-elasticsearch +TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun + +PYTHON_VERSIONED_DEPENDENCIES+= test + +.include "../../lang/python/pyversion.mk" + +.if ${_PYTHON_VERSION} == 27 +# Optional dependencies, not yet packaged: +# ':python_version < "3.4"': ['statistics' ] +DEPENDS+= ${PYPKGPREFIX}-pathlib2-[0-9]*:../../devel/py-pathlib2 +.endif + +USE_LANGUAGES= # none + +post-install: + cd ${DESTDIR}${PREFIX}/bin && \ + ${MV} py.test-benchmark py.test-benchmark-${PYVERSSUFFIX} || ${TRUE} + cd ${DESTDIR}${PREFIX}/bin && \ + ${MV} pytest-benchmark pytest-benchmark-${PYVERSSUFFIX} || ${TRUE} + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} py.test-${PYVERSSUFFIX} + +.include "../../lang/python/versioned_dependencies.mk" +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-test-benchmark/PLIST b/devel/py-test-benchmark/PLIST new file mode 100644 index 00000000000..ad02b109eca --- /dev/null +++ b/devel/py-test-benchmark/PLIST @@ -0,0 +1,67 @@ +@comment $NetBSD: PLIST,v 1.1 2020/05/18 12:45:25 wiz Exp $ +bin/py.test-benchmark-${PYVERSSUFFIX} +bin/pytest-benchmark-${PYVERSSUFFIX} +${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}/not-zip-safe +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/pytest_benchmark/__init__.py +${PYSITELIB}/pytest_benchmark/__init__.pyc +${PYSITELIB}/pytest_benchmark/__init__.pyo +${PYSITELIB}/pytest_benchmark/__main__.py +${PYSITELIB}/pytest_benchmark/__main__.pyc +${PYSITELIB}/pytest_benchmark/__main__.pyo +${PYSITELIB}/pytest_benchmark/cli.py +${PYSITELIB}/pytest_benchmark/cli.pyc +${PYSITELIB}/pytest_benchmark/cli.pyo +${PYSITELIB}/pytest_benchmark/compat.py +${PYSITELIB}/pytest_benchmark/compat.pyc +${PYSITELIB}/pytest_benchmark/compat.pyo +${PYSITELIB}/pytest_benchmark/csv.py +${PYSITELIB}/pytest_benchmark/csv.pyc +${PYSITELIB}/pytest_benchmark/csv.pyo +${PYSITELIB}/pytest_benchmark/fixture.py +${PYSITELIB}/pytest_benchmark/fixture.pyc +${PYSITELIB}/pytest_benchmark/fixture.pyo +${PYSITELIB}/pytest_benchmark/histogram.py +${PYSITELIB}/pytest_benchmark/histogram.pyc +${PYSITELIB}/pytest_benchmark/histogram.pyo +${PYSITELIB}/pytest_benchmark/hookspec.py +${PYSITELIB}/pytest_benchmark/hookspec.pyc +${PYSITELIB}/pytest_benchmark/hookspec.pyo +${PYSITELIB}/pytest_benchmark/logger.py +${PYSITELIB}/pytest_benchmark/logger.pyc +${PYSITELIB}/pytest_benchmark/logger.pyo +${PYSITELIB}/pytest_benchmark/pep418.py +${PYSITELIB}/pytest_benchmark/pep418.pyc +${PYSITELIB}/pytest_benchmark/pep418.pyo +${PYSITELIB}/pytest_benchmark/plugin.py +${PYSITELIB}/pytest_benchmark/plugin.pyc +${PYSITELIB}/pytest_benchmark/plugin.pyo +${PYSITELIB}/pytest_benchmark/session.py +${PYSITELIB}/pytest_benchmark/session.pyc +${PYSITELIB}/pytest_benchmark/session.pyo +${PYSITELIB}/pytest_benchmark/stats.py +${PYSITELIB}/pytest_benchmark/stats.pyc +${PYSITELIB}/pytest_benchmark/stats.pyo +${PYSITELIB}/pytest_benchmark/storage/__init__.py +${PYSITELIB}/pytest_benchmark/storage/__init__.pyc +${PYSITELIB}/pytest_benchmark/storage/__init__.pyo +${PYSITELIB}/pytest_benchmark/storage/elasticsearch.py +${PYSITELIB}/pytest_benchmark/storage/elasticsearch.pyc +${PYSITELIB}/pytest_benchmark/storage/elasticsearch.pyo +${PYSITELIB}/pytest_benchmark/storage/file.py +${PYSITELIB}/pytest_benchmark/storage/file.pyc +${PYSITELIB}/pytest_benchmark/storage/file.pyo +${PYSITELIB}/pytest_benchmark/table.py +${PYSITELIB}/pytest_benchmark/table.pyc +${PYSITELIB}/pytest_benchmark/table.pyo +${PYSITELIB}/pytest_benchmark/timers.py +${PYSITELIB}/pytest_benchmark/timers.pyc +${PYSITELIB}/pytest_benchmark/timers.pyo +${PYSITELIB}/pytest_benchmark/utils.py +${PYSITELIB}/pytest_benchmark/utils.pyc +${PYSITELIB}/pytest_benchmark/utils.pyo diff --git a/devel/py-test-benchmark/distinfo b/devel/py-test-benchmark/distinfo new file mode 100644 index 00000000000..46772a7f8f2 --- /dev/null +++ b/devel/py-test-benchmark/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2020/05/18 12:45:25 wiz Exp $ + +SHA1 (pytest-benchmark-3.2.3.tar.gz) = 80977bd68110f297cb8feef6fce3164a7d141177 +RMD160 (pytest-benchmark-3.2.3.tar.gz) = c92e3b9508d59c73c723aebcf3f8a783967bba16 +SHA512 (pytest-benchmark-3.2.3.tar.gz) = 549fc8aa6d4ab732ba3708d7ab077562f7e82556891511b90a3c4c84c1262391c48bf09c06737106e1780c16093436940014546ad8c1c3960f652198a2a9acda +Size (pytest-benchmark-3.2.3.tar.gz) = 337882 bytes |