No description
Find a file
Fabio Valentini 2177e6449b
Print an error and bail when using a vendor tarball for a library crate
Building a library-only crate against vendored dependencies is nonsense,
since the resulting package will not be able to ship anything.
2023-10-09 23:37:26 +02:00
docs docs: add docs for rust2rpm + config formats in man-friendly format 2023-10-09 22:18:40 +02:00
rust2rpm Print an error and bail when using a vendor tarball for a library crate 2023-10-09 23:37:26 +02:00
.gitignore tests: add two missing assert statements 2023-10-01 23:01:38 +02:00
CHANGELOG.md rename NEWS to CHANGELOG.md (it was markdown all along) 2023-10-04 11:31:51 +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 docs: add docs for rust2rpm + config formats in man-friendly format 2023-10-09 22:18:40 +02:00
requirements.txt generator: add mode and template for non-workspace projects 2023-10-06 16:48:49 +02:00
setup.cfg generator: add mode and template for non-workspace projects 2023-10-06 16:48:49 +02:00
tox.ini minor fixes and added type annotations to make mypy checks pass 2023-10-06 18:02:44 +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.

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 shows how to build man pages from the AsciiDoc source files with asciidoctor.