Skip to content

Commit a46116f

Browse files
committed
Exclude tests from installation
This reduces the size of the installation by a few MB, making Healpy a little bit more cloud-friendly. See astropy/astropy#16152.
1 parent 2d31353 commit a46116f

35 files changed

Lines changed: 16 additions & 18 deletions

‎MANIFEST.in‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
recursive-include healpy/data *.fits
22
recursive-include healpy/data *_cmap.dat
3-
recursive-include healpy/test/data *
4-
exclude healpy/test/data/ipython*
3+
recursive-include tests *.py
4+
recursive-include tests/data *
5+
exclude tests/data/ipython*
56
exclude cfitsio/*pdf cfitsio/*ps cfitsio/*doc cfitsio/*tex
67
prune cfitsio/docs
78
exclude *.so

‎pyproject.toml‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@ include = ["healpy*"]
5757
[tool.setuptools.package-data]
5858
healpy = ["data/*.fits",
5959
"data/*_cmap.dat",
60-
"data/totcls.dat",
61-
"test/data/*.fits",
62-
"test/data/*.fits.gz",
63-
"test/data/*.sh"]
60+
"data/totcls.dat"]
6461

6562
[tool.setuptools.exclude-package-data]
6663
# Exclude C/C++/Cython source files from wheels.
@@ -71,7 +68,7 @@ healpy = ["data/*.fits",
7168
# Skip i686 builds.
7269
# Skip MUSL libc builds.
7370
skip = "pp* *_i686 *-musllinux_*"
74-
test-command = "pytest --doctest-plus --doctest-cython -v --pyargs healpy"
71+
test-command = "pytest --doctest-plus --doctest-cython -v tests --pyargs healpy"
7572
test-extras = ["test"]
7673

7774
[tool.cibuildwheel.linux]
@@ -86,4 +83,4 @@ write_to = "healpy/version.py"
8683

8784
[tool.pytest.ini_options]
8885
addopts = "--doctest-plus --doctest-cython -v"
89-
testpaths = "healpy"
86+
testpaths = "tests"
File renamed without changes.

healpy/test/data/anafast_3_11_config_test_anafast_nomask.par renamed to tests/data/anafast_3_11_config_test_anafast_nomask.par

File renamed without changes.

healpy/test/data/anafast_3_11_config_test_anafast_xspectra.par renamed to tests/data/anafast_3_11_config_test_anafast_xspectra.par

File renamed without changes.

healpy/test/data/cl_wmap_band_iqumap_r9_7yr_WVxspec_v4_udgraded32_II_lmax64_rmmono_3iter.fits renamed to tests/data/cl_wmap_band_iqumap_r9_7yr_WVxspec_v4_udgraded32_II_lmax64_rmmono_3iter.fits

File renamed without changes.

healpy/test/data/cl_wmap_band_iqumap_r9_7yr_W_v4_udgraded32_II_lmax64_rmmono_3iter.fits renamed to tests/data/cl_wmap_band_iqumap_r9_7yr_W_v4_udgraded32_II_lmax64_rmmono_3iter.fits

File renamed without changes.

healpy/test/data/cl_wmap_band_iqumap_r9_7yr_W_v4_udgraded32_II_lmax64_rmmono_3iter_nomask.fits renamed to tests/data/cl_wmap_band_iqumap_r9_7yr_W_v4_udgraded32_II_lmax64_rmmono_3iter_nomask.fits

File renamed without changes.

0 commit comments

Comments
 (0)