Skip to content

Commit

Permalink
benchmarks/py-asv: add
Browse files Browse the repository at this point in the history
Airspeed Velocity: A simple Python history benchmarking tool

(Note: 4 tests fail because conda is not available)
  • Loading branch information
vishwin committed Oct 10, 2023
1 parent 2e6efdc commit b887229
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/Makefile
Expand Up @@ -75,6 +75,7 @@
SUBDIR += polygraph
SUBDIR += postal
SUBDIR += postmark
SUBDIR += py-asv
SUBDIR += py-asv-runner
SUBDIR += py-locust
SUBDIR += py-naarad
Expand Down
41 changes: 41 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
11 changes: 11 additions & 0 deletions 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"]

7 changes: 7 additions & 0 deletions 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.

0 comments on commit b887229

Please sign in to comment.