From 7ca04915406622825dc900eee042fd3757f40b72 Mon Sep 17 00:00:00 2001 From: eta077 Date: Mon, 28 Mar 2022 14:01:59 -0500 Subject: [PATCH] exclude unnecessary files in package --- Cargo.toml | 5 +++++ {assets => tests/assets}/M17/502nmos.fits | 0 {assets => tests/assets}/eagle_nebula/502nmos.fits | 0 tests/integration.rs | 4 ++-- 4 files changed, 7 insertions(+), 2 deletions(-) rename {assets => tests/assets}/M17/502nmos.fits (100%) rename {assets => tests/assets}/eagle_nebula/502nmos.fits (100%) diff --git a/Cargo.toml b/Cargo.toml index e4aebb6..b134cc4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,11 @@ description = "Astronomy utils" repository = "https://github.com/eta077/astro-rs" readme = "README.md" +exclude = [ + ".github", + "tests" +] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/assets/M17/502nmos.fits b/tests/assets/M17/502nmos.fits similarity index 100% rename from assets/M17/502nmos.fits rename to tests/assets/M17/502nmos.fits diff --git a/assets/eagle_nebula/502nmos.fits b/tests/assets/eagle_nebula/502nmos.fits similarity index 100% rename from assets/eagle_nebula/502nmos.fits rename to tests/assets/eagle_nebula/502nmos.fits diff --git a/tests/integration.rs b/tests/integration.rs index 1d75fb2..98fc133 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -7,7 +7,7 @@ use astro_rs::fits::HduList; #[test] fn test_hdu_list_from_bytes() -> Result<(), Box> { { - let fits_file = File::open("assets/eagle_nebula/502nmos.fits")?; + let fits_file = File::open("tests/assets/eagle_nebula/502nmos.fits")?; let mut fits_file_reader = BufReader::new(fits_file); let mut fits_bytes = Vec::new(); fits_file_reader.read_to_end(&mut fits_bytes)?; @@ -17,7 +17,7 @@ fn test_hdu_list_from_bytes() -> Result<(), Box> { } { - let fits_file = File::open("assets/M17/502nmos.fits")?; + let fits_file = File::open("tests/assets/M17/502nmos.fits")?; let mut fits_file_reader = BufReader::new(fits_file); let mut fits_bytes = Vec::new(); fits_file_reader.read_to_end(&mut fits_bytes)?;