astropy breaking changes
Updated December 4, 2026
On this page
Latest version 8.0.3, released November 17, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 7.0.0 to 8.0.0: 115 breaking changes in 1 version.
- From 6.0.0 to 8.0.0: 225 breaking changes in 2 versions.
astropy 8.0.0 breaking changes
- Removed
Users on older NumPy must upgrade; minimum NumPy is now 2.0. github.com - Removed
astropy.config.set_temp_cache
Cache and config directory defaults changed to XDG locations in astropy 8.0.0 github.com - Removed
astropy.cosmology.connect
Import cosmology classes and functions directly from astropy.cosmology. github.com - Removed
astropy.cosmology.core
Import cosmology classes and functions directly from astropy.cosmology. github.com - Removed
astropy.cosmology.flrw
Import cosmology classes and functions directly from astropy.cosmology. github.com - Removed
astropy.cosmology.funcs
Import cosmology classes and functions directly from astropy.cosmology. github.com - Removed
astropy.cosmology.parameter
Import cosmology classes and functions directly from astropy.cosmology. github.com - Removed
astropy.table.np_utils
Import TableMergeError from astropy.table instead. github.com - Removed
astropy.tests.command
The module deprecated in v6.0 is gone. github.com - Removed
astropy.utils.misc.is_path_hidden
Deprecated helpers removed from astropy.utils.misc. github.com - Removed
astropy.utils.misc.walk_skip_hidden
Deprecated helpers removed from astropy.utils.misc. github.com - Removed
fits2bitmap
Use vmin and vmax options instead of min_cut and max_cut. github.com - Removed
Ob0
Pass Ob0=0 instead of Ob0=None to indicate zero baryonic matter density. github.com - Removed
simple_norm
Use vmin and vmax keywords instead of min_cut and max_cut. github.com - Renamed
astropy.io.votable.dataorigin.editor
The ivoid and editor terms were renamed to ivoid_data and journal. github.com - Renamed
astropy.io.votable.dataorigin.ivoid
The ivoid and editor terms were renamed to ivoid_data and journal. github.com - Behavior changed
The dev and dev_all extras were moved to PEP 735 groups and are no longer installable as extras. github.com - Behavior changed
astropy.config.get_cache_dir
The default cache and config locations moved to XDG paths (for example $XDG_CACHE_HOME/astropy). Users relying on $HOME/.astropy must adjust. github.com - Behavior changed
astropy.config.get_cache_dir_path
The default cache and config locations moved to XDG paths. Users relying on the old locations must adjust. github.com - Behavior changed
astropy.config.get_config_dir
The default config location moved to XDG paths. Users relying on the old locations must adjust. github.com - Behavior changed
astropy.config.get_config_dir_path
The default config location moved to XDG paths. Users relying on the old locations must adjust. github.com - Behavior changed
astropy.convolution.convolve
Edge handling for boundary='fill' with NaN fill now matches convolve_fft, changing results near edges. github.com - Behavior changed
astropy.coordinates.LSR
Converting v_bary to a Quantity now requires the .xyz attribute instead of .d_xyz. github.com - Behavior changed
astropy.io.fits.open
Logical columns with NULL values now emit a warning unless logical_as_bytes is set; variable-length logical columns use S1 bytes when logical_as_bytes is True. github.com - Behavior changed
astropy.io.registry.help
The help methods now raise an exception when Python runs in optimized mode. github.com - Behavior changed
astropy.utils.data
Functions that only return a cache path no longer guarantee the directory exists. github.com - Behavior changed
astropy.wcs.wcsapi.BaseLowLevelWCS
No warning is emitted when neither side has an observer; warnings remain when only one has observer information. github.com - Default changed
astropy.constants
Default constants now come from CODATA 2022. Use the astropyconst80 science state to keep CODATA 2018 with IAU 2015 values. github.com - Default changed
strip_spaces
The strip_spaces option now defaults to True; set it to False to keep the old behavior. github.com - Configuration changed
Publishing moved to PyPI Trusted Publisher in astropy 8.0.0 github.com - Configuration changed
astropy.wcs.high_level_objects_to_values
serialized_classes is now optional and treated as False when absent. github.com - Signature changed
astropy.config.get_cache_dir
Was def get_cache_dir(rootname: str = 'astropy') -> str; now def get_cache_dir(rootname: str = 'astropy', *, ensure_exists: bool = True) -> str. pypi.org - Signature changed
astropy.config.get_cache_dir_path
Was def get_cache_dir_path(rootname: str = 'astropy') -> Path; now def get_cache_dir_path(rootname: str = 'astropy', *, ensure_exists: bool = True) -> Path. pypi.org - Signature changed
astropy.config.get_config_dir
Was def get_config_dir(rootname: str = 'astropy') -> str; now def get_config_dir(rootname: str = 'astropy', *, ensure_exists: bool = True) -> str. pypi.org - Signature changed
astropy.config.get_config_dir_path
Was def get_config_dir_path(rootname: str = 'astropy') -> Path; now def get_config_dir_path(rootname: str = 'astropy', *, ensure_exists: bool = True) -> Path. pypi.org - Signature changed
astropy.config.paths.get_cache_dir
Was def get_cache_dir(rootname: str = 'astropy') -> str; now def get_cache_dir(rootname: str = 'astropy', *, ensure_exists: bool = True) -> str. pypi.org - Signature changed
astropy.config.paths.get_cache_dir_path
Was def get_cache_dir_path(rootname: str = 'astropy') -> Path; now def get_cache_dir_path(rootname: str = 'astropy', *, ensure_exists: bool = True) -> Path. pypi.org - Signature changed
astropy.config.paths.get_config_dir
Was def get_config_dir(rootname: str = 'astropy') -> str; now def get_config_dir(rootname: str = 'astropy', *, ensure_exists: bool = True) -> str. pypi.org - Signature changed
astropy.config.paths.get_config_dir_path
Was def get_config_dir_path(rootname: str = 'astropy') -> Path; now def get_config_dir_path(rootname: str = 'astropy', *, ensure_exists: bool = True) -> Path. pypi.org - Signature changed
astropy.config.tests.test_concurrency.closure_base
Was def closure_base(ctx_manager: type[_SetTempPath], *, directory: Path, barrier: Barrier) -> Result[Path]; now def closure_base(dirtype: _DirType, *, directory: Path, barrier: Barrier) -> Result[Path]. pypi.org - Signature changed
astropy.config.tests.test_concurrency.test_nesting
Was def test_nesting(cm_out: type[_SetTempPath], cm_in: type[_SetTempPath], tmp_path: Path); now def test_nesting(dt_out: _DirType, dt_in: _DirType, tmp_path: Path). pypi.org - Signature changed
astropy.config.tests.test_concurrency.test_set_temp_dir
Was def test_set_temp_dir(ctx_manager, tmp_path); now def test_set_temp_dir(dirtype, tmp_path). pypi.org - Signature changed
astropy.config.tests.test_configs.test_env_variables_missing_dir
Was def test_env_variables_missing_dir(monkeypatch, tmp_path, env_var, func); now def test_env_variables_missing_dir(monkeypatch, tmp_path, dirtype). pypi.org - Signature changed
astropy.config.tests.test_configs.test_env_variables_missing_subdir_and_default
Was def test_env_variables_missing_subdir_and_default(monkeypatch, tmp_path, env_var, func); now def test_env_variables_missing_subdir_and_default(monkeypatch, tmp_path_factory, dirtype: _DirType, setup). pypi.org - Signature changed
astropy.config.tests.test_configs.test_env_variables_setup_file_exists
Was def test_env_variables_setup_file_exists(monkeypatch, tmp_path, env_var, func); now def test_env_variables_setup_file_exists(monkeypatch, tmp_path, dirtype). pypi.org - Signature changed
astropy.config.tests.test_configs.test_set_temp_config
Was def test_set_temp_config(tmp_path); now def test_set_temp_config(tmp_path, dirtype). pypi.org - Signature changed
astropy.config.tests.test_configs.test_xdg_variables
Was def test_xdg_variables(monkeypatch, tmp_path, env_var, func); now def test_xdg_variables(monkeypatch, tmp_path, dirtype). pypi.org - Signature changed
astropy.coordinates.custom_stokes_symbol_mapping
Was def custom_stokes_symbol_mapping(mapping: dict[int, StokesSymbol], replace: bool = False) -> None; now def custom_stokes_symbol_mapping(mapping: dict[int, StokesSymbol], replace: bool = False) -> Generator[None, None, None]. pypi.org - Signature changed
astropy.coordinates.Galactocentric
Converting galcen_v_sun or v_bary to a Quantity now requires the .xyz attribute instead of .d_xyz. github.com - Signature changed
astropy.coordinates.polarization.custom_stokes_symbol_mapping
Was def custom_stokes_symbol_mapping(mapping: dict[int, StokesSymbol], replace: bool = False) -> None; now def custom_stokes_symbol_mapping(mapping: dict[int, StokesSymbol], replace: bool = False) -> Generator[None, None, None]. pypi.org
And 65 more in this version. Sign up to see every change
astropy 7.0.0 breaking changes
- Removed
_ExtensionHDU
_ExtensionHDU, _NonstandardExtHDU, (Bin)Table.update and the tile_size argument for CompImageHDU are removed; invalid tile_shape now raises an error. github.com - Removed
astropy.io.fits.hdu.compressed.compress_image_data
Low-level compression functions are only available at the qualified _tiled_compression path now. github.com - Removed
astropy.visualization.np
The unintended NumPy export at astropy.visualization.np is removed. github.com - Removed
BaseCoordinateFrame.get_frame_attr_names
BaseCoordinateFrame.get_frame_attr_names() is removed. Use get_frame_attr_defaults() instead. github.com - Removed
compat.override__dir__
The deprecated compat.override__dir__() utility is removed. github.com - Removed
CoordinateHelper.grid_lines_kwargs
Attributes grid_lines_kwargs, grid_lines, lblinfo, lbl_world and minor_frequency access is removed without deprecation. github.com - Removed
coordinates.get_moon
The deprecated coordinates.get_moon() function has been removed. Use coordinates.get_body("moon") instead. github.com - Removed
cosmology.utils
The deprecated cosmology.utils module is removed. Import public API directly from the cosmology module. github.com - Removed
LogStretch.exp
Deprecated exp attribute of log and power-dist stretches and power attribute of PowerStretch are removed; use a instead. github.com - Removed
PowerStretch.power
The power attribute of PowerStretch is removed; use the a attribute instead. github.com
And 100 more in this version. Sign up to see every change
astropy 6.0.0 breaking changes
- Removed
astropy.config.ConfigurationMissingWarning
The deprecated ConfigurationMissingWarning class was removed with no replacement; stop using it. github.com - Removed
astropy.config.update_default_config
The deprecated update_default_config function was removed with no replacement; stop using it. github.com - Removed
astropy.convolution.DiscretizationError
Code catching DiscretizationError must catch ValueError instead. github.com - Removed
astropy.coordinates.angle_utilities
Use the functions from angle_formats instead. github.com - Removed
astropy.cosmology.core
Deprecated import paths from astropy.cosmology.core were removed. github.com - Removed
astropy.cosmology.utils.inf_like
These deprecated helpers were removed with no replacement. github.com - Removed
astropy.cosmology.utils.vectorize_if_needed
These deprecated helpers were removed with no replacement. github.com - Removed
astropy.io.ascii.tests.common.raises
Use pytest.raises instead. github.com - Removed
astropy.io.misc.asdf
Use the asdf-astropy package instead. github.com - Removed
astropy.modeling.fitting._fitter_to_model_params
Deprecated private fitting helpers were removed. github.com
And 80 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.