Skip to content

Commit

Permalink
exclude unnecessary files in package
Browse files Browse the repository at this point in the history
  • Loading branch information
eta077 committed Mar 28, 2022
1 parent e7dd7db commit 7ca0491
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use astro_rs::fits::HduList;
#[test]
fn test_hdu_list_from_bytes() -> Result<(), Box<dyn Error>> {
{
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)?;
Expand All @@ -17,7 +17,7 @@ fn test_hdu_list_from_bytes() -> Result<(), Box<dyn Error>> {
}

{
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)?;
Expand Down

0 comments on commit 7ca0491

Please sign in to comment.