Skip to content

Commit 70ffab6

Browse files
musicinmybrainIcxolu
authored andcommitted
Exclude some unnecessary files from the crate
Exclude from the published crate the contents of `.github/` (CI workflows, etc.) and other files that are only useful for upstream development, not for crate users (`.gitignore`, `codecov.yml`, `x.py`). This slightly slims down the crate. This is also helpful downstream, e.g. in Fedora, where a proposed `rust-numpy-devel` package would have an automatically-generated dependency on `/usr/bin/python3` if `x.py` is not excluded. For now, tests and benchmarks are both still included in the published crate.
1 parent 283f122 commit 70ffab6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ repository = "https://github.com/PyO3/rust-numpy"
1313
categories = ["api-bindings", "development-tools::ffi", "science"]
1414
keywords = ["python", "numpy", "ffi", "pyo3"]
1515
license = "BSD-2-Clause"
16+
exclude = [
17+
".github/*",
18+
".gitignore",
19+
"codecov.yml",
20+
"x.py",
21+
]
1622

1723
[dependencies]
1824
half = { version = "2.0", default-features = false, optional = true }

0 commit comments

Comments
 (0)