Date: Tue, 10 Oct 2023 22:49:58 GMT From: Charlie Li <vishwin@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: b887229a5e2e - main - benchmarks/py-asv: add Message-ID: <202310102249.39AMnwHw019490@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by vishwin: URL: https://cgit.FreeBSD.org/ports/commit/?id=b887229a5e2e727337989e50c0cd731178365e34 commit b887229a5e2e727337989e50c0cd731178365e34 Author: Charlie Li <vishwin@FreeBSD.org> AuthorDate: 2023-10-10 22:47:57 +0000 Commit: Charlie Li <vishwin@FreeBSD.org> CommitDate: 2023-10-10 22:47:57 +0000 benchmarks/py-asv: add Airspeed Velocity: A simple Python history benchmarking tool (Note: 4 tests fail because conda is not available) --- benchmarks/Makefile | 1 + benchmarks/py-asv/Makefile | 41 ++++++++++++++++++++++++++++ benchmarks/py-asv/distinfo | 3 ++ benchmarks/py-asv/files/patch-pyproject.toml | 11 ++++++++ benchmarks/py-asv/pkg-descr | 7 +++++ 5 files changed, 63 insertions(+) diff --git a/benchmarks/Makefile b/benchmarks/Makefile index 4ecebc032b32..020638d3115e 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -75,6 +75,7 @@ SUBDIR += polygraph SUBDIR += postal SUBDIR += postmark + SUBDIR += py-asv SUBDIR += py-asv-runner SUBDIR += py-locust SUBDIR += py-naarad diff --git a/benchmarks/py-asv/Makefile b/benchmarks/py-asv/Makefile new file mode 100644 index 000000000000..a39f492933fd --- /dev/null +++ b/benchmarks/py-asv/Makefile @@ -0,0 +1,41 @@ +PORTNAME= asv +DISTVERSION= 0.6.1 +CATEGORIES= benchmarks python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= vishwin@FreeBSD.org +COMMENT= Airspeed Velocity: A simple Python history benchmarking tool +WWW= https://asv.readthedocs.io/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.rst + +BUILD_DEPENDS:= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.2:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${RUN_DEPENDS} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asv-runner>=0.1.0:benchmarks/py-asv-runner@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}json5>0:devel/py-json5@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tabulate>0:devel/py-tabulate@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Pympler>0:devel/py-pympler@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-rerunfailures>=10.0:devel/py-pytest-rerunfailures@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}virtualenv>0:devel/py-virtualenv@${PY_FLAVOR} \ + ${PY_NUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}feedparser>0:textproc/py-feedparser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}selenium>0:www/py-selenium@${PY_FLAVOR} \ + git:devel/git \ + ${PYTHON_PKGNAMEPREFIX}hglib>0:devel/py-hglib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rpy2>0:math/py-rpy2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 pytest + +.include <bsd.port.mk> diff --git a/benchmarks/py-asv/distinfo b/benchmarks/py-asv/distinfo new file mode 100644 index 000000000000..2caedbe8febd --- /dev/null +++ b/benchmarks/py-asv/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1696913123 +SHA256 (asv-0.6.1.tar.gz) = 4eaf7b2ff825d841c819b15de8753d10dc0cc5da4082dc3e0de2707fc71d7ea4 +SIZE (asv-0.6.1.tar.gz) = 376306 diff --git a/benchmarks/py-asv/files/patch-pyproject.toml b/benchmarks/py-asv/files/patch-pyproject.toml new file mode 100644 index 000000000000..a4c29f831859 --- /dev/null +++ b/benchmarks/py-asv/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2023-09-11 04:51:42 UTC ++++ pyproject.toml +@@ -89,8 +89,6 @@ license-files = [ + "LICENSE.rst", + ] + +-[tool.setuptools.packages.find] +-namespaces = false + [tool.setuptools.exclude-package-data] + "*" = ["*.sh"] + diff --git a/benchmarks/py-asv/pkg-descr b/benchmarks/py-asv/pkg-descr new file mode 100644 index 000000000000..f29823caeaec --- /dev/null +++ b/benchmarks/py-asv/pkg-descr @@ -0,0 +1,7 @@ +airspeed velocity (asv) is a tool for benchmarking Python packages +over their lifetime. + +It is primarily designed to benchmark a single project over its +lifetime using a given suite of benchmarks. The results are displayed +in an interactive web frontend that requires only a basic static +webserver to host.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310102249.39AMnwHw019490>