print/py-preppy 5.2.1 FreeBSD
Preprocessor for Python
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD3CLAUSE
- Categories
- print, python
- Package size
- 50.1 KiB, 235.3 KiB installed
Description
Preppy is ReportLab's templating system. It has been in continuous production use since 2000.
It was released as open source code but never evangelized. We are putting it out on PyPI now because many of our solutions depend on it, and this makes it a lot easier to install (e.g. with a pip requirements file).
Preppy is a single Python module which should be placed directly on the path (i.e. you access it with 'import preppy'). The setup script does this, but it's just as effective to grab it from the repo and drop it into your project.
Preppy aims to be absolutely minimal. You embed Python expressions and control structures in your template. It compiles the template into a .pyc file. A preppy template is exactly equivalent to a Python function which accepts parameters and returns text output. We don't both with include functions, block nesting, filters or any other fancy stuff, because we already have a perfectly good language to do that in.
Preppy is just Python, so you get proper Python tracebacks, with the original line number in the .prep file; you can happily debug through calls to python, preppy, python and more preppy.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | print/py-preppy | 5.2.1 |
| DragonFly | print/py-preppy | 2.4.1_1 |
| MidnightBSD | print/py-preppy | 5.2.1 |
Install
Binary package:
pkg install py312-preppy
From the ports tree:
cd /usr/ports/print/py-preppy/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-preppy>0:print/py-preppy
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 | 5.2.1 | 5.2.1 | 2.4.1 | 2.4.1_1 | 5.2.1 |
| FreeBSD:14:quarterly | 5.2.1 | 5.2.1 | n/a | 2.4.1_1 | 5.2.1 |
| FreeBSD:15:latest | 5.2.1 | 5.2.1 | n/a | 2.4.1_1 | 2.4.1_1 |
| FreeBSD:15:quarterly | 5.2.1 | 5.2.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 5.2.1 | 5.2.1 | 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: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
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 |
|---|---|---|
| preppy-5.2.1.tar.gz | 58325 | a2c834d8864bbe3eef8d477cffac80559724507818ed21c9694107f1166743ae |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.