BSD Ports

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

SystemPortVersion
FreeBSDfilesystems/py-pyfakefs6.2.0
DragonFlyfilesystems/py-pyfakefs5.8.0
MidnightBSDfilesystems/py-pyfakefs5.7.1_1
HardenedBSDfilesystems/py-pyfakefs6.2.0
GhostBSDfilesystems/py-pyfakefs5.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest6.2.06.2.0-5.9.16.2.0
FreeBSD:14:quarterly6.2.06.2.0n/a5.9.16.2.0
FreeBSD:15:latest6.2.06.2.0n/a5.9.15.9.1
FreeBSD:15:quarterly6.2.06.2.0n/an/an/a
FreeBSD:16:latest6.2.06.2.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Test 1

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
FileSizeSHA256
pyfakefs-6.2.0.tar.gz228273e59a36db447bf509ce9c97ab3d1510c08cc51895c5311325a560a5e5b5dc1940
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
bc42b5f6a9 Po-Chuan Hsieh filesystems/py-pyfakefs: Update to 6.2.0
Changes: https://github.com/pytest-dev/pyfakefs/releases