devel/py-inline-snapshot 0.35.4 FreeBSD
Create and update inline snapshots in your Python code
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
c230263625- License
- MIT
- Categories
- devel, python
- Package size
- 207.6 KiB, 1052.2 KiB installed
Description
Golden master/snapshot/approval testing library which puts the values right into your source code.
Key Features:
* Intuitive Semantics: snapshot(x) mirrors x for easy understanding. * Versatile Comparison Support: Equipped with x == snapshot(...), x <= snapshot(...), x in snapshot(...), and snapshot(...)[key]. * Enhanced Control Flags: Utilize various flags for precise control of which snapshots you want to change. * Preserved Black Formatting: Retains formatting consistency with Black formatting. * External File Storage: Store snapshots externally using outsource(data). * Seamless Pytest Integration: Integrated seamlessly with pytest for effortless testing. * Customizable: code generation can be customized with @customize_repr * Nested Snapshot Support: snapshots can contain other snapshots * Fuzzy Matching: Incorporate dirty-equals for flexible comparisons within snapshots. * Dynamic Snapshot Content: snapshots can contain non-constant values * Comprehensive Documentation: Access detailed documentation for complete guidance.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-inline-snapshot | 0.35.4 |
| OpenBSD | devel/py-inline-snapshot | 0.35.3 |
| NetBSD | devel/py-inline-snapshot | 0.35.4 |
| DragonFly | devel/py-inline-snapshot | 0.20.8 |
| MidnightBSD | devel/py-inline-snapshot | 0.34.1 |
Install
Binary package:
pkg install py312-inline-snapshot
From the ports tree:
cd /usr/ports/devel/py-inline-snapshot/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-inline-snapshot>0:devel/py-inline-snapshot
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.35.4 | 0.35.4 | - | 0.20.8 | 0.35.4 |
| FreeBSD:14:quarterly | 0.35.4 | 0.35.4 | n/a | 0.20.8 | 0.35.4 |
| FreeBSD:15:latest | 0.35.4 | 0.35.4 | n/a | 0.20.8 | 0.20.8 |
| FreeBSD:15:quarterly | 0.35.4 | 0.35.4 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.35.4 | 0.35.4 | 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 1
${PYTHON_PKGNAMEPREFIX}hatchling>0: devel/py-hatchling
Runtime 5
${PYTHON_PKGNAMEPREFIX}asttokens>=2.0.5: devel/py-asttokens${PYTHON_PKGNAMEPREFIX}executing>=2.2.0: devel/py-executing${PYTHON_PKGNAMEPREFIX}pytest>=8.3.4: devel/py-pytest${PYTHON_PKGNAMEPREFIX}rich>=13.7.1: textproc/py-rich${PYTHON_PKGNAMEPREFIX}typing-extensions>0: devel/py-typing-extensions
Test 8
${PYTHON_PKGNAMEPREFIX}hypothesis>=6.75.5: devel/py-hypothesis${PYTHON_PKGNAMEPREFIX}isort>0: devel/py-isort${PYTHON_PKGNAMEPREFIX}mypy>=1.2.0: devel/py-mypy${PYTHON_PKGNAMEPREFIX}pydantic2>=1: devel/py-pydantic2${PYTHON_PKGNAMEPREFIX}pyright>=1.1.359: devel/py-pyright${PYTHON_PKGNAMEPREFIX}pytest-freezer>=0.4.9: devel/py-pytest-freezer${PYTHON_PKGNAMEPREFIX}pytest-mock>=3.10.0: devel/py-pytest-mock${PYTHON_PKGNAMEPREFIX}pytest-xdist>=3.6.1,1: devel/py-pytest-xdist
The full lists below include those, and their dependencies in turn.
Build dependencies 19
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-build
- devel/py-hatchling
- devel/py-installer
- devel/py-packaging
- devel/py-pathspec
- devel/py-pluggy
- devel/py-pyproject-hooks
- devel/py-trove-classifiers
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-tomlkit
Run dependencies 30
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-asttokens
- devel/py-black
- devel/py-click
- devel/py-colorama
- devel/py-dirty-equals
- devel/py-executing
- devel/py-iniconfig
- devel/py-mypy_extensions
- devel/py-packaging
- devel/py-pathspec
- devel/py-platformdirs
- devel/py-pluggy
- devel/py-pytest
- devel/py-pytokens
- devel/py-typing-extensions
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-markdown-it-py
- textproc/py-mdurl
- textproc/py-pygments
- textproc/py-regex
- textproc/py-rich
No port depends on this one.
Configuration
Options name: devel_inline-snapshot
| Option | Default | Description |
|---|---|---|
| BLACK | on | Format generated code with Black |
| DIRTY-EQUALS | on |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| inline_snapshot-0.35.4.tar.gz | 2.537089e+06 | 82432a58b7ea77a172515f5024cd26fdea8dc0f873c7a4251e4e0471a914db14 |
Master sites 1
- PYPI