devel/py-pytest-examples 0.0.18
Py.test plugin for testing examples in docstrings and markdown files
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 39.4 KiB, 173.3 KiB installed
Description
Pytest plugin for testing Python code examples in docstrings and markdown files.
pytest-examples can: * lint code examples using ruff and black * run code examples * run code examples and check print statements are inlined correctly in the code
It can also update code examples in place to format them and insert or update print statements.
Install
As a binary package — by origin, or by package name:
pkg install devel/py-pytest-examples
pkg install py312-pytest-examples
From the ports tree:
cd /usr/ports/devel/py-pytest-examples/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-pytest-examples>0:devel/py-pytest-examples
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.0.18 | 0.0.18 | - | 0.0.13 | 0.0.18 |
| FreeBSD:14:quarterly | 0.0.18 | 0.0.18 | n/a | 0.0.13 | 0.0.18 |
| FreeBSD:15:latest | 0.0.18 | 0.0.18 | n/a | 0.0.13 | 0.0.13 |
| FreeBSD:15:quarterly | 0.0.18 | 0.0.18 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.0.18 | 0.0.18 | 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 3
${PYTHON_PKGNAMEPREFIX}black>=23: devel/py-black${PYTHON_PKGNAMEPREFIX}pytest>=7: devel/py-pytest${PYTHON_PKGNAMEPREFIX}ruff>=0.5.0: devel/py-ruff
Test 3
${PYTHON_PKGNAMEPREFIX}coverage>=0: devel/py-coverage${PYTHON_PKGNAMEPREFIX}pytest-pretty>0: devel/py-pytest-pretty${PYTHON_PKGNAMEPREFIX}ruff>=0.5.0: devel/py-ruff
The full lists below include those, and their dependencies in turn.
All 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
All run dependencies 24
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/py-black
- devel/py-click
- devel/py-colorama
- 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-ruff
- devel/readline
- lang/python312
- lang/python315
- math/mpdecimal
- print/indexinfo
- textproc/expat2
- textproc/py-pygments
- textproc/py-regex
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| pytest_examples-0.0.18.tar.gz | 21237 | 9a464f007f805b113677a15e2f8942ebb92d7d3eb5312e9a405d018478ec9801 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.