devel/py-pytest-arraydiff 0.7.0 FreeBSD
Pytest plugin to help with comparing array output from tests
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
696938a2d4- License
- BSD3CLAUSE
- Categories
- devel, python
- Package size
- 16.8 KiB, 61.0 KiB installed
Description
pytest-arraydiff is a py.test plugin to facilitate the generation and comparison of data arrays produced during tests, in particular in cases where the arrays are too large to conveniently hard-code them in the tests (e.g. np.testing.assert_allclose(x, [1, 2, 3])).
The basic idea is that you can write a test that generates a Numpy array (or other related objects depending on the format, e.g. pandas DataFrame). You can then either run the tests in a mode to generate reference files from the arrays, or you can run the tests in comparison mode, which will compare the results of the tests to the reference ones within some tolerance.
At the moment, the supported file formats for the reference files are: * A plain text-based format (based on Numpy loadtxt output) * The FITS format (requires astropy). With this format, tests can return either a Numpy array for a FITS HDU object. * A pandas HDF5 format using the pandas HDFStore
Install
Binary package:
pkg install py312-pytest-arraydiff
From the ports tree:
cd /usr/ports/devel/py-pytest-arraydiff/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-pytest-arraydiff>0:devel/py-pytest-arraydiff
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.7.0 | 0.7.0 | - | - | 0.7.0 |
| FreeBSD:14:quarterly | 0.7.0 | 0.7.0 | n/a | - | 0.7.0 |
| FreeBSD:15:latest | 0.7.0 | 0.7.0 | n/a | - | - |
| FreeBSD:15:quarterly | 0.7.0 | 0.7.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.7.0 | 0.7.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools-scm>0: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>0: devel/py-wheel
Runtime 2
${PYTHON_PKGNAMEPREFIX}numpy>=1.16: math/py-numpy${PYTHON_PKGNAMEPREFIX}pytest>=6.2: devel/py-pytest
Test 2
${PYTHON_PKGNAMEPREFIX}astropy>=0: astro/py-astropy${PYTHON_PKGNAMEPREFIX}pandas>=0: math/py-pandas
The full lists below include those, and their dependencies in turn.
Build dependencies 17
Run dependencies 22
- archivers/liblz4
- archivers/zstd
- devel/binutils
- devel/gettext-runtime
- devel/libffi
- devel/py-iniconfig
- devel/py-packaging
- devel/py-pluggy
- devel/py-pytest
- devel/readline
- lang/gcc14
- lang/python312
- lang/python315
- math/gmp
- math/mpc
- math/mpdecimal
- math/mpfr
- math/openblas
- math/py-numpy
- print/indexinfo
- textproc/expat2
- textproc/py-pygments
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pytest_arraydiff-0.7.0.tar.gz | 17860 | 70e2a9183af5b4f05f694727beb30eb5fc6712632b240ef259ec60984a629b1a |
Master sites 1
- PYPI