No description
Find a file
Fabio Valentini 07af5a7d18
add preliminary support for an epel8 target
The template for the "epel8" target is a stripped down version of
the "crate" template with conditionals for non-Red-Hat-distributions
removed.
2024-09-02 17:43:25 +02:00
docs conf: add settings for package URL and package Source 2024-03-30 18:50:43 +01:00
rust2rpm add preliminary support for an epel8 target 2024-09-02 17:43:25 +02:00
.gitignore tests: add two missing assert statements 2023-10-01 23:01:38 +02:00
CHANGELOG.md conf: fix wrong indentation for Patch files listed as extra-patches 2024-06-04 17:38:28 +02:00
LICENSE update LICENSE with year and update contributors 2023-02-15 20:30:08 +01:00
MANIFEST.in Translate SPDX licenses to Fedora license tags, warn about "/" 2018-08-16 16:16:02 +02:00
pyproject.toml drop support for Python 3.10 2023-10-04 11:32:35 +02:00
README.md Release 25.0.0 2023-10-10 02:58:08 +02:00
requirements.txt deps: require cargo2rpm >= 0.1.15 and update test fixtures 2023-12-07 15:05:23 +01:00
setup.cfg deps: require cargo2rpm >= 0.1.15 and update test fixtures 2023-12-07 15:05:23 +01:00
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.