filesystems/py-pyfakefs 6.2.0 FreeBSD
Implement a fake file system that mocks the Python file system modules
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
bc42b5f6a9- License
- APACHE20
- Categories
- filesystems, devel, python
- Package size
- 533.5 KiB, 4784.6 KiB installed
Description
pyfakefs implements a fake file system that mocks the Python file system modules. Using pyfakefs, your tests operate on a fake file system in memory without touching the real disk. The software under test requires no modification to work with pyfakefs.
Pyfakefs creates a new empty in-memory file system at each test start, which replaces the real filesystem during the test. Think of pyfakefs as making a per-test temporary directory, except for an entire file system.
There are several means to achieve this: by using the fs fixture if running pytest, by using fake_filesystem_unittest.TestCase as a base class if using unittest, by using a fake_filesystem_unittest.Patcher instance as a context manager, or by using the patchfs decorator.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | filesystems/py-pyfakefs | 6.2.0 |
| DragonFly | filesystems/py-pyfakefs | 5.8.0 |
| MidnightBSD | filesystems/py-pyfakefs | 5.7.1_1 |
| HardenedBSD | filesystems/py-pyfakefs | 6.2.0 |
| GhostBSD | filesystems/py-pyfakefs | 5.10.2 |
Install
Binary package:
pkg install py312-pyfakefs
From the ports tree:
cd /usr/ports/filesystems/py-pyfakefs/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-pyfakefs>0:filesystems/py-pyfakefs
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 | 6.2.0 | 6.2.0 | - | 5.9.1 | 6.2.0 |
| FreeBSD:14:quarterly | 6.2.0 | 6.2.0 | n/a | 5.9.1 | 6.2.0 |
| FreeBSD:15:latest | 6.2.0 | 6.2.0 | n/a | 5.9.1 | 5.9.1 |
| FreeBSD:15:quarterly | 6.2.0 | 6.2.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 6.2.0 | 6.2.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>=61.2: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Test 1
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=0,1: devel/py-pytest-xdist
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pyfakefs-6.2.0.tar.gz | 228273 | e59a36db447bf509ce9c97ab3d1510c08cc51895c5311325a560a5e5b5dc1940 |
Master sites 1
- PYPI