No description
Find a file
Carl George bf705f2876 Omit SourceLicense tag when using vendor tarball
When using vendored dependencies, the licenses in the sources will
typically match the licenses in the binaries.  In this scenario the
SourceLicense tag can be omitteed since it should match the License tag.
2024-06-04 22:24:56 +00:00
docs
rust2rpm Omit SourceLicense tag when using vendor tarball 2024-06-04 22:24:56 +00:00
.gitignore
CHANGELOG.md conf: fix wrong indentation for Patch files listed as extra-patches 2024-06-04 17:38:28 +02:00
LICENSE
MANIFEST.in
pyproject.toml
README.md
requirements.txt
setup.cfg
tox.ini tox: add workaround for missing official Python 3.13 support in PyO3 2024-05-16 11:26:08 +02:00

rust2rpm

rust2rpm is a tool for automatically generating RPM spec files for Rust crates.

Testing

tox

Invoking tox will automatically run the test suite for all supported versions of Python. tox -- -vv can be used to show very verbose output from pytest.

The tox configuration also includes environments for running mypy (static analysis) and coverage (running tests and writing a test coverage report in HTML format).

pytest

The tests can also be run manually in a virtualenv:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt pytest
PYTHONPATH=. python3 -m pytest -vv
deactivate

The UPDATE_FIXTURES=1 environment variable can be set to rewrite the test fixtures for expected (!) changes in the spec file generator.

Documentation

Documentation for rust2rpm and its configuration file formats is available in the docs/ directory in AsciiDoc format. The included build script can be used to build man pages from the AsciiDoc sources with asciidoctor.