#poetry #installed #try #finder #sudo #install #package

bin+lib poetry_finder

Checks if poetry is already installed and will try installation otherwise

1 unstable release

0.7.0 May 3, 2023
0.6.0 May 3, 2023
0.5.0 May 3, 2023
0.4.0 May 2, 2023
0.1.0 May 2, 2023

#10 in #poetry

Download history 1/week @ 2024-09-17 11/week @ 2024-09-24

54 downloads per month

MIT license

7KB
126 lines

poetry_finder

This crate simply enables the user (with sudo rights) to install Poetry and all its dependencies (packages). If Poetry is already installed, it will be properly handeled.

It is assumed that the system on which the compiler runs is Debian-based.

poetry_finder in action

fn main() {
    
    use poetry_finder::run;

    // Password to check the sudo access
    let passwd = "password";
    if let Err(e) = run(passwd) {
        println!("{}", e);
        std::process::exit(1);
    }
    
}

lib.rs:

Checks if poetry is installed on the system. It is assumed that the system is debian-based distribution. if poetry is not installed, it will try installing it (along with its prerequisites).

Examples

/// Password to check the sudo access
let passwd = "password";
if let Err(e) = run(passwd) {
    println!("{}", e);
    std::process::exit(1);
}

No runtime deps