From cd9f892d51b5e78d5f911ed2bc9d915e32dc5b4f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 30 Jan 2017 23:21:21 +0100 Subject: [PATCH] rename cargo-deps.py to cargodeps.py To allow importing from outside. import cargo-deps doesn't really work. Signed-off-by: Igor Gnatenko --- cargo.attr | 6 +++--- cargo-deps.py => cargodeps.py | 0 test.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename cargo-deps.py => cargodeps.py (100%) diff --git a/cargo.attr b/cargo.attr index 9301429..06ad2cc 100644 --- a/cargo.attr +++ b/cargo.attr @@ -1,4 +1,4 @@ -%__cargo_provides %{_rpmconfigdir}/cargo-deps.py --provides -%__cargo_requires %{_rpmconfigdir}/cargo-deps.py --requires -%__cargo_conflicts %{_rpmconfigdir}/cargo-deps.py --conflicts +%__cargo_provides %{_rpmconfigdir}/cargodeps.py --provides +%__cargo_requires %{_rpmconfigdir}/cargodeps.py --requires +%__cargo_conflicts %{_rpmconfigdir}/cargodeps.py --conflicts %__cargo_path ^%{cargo_registry}/[^/]+/Cargo\\.toml$ diff --git a/cargo-deps.py b/cargodeps.py similarity index 100% rename from cargo-deps.py rename to cargodeps.py diff --git a/test.py b/test.py index 61aa9b6..0e26eb6 100644 --- a/test.py +++ b/test.py @@ -12,7 +12,7 @@ pub fn say_hello() { println!("Hello, World!"); } """ -DEPGEN = os.path.join(os.path.dirname(__file__), "cargo-deps.py") +DEPGEN = os.path.join(os.path.dirname(__file__), "cargodeps.py") @pytest.fixture