Skip to content

Commit 2665000

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 8d17561 commit 2665000

36 files changed

Lines changed: 16 additions & 28 deletions

‎MANIFEST.in‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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 test *
4+
exclude test/data/ipython*
55
exclude cextern/cfitsio/*pdf cextern/cfitsio/*ps cextern/cfitsio/*doc cextern/cfitsio/*tex
66
prune cextern/cfitsio/docs
77
exclude *.so

‎conftest.py‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎pyproject.toml‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ healpy = ["data/*.fits",
7171
# Skip i686 builds.
7272
# Skip MUSL libc builds.
7373
skip = "pp* *_i686 *-musllinux_*"
74-
test-command = "pytest --doctest-plus --doctest-cython -v --pyargs healpy"
74+
test-command = [
75+
"pytest --astropy-header-packages=astropy,cython --doctest-plus --doctest-cython --pyargs healpy",
76+
"pytest --astropy-header-packages=astropy,cython {project}/test"
77+
]
7578
test-extras = ["test"]
7679

7780
[tool.cibuildwheel.linux]
@@ -83,7 +86,3 @@ before-all = "brew install autoconf automake libtool libomp"
8386

8487
[tool.setuptools_scm]
8588
write_to = "healpy/version.py"
86-
87-
[tool.pytest.ini_options]
88-
addopts = "--doctest-plus --doctest-cython -v"
89-
testpaths = "healpy"
File renamed without changes.

healpy/test/data/anafast_3_11_config_test_anafast_nomask.par renamed to test/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 test/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 test/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 test/data/cl_wmap_band_iqumap_r9_7yr_W_v4_udgraded32_II_lmax64_rmmono_3iter.fits

File renamed without changes.

0 commit comments

Comments
 (0)