Metadata-Version: 2.1
Name: rust2rpm
Version: 28.0.0
Summary: Generate RPM packages for Rust crates
Author-email: Fedora Rust SIG <rust@lists.fedoraproject.org>
License: MIT
Project-URL: homepage, https://codeberg.org/rust2rpm/rust2rpm
Keywords: rpm,cargo,rust
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: System :: Software Distribution
Classifier: Topic :: Utilities
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cargo2rpm <0.4,>=0.3.0
Requires-Dist: jinja2
Requires-Dist: jsonschema
Requires-Dist: requests
Requires-Dist: termcolor
Requires-Dist: tqdm

# rust2rpm

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

## Development

### tox (recommended)

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

The tox configuration also includes environments for:

- `black` (check code formatting)
- `coverage` (run tests and generate coverage report in HTML format in `./htmlcov`)
- `fixtures` (run tests and update test fixtures if necessary)
- `mypy` (static analysis)
- `ruff` (linter)

### pytest

The tests can also be run manually in a virtualenv:

```shell
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.
