diff --git a/Cargo.toml b/Cargo.toml index 7d647dd..3baa5b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] -name = "heli_otr" +name = "heliport" version = "0.3.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] -name = "heli_otr" +name = "heliport" # use lib to be able to compile library from other rust crates # use cdylib to enable maturin linkage crate-type = ["lib", "cdylib"] diff --git a/README.md b/README.md index 2826f72..b590e08 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# heli-otr +# heliport Rust port of HeLI-OTS diff --git a/pyproject.toml b/pyproject.toml index 9a649ba..a8f672b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["maturin>=1.5,<2.0"] build-backend = "maturin" [project] -name = "heli_otr" +name = "heliport" requires-python = ">=3.8" classifiers = [ "Programming Language :: Rust", @@ -13,9 +13,9 @@ classifiers = [ dynamic = ["version"] [project.scripts] -heli = "heli_otr:cli_run" -heli-convert = "heli_otr:cli_convert" -heli-download = "heli_otr:cli_download" +heliport = "heliport:cli_run" +heliport-convert = "heliport:cli_convert" +heliport-download = "heliport:cli_download" [tool.maturin] features = ["pyo3/extension-module"] diff --git a/src/lib.rs b/src/lib.rs index dccb2f3..fb8327e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,7 +109,8 @@ pub fn cli_download() -> PyResult<()> { env_logger::Builder::from_env(Env::default().default_filter_or("info")).init(); let modulepath = module_path().expect("Error loading python module path"); let url = format!( - "https://github.com/ZJaume/heli-otr/releases/download/v{}", + "https://github.com/ZJaume/{}/releases/download/v{}", + env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION")); utils::download_file( @@ -148,7 +149,7 @@ pub fn cli_convert() -> PyResult<()> { } #[pymodule] -fn heli_otr(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> { +fn heliport(_py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_wrapped(wrap_pyfunction!(cli_run))?; m.add_wrapped(wrap_pyfunction!(cli_convert))?; m.add_wrapped(wrap_pyfunction!(cli_download))?;