makedeb-srcinfo
makedeb-srcinfo
is a library for Rust and Python to parse makedeb-style .SRCINFO
files.
The library itself is written in Rust, and bindings for Python are made possible via PyO3 and Maturin.
Usage
Installation
You'll first need to install the library before using it. Installation instructions will change depending on if you're using the Rust or Python library:
Rust
Python
pip install makedeb-srcinfo
Using the library
The Rust and Python libraries are designed to look quite similar to each other, both interfaces use the same function/class names, and should only differ in how the languages themselves are designed.
Rust
See the documentation on Docs.rs for full usage instructions.
use SrcInfo;
use fs;
Python
Note Help is currently needed to get Python documentation automatically published on new releases. Please see https://github.com/makedeb/makedeb-srcinfo/issues/3 if you'd like to help.
#!/usr/bin/env python3
=
=
# Get the package base.
=
# Get any dependencies.
=