A generator for Rust/Cargo ebuilds written in Python
Project description
- License:
MIT
- Homepage:
pycargoebuild is a generator for ebuilds using the Cargo infrastructure of Rust language. It is primarily meant to aid in keeping the list of CRATES and their LICENSE up-to-date. It is a rewrite of the cargo-ebuild tool in Python, with no actual dependency on Rust.
pycargoebuild reads Cargo.toml and Cargo.lock files in order to obtain the package’s metadata and dependency list, respectively. Then it fetches all dependent crates into DISTDIR and reads their Cargo.toml files to construct the complete list of licenses. The resulting data can either be used to construct a new ebuild from a template or to update the values of CRATES and LICENSE in an existing ebuild.
Usage
To create a new ebuild, run:
pycargoebuild <package-directory>
where package-directory is the directory containing Cargo.toml. This creates an ebuild file named after the package name and version in the current directory, and outputs its name.
To update an existing ebuild, use instead:
pycargoebuild -i <current-file>.ebuild <package-directory>
Note that the existing file must contain both CRATES variable and LICENSE+= assignment like the following:
# Dependent crate licenses LICENSE+="..."
It is also possible to explicitly specify the output filename using the -o option.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pycargoebuild-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea849e9d69f4dd7e549d0b8bd6b51e791feec011508bc490d9421b0b2769c1ea |
|
MD5 | 4cbd7ed2fcd57d28010104d38203b936 |
|
BLAKE2b-256 | 1e54fbef505227cb7d7a6a70797d952bdb9f8f5d434c9b82a881f4f14aec8367 |