Skip to content

Commit d897861

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 2c08ba1 commit d897861

95 files changed

Lines changed: 52 additions & 54 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MANIFEST.in‎

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
recursive-include healpy/data *.fits
2-
recursive-include healpy/data *_cmap.dat
3-
recursive-include healpy/test/data *
4-
exclude healpy/test/data/ipython*
1+
recursive-include test *
2+
exclude test/data/ipython*
53
exclude cextern/cfitsio/*pdf cextern/cfitsio/*ps cextern/cfitsio/*doc cextern/cfitsio/*tex
64
prune cextern/cfitsio/docs
75
exclude *.so
86
exclude *.a
97
exclude .gitignore .gitmodules clean.sh
108
include COPYING CITATION INSTALL.rst README.rst MANIFEST.in CHANGELOG.rst run_pykg_config.py
11-
include healpy/src/_healpy_utils.h
12-
include healpy/src/_healpy_hotspots_lib.h
13-
include healpy/src/_line_integral_convolution_lib.h
14-
include healpy/src/_query_disc.cpp
15-
include healpy/src/_sphtools.cpp
16-
include healpy/src/_pixelfunc.cpp
17-
include healpy/src/_masktools.cpp
18-
include healpy/src/_hotspots.cpp
19-
include healpy/src/_line_integral_convolution.cpp
20-
include healpy/src/_common.pxd
21-
include healpy/src/_query_disc.pyx
22-
include healpy/src/_sphtools.pyx
23-
include healpy/src/_pixelfunc.pyx
24-
include healpy/src/_masktools.pyx
25-
include healpy/src/_hotspots.pyx
26-
include healpy/src/_line_integral_convolution.pyx
9+
include src/_healpy_utils.h
10+
include src/_healpy_hotspots_lib.h
11+
include src/_line_integral_convolution_lib.h
12+
include src/_query_disc.cpp
13+
include src/_sphtools.cpp
14+
include src/_pixelfunc.cpp
15+
include src/_masktools.cpp
16+
include src/_hotspots.cpp
17+
include src/_line_integral_convolution.cpp
18+
include src/_common.pxd
19+
include src/_query_disc.pyx
20+
include src/_sphtools.pyx
21+
include src/_pixelfunc.pyx
22+
include src/_masktools.pyx
23+
include src/_hotspots.pyx
24+
include src/_line_integral_convolution.pyx

‎doc/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# If your extensions are in another directory, add it here. If the directory
1818
# is relative to the documentation root, use os.path.abspath to make it
1919
# absolute, like shown here.
20-
sys.path.append(os.path.abspath("."))
20+
sys.path.append(os.path.abspath("../lib/healpy"))
2121

2222
# General configuration
2323
# ---------------------

‎doc/create_images.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
hp.mollview(m, nest=False, xsize=SIZE, title="Mollview image RING")
1313
plt.savefig("static/moll_nside32_ring.png", dpi=DPI)
1414

15-
wmap_map_I = hp.read_map("../healpy/test/data/wmap_band_imap_r9_7yr_W_v4.fits")
15+
wmap_map_I = hp.read_map("../test/data/wmap_band_imap_r9_7yr_W_v4.fits")
1616

1717
hp.mollview(
1818
wmap_map_I,
@@ -28,7 +28,7 @@
2828

2929
plt.savefig("static/wmap_histeq_ecl.png", dpi=DPI)
3030
mask = hp.read_map(
31-
"../healpy/test/data/wmap_temperature_analysis_mask_r9_7yr_v4.fits"
31+
"../test/data/wmap_temperature_analysis_mask_r9_7yr_v4.fits"
3232
).astype(np.bool_)
3333
wmap_map_I_masked = hp.ma(wmap_map_I)
3434
wmap_map_I_masked.mask = np.logical_not(mask)

‎healpy/test/conftest.py‎

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

conftest.py renamed to lib/healpy/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
import numpy as np
2+
3+
14
def pytest_configure(config):
5+
np.set_printoptions(legacy="1.13")
6+
27
config.option.astropy_header = True
38
try:
49
from pytest_astropy_header.display import PYTEST_HEADER_MODULES

0 commit comments

Comments
 (0)