# Buildsheet autogenerated by ravenadm tool -- Do not edit.
NAMEBASE= python-xml2rfc
VERSION= 3.35.0
KEYWORDS= python
VARIANTS= v14 v15
SDESC[v14]= Request For Comment authoring with XML (3.14)
SDESC[v15]= Request For Comment authoring with XML (3.15)
HOMEPAGE= https://github.com/ietf-tools/xml2rfc
CONTACT= Python_Automaton[python@ravenports.com]
DOWNLOAD_GROUPS= main
SITES[main]= PYPIWHL/73/82/06a6a7bd7c44ebd62df9b1a95904b8cf0a8f8c823ab30dda7c68fcd699d2
DISTFILE[1]= xml2rfc-3.35.0-py3-none-any.whl:main
DIST_SUBDIR= python-src
DF_INDEX= 1
SPKGS[v14]= single
SPKGS[v15]= single
OPTIONS_AVAILABLE= PY314 PY315
OPTIONS_STANDARD= none
VOPTS[v14]= PY314=ON PY315=OFF
VOPTS[v15]= PY314=OFF PY315=ON
DISTNAME= xml2rfc-3.35.0.dist-info
GENERATED= yes
[PY314].RUN_DEPENDS_ON= python-platformdirs:single:v14
python-ConfigArgParse:single:v14
python-google-i18n-address:single:v14
python-intervaltree:single:v14
python-Jinja2:single:v14
python-lxml:single:v14
python-natsort:single:v14
python-pycountry:single:v14
python-PyYAML:single:v14
python-requests:single:v14
python-wcwidth:single:v14
[PY314].USES_ON= python:v14,wheel
[PY315].RUN_DEPENDS_ON= python-platformdirs:single:v15
python-ConfigArgParse:single:v15
python-google-i18n-address:single:v15
python-intervaltree:single:v15
python-Jinja2:single:v15
python-lxml:single:v15
python-natsort:single:v15
python-pycountry:single:v15
python-PyYAML:single:v15
python-requests:single:v15
python-wcwidth:single:v15
[PY315].USES_ON= python:v15,wheel
[FILE:3030:descriptions/desc.single]
[image]
[Release]
[License]
[![PyPI - Version]](https://pypi.org/project/xml2rfc/)
[![PyPI - Status]](https://pypi.org/project/xml2rfc/)
[![PyPI - Format]](https://pypi.org/project/xml2rfc/)
##### Generate RFCs and IETF drafts from document source in XML according
to the IETF xml2rfc v2 and v3 vocabularies
- [Changelog]
- [Installation]
- [Docker container]
- [Updating xml2rfc]
- [Usage]
- [Contributing]
- [Getting Started]
- [Git Cloning Tips]
- [Docker Dev Environment]
- [Release Procedure]
---
### Introduction
The [IETF] uses a specific format for the standards and other documents it
publishes as [RFCs], and for the draft documents which are produced when
developing documents for publications. There exists a number of different
tools to facilitate the formatting of drafts and RFCs according to the
existing rules, and this tool, **xml2rfc**, is one of them. It takes as
input an xml file that contains the text and meta-information about author
names etc., and transforms it into suitably formatted output. The input xml
file should follow the grammars in [RFC7749] *(for v2 documents)* or
[RFC7991] *(for v3 documents)*.
[RFCXML vocabulary reference] is available at [authors.ietf.org].
**xml2rfc** provides a variety of output formats. See the command line help
for a full list of formats. It also provides conversion from v2 to v3, and
can run the [preptool] on its input.
### Installation
`xml2rfc` is available as Python package and container image (see
[Docker-container-usage]).
You can install the python package with the following command:
`sh
pip install xml2rfc
`
If you're using [pipx], you can install `xml2rfc` with the following
command:
`sh
pipx install xml2rfc
`
`xml2rfc` also provides `pdf` extra package to install required packages
required for PDF file generation.
See [next section] about additional requirements for PDF generation.
To install `xml2rfc` with PDF generation support run:
```sh
pip install "xml2rfc[pdf]"
```
To install `pdf` extra with `pipx` run:
```sh
pipx install "xml2rfc[pdf]"
```
#### Installation of support libraries for the PDF-formatter
In order to generate PDFs, **xml2rfc** uses the [WeasyPrint] module, which
depends on external libraries that must be installed as native packages on
your platform, separately from the **xml2rfc** install.
1. First, install the **Pango**, and other required libraries on your
system. See installation instructions on the [WeasyPrint Docs].
2. Next, install WeasyPrint python modules using pip.
```sh
pip install "xml2rfc[pdf]"
```
3. Finally, install the required fonts:
* Download latest fonts from [xml2rfc-fonts].
* In the **Assets** section, download either the `tar.gz` or the `zip`
archive.
* Extract the contents of the downloaded `xml2rfc-fonts` archive.
* Install the fonts found in the `noto` and `roboto_mono` directories to
your operating system.
With these installed and available to **xml2rfc**, the `--pdf` switch will
be enabled.
[FILE:121:distinfo]
edc214592380463f4ac69fdaaf9aba99750bb9f6c6fcff2149de4bb59568c3c8 376756 python-src/xml2rfc-3.35.0-py3-none-any.whl