No description
Find a file
Fabio Valentini 228efa58fd
crate: improve determining project name/version from directory name
If the heuristics fail because the project uses a weird naming or
versioning scheme or if the directory name does not match the
"{project}-{version}" pattern. This is mostly the case for "workspace"
proejcts.

In the case the heuristics fail, the version can be overriden on the
command line.
2023-11-29 18:34:08 +01:00
docs
rust2rpm crate: improve determining project name/version from directory name 2023-11-29 18:34:08 +01:00
.gitignore
CHANGELOG.md Release 25.0.2 2023-11-18 01:07:31 +01:00
LICENSE
MANIFEST.in
pyproject.toml
README.md
requirements.txt Release 25.0.2 2023-11-18 01:07:31 +01:00
setup.cfg tests: update test fixtures for cargo2rpm v0.1.13 2023-11-17 23:27:54 +01:00
tox.ini

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.