Port details |
- py-pytest-arraydiff Pytest plugin to help with comparing array output from tests
- 0.6.1 devel
=0 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one. - Maintainer: yuri@FreeBSD.org
 - Port Added: 2025-09-07 18:30:08
- Last Update: 2025-09-07 18:29:38
- Commit Hash: ed86dfa
- Also Listed In: python
- License: BSD2CLAUSE
- WWW:
- https://github.com/astropy/pytest-arraydiff
- 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
¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- USE_RC_SUBR (Service Scripts)
- no SUBR information found for this port
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}pytest-arraydiff>0:devel/py-pytest-arraydiff@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-pytest-arraydiff/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-pytest-arraydiff
- pkg install py311-pytest-arraydiff
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-pytest-arraydiff listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-pytest-arraydiff
- Package flavors (<flavor>: <package>)
- py311: py311-pytest-arraydiff
- distinfo:
- TIMESTAMP = 1757266057
SHA256 (pytest-arraydiff-0.6.1.tar.gz) = 2937b1450fc935620f24709d87d40c67e055a043d7b8541a25fdfa994dda67de
SIZE (pytest-arraydiff-0.6.1.tar.gz) = 16907
No package information for this port in our database- Sometimes this happens. Not all ports have packages. This is doubly so for new ports, like this one.
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-setuptools>0 : devel/py-setuptools@py311
- py311-setuptools-scm>0 : devel/py-setuptools-scm@py311
- py311-wheel>0 : devel/py-wheel@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- py311-pytest>=7,1 : devel/py-pytest@py311
- python3.11 : lang/python311
- Runtime dependencies:
-
- py311-numpy>=1.16,1<1.27,1 : math/py-numpy@py311
- py311-pytest>=4.6 : devel/py-pytest@py311
- python3.11 : lang/python311
- This port is required by:
- for Run
-
- astro/py-pytest-astropy
Configuration Options:
- No options to configure
- Options name:
- devel_py-pytest-arraydiff
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|