Skip to content

Commit

Permalink
Rename project to 'heliport'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJaume committed Aug 5, 2024
1 parent a242426 commit 43f7783
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# heli-otr
# heliport
Rust port of HeLI-OTS
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"]
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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))?;
Expand Down

0 comments on commit 43f7783

Please sign in to comment.