chore(deps): update dependency astropy to v5.3.3 [security] #1417
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==5.1
->==5.3.3
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
GitHub Vulnerability Alerts
CVE-2023-41334
Summary
RCE due to improper input validation in TranformGraph().to_dot_graph function
Details
Due to improper input validation a malicious user can provide a command or a script file as a value to
savelayout
argument, which will be placed as the first value in a list of arguments passed tosubprocess.Popen
.https://github.com/astropy/astropy/blob/9b97d98802ee4f5350a62b681c35d8687ee81d91/astropy/coordinates/transformations.py#L539
Although an error will be raised, the command or script will be executed successfully.
PoC
Impact
code execution on the user's machine
Release Notes
astropy/astropy (astropy)
v5.3.3
Compare Source
===========================
Bug Fixes
astropy.coordinates
^^^^^^^^^^^^^^^^^^^
TransformGraph.to_dot_graph()
now throws an exception for invalidsavelayout
.astropy.cosmology
^^^^^^^^^^^^^^^^^
w0wzCDM
functions ininv_efunc
has been corrected to 3, from -3. [#15224]astropy.modeling
^^^^^^^^^^^^^^^^
filter_non_finite
keyword argument in a fitter call. Now when
filter_non_finite
is True,non-finite weights will also be filtered to prevent crashes in
LevMarLSQFitter
. [#15215]astropy.units
^^^^^^^^^^^^^
astropy.units.Quantity
's implementation ofnumpy.nanmedian()
,where for Numpy >= 1.25 an exception was raised for some array shapes and axis
combinations. [#15228]
Other Changes and Additions
v5.3.2
Compare Source
==========================
Bug Fixes
astropy.coordinates
^^^^^^^^^^^^^^^^^^^
-OO
flag. [#15037]astropy.nddata
^^^^^^^^^^^^^^
NDData
without masks or units. [#15082]astropy.units
^^^^^^^^^^^^^
np.power()
for instances ofQuantity
toallow any array as the second operand if all its elements have the same value. [#15101]
v5.3.1
Compare Source
==========================
Bug Fixes
astropy.cosmology
^^^^^^^^^^^^^^^^^
wowzCDM.de_density_scale
has been corrected to 3, from -3. [#14991]astropy.io.fits
^^^^^^^^^^^^^^^
Fix crash when a PrimaryHDU has a GROUPS keyword with a non-boolean value (i.e.
not a random-groups HDU). [#14998]
Fixed a bug that caused
Cutout2D
to not work correctly withCompImageHDU.section
[#14999]Fixed a bug that caused compressed images with TFORM missing the optional '1' prefix to not be readable. [#15001]
astropy.modeling
^^^^^^^^^^^^^^^^
astropy.nddata
^^^^^^^^^^^^^^
NDData.mask
, plus a fixfor arithmetic between masked and unmasked
NDData
objects. [#14995]astropy.table
^^^^^^^^^^^^^
order of rows within groups to not match the original table order when an indexed table
was grouped. [#14907]
astropy.units
^^^^^^^^^^^^^
v5.3
Compare Source
==========================
Bug Fixes
astropy.io.misc
^^^^^^^^^^^^^^^
astropy.io.misc.yaml
sodump()` with a numpy object array or
load()with YAML representing a Numpy object array both raise
TypeError``. This prevents problems like a segmentation fault. [#15373]astropy.io.votable
^^^^^^^^^^^^^^^^^^
convert_to_writable_filelike
whereGzipFile
was notclosed properly. [#15359]
astropy.units
^^^^^^^^^^^^^
In VOUnit, the spaces around the slash were removed in the formatting of
fractions, and fractional powers now also use the "**" operator. [#15282]
We now ensure that the unit
u.cgs.cm
is just an alias ofu.si.cm
,instead of a redefinition. This ensures that
u.Unit("cm") / u.cm
will reliably cancel to dimensionless (instead of some "cm / cm"). [#15368]
astropy.utils
^^^^^^^^^^^^^
Masked
,np.ptp
and the.ptp()
method now properly account forthe mask, ensuring the result is identical to subtracting the maximum and
minimum (with the same arguments). [#15380]
Other Changes and Additions
Compatibility with Python 3.12. [#14784]
Replaced the URL of
IETF_LEAP_SECOND_URL
because the original is nowdefunct and IETF now defers to IANA for such look-up. [#15421]
v5.2.2
Compare Source
==========================
Bug Fixes
astropy.io.ascii
^^^^^^^^^^^^^^^^
km/s/Mpc
now parse correctly as being equal tokm/(s.Mpc)
. [#14369]astropy.io.fits
^^^^^^^^^^^^^^^
FITSDiff
when table contains a VLA column with the Q type. [#14539]astropy.table
^^^^^^^^^^^^^
QTable
when aQuantity
input column is present and theunits
argument modifies the unit of that column. This now works as expected wherepreviously this caused an exception. [#14357]
astropy.units
^^^^^^^^^^^^^
km/s/Mpc
now parsecorrectly as being equal to
km/(s.Mpc)
. [#14369]astropy.wcs
^^^^^^^^^^^
not work correctly under certain conditions if they did not have
world_n_dim
and
pixel_n_dim
defined on them. [#14495]v5.2.1
Compare Source
==========================
Bug Fixes
astropy.coordinates
^^^^^^^^^^^^^^^^^^^
earth_location
attribute to give the correct result fora topocentric frame. [#14180]
astropy.cosmology
^^^^^^^^^^^^^^^^^
Golden. The scipy minimizer never used the bounds but silently accepted them.
In scipy v1.11.0.dev0+ an error is raised, so we now pass None as the bounds
to the minimizer. Users should not be affected by this change. [#14232]
astropy.io.fits
^^^^^^^^^^^^^^^
and written. [#13417]
astropy.units
^^^^^^^^^^^^^
numpy.histogram()
,numpy.histogram_bin_edges()
,numpy.histogram2d()
, andnumpy.histogramdd()
so that therange
argument must a compatibleinstance of
astropy.units.Quantity
if the other arguments are instances ofastropy.units.Quantity
. [#14213]astropy.visualization
^^^^^^^^^^^^^^^^^^^^^
Improved the performance of drawing WCSAxes grids by skipping some unnecessary
computations. [#14164]
Fixed WCSAxes sometimes triggering a NumPy RuntimeWarning when determining the
coordinate range of the axes. [#14211]
Other Changes and Additions
v5.2
Compare Source
==========================
Bug Fixes
astropy.io.ascii
^^^^^^^^^^^^^^^^
km/s/Mpc
now parse correctly as being equal tokm/(s.Mpc)
. [#14369]astropy.io.fits
^^^^^^^^^^^^^^^
FITSDiff
when table contains a VLA column with the Q type. [#14539]astropy.table
^^^^^^^^^^^^^
QTable
when aQuantity
input column is present and theunits
argument modifies the unit of that column. This now works as expected wherepreviously this caused an exception. [#14357]
astropy.units
^^^^^^^^^^^^^
km/s/Mpc
now parsecorrectly as being equal to
km/(s.Mpc)
. [#14369]astropy.wcs
^^^^^^^^^^^
not work correctly under certain conditions if they did not have
world_n_dim
and
pixel_n_dim
defined on them. [#14495]v5.1.1
Compare Source
==========================
API Changes
astropy.wcs
^^^^^^^^^^^
The
pixel
argument toastropy.visualization.wcsaxes.ticklabels.TickLabels.add
no longer does anything, is deprecated, and will be removed in a future
astropy version. It has been replaced by a new required
data
argument, whichshould be used to specify the data coordinates of the tick label being added.
This changes has been made because it is (in general) not possible to correctly
calculate pixel coordinates before Matplotlib is drawing a figure. [#12630]
Bug Fixes
astropy.coordinates
^^^^^^^^^^^^^^^^^^^
Fixed a bug that prevented
SkyOffsetFrame
instances to be pickled by addinga custom
__reduce__
method to the class (see issue #9249). [#13305]Fixed the check for invalid
Latitude
values for float32 values.Latitude
now accepts the float32 value of pi/2, which was rejectedbefore because a comparison was made using the slightly smaller float64 representation.
See issue #13708. [#13745]
astropy.io.ascii
^^^^^^^^^^^^^^^^
Fixed confusing chained exception messages of
read()
function when it fails. [#13170]When writing out a :class:
~astropy.table.Table
to HTML format, theformats
keyword argument to the :meth:~astropy.table.Table.write
methodwill now be applied. [#13453]
astropy.io.fits
^^^^^^^^^^^^^^^
heapsize
is now checked for VLA tables. An error is thrown whether P format is usedbut the heap size is bigger than what can be indexed with a 32 bit signed int. [#13429]
Fix parsing of ascii TFORM when precision is missing. [#13520]
A compressed image HDU created from the header of a PRIMARY HDU, now correctly updates
'XTENSION' and 'SIMPLE' keywords. [#13557]
Empty variable-length arrays are now properly handled when pathological combinations of
heapoffset and heapsize are encountered. [#13621]
PCOUNT
andGCOUNT
keywords are now removed from an uncompressed Primary header,for compliance with
fitsverify
behavior. [#13753]astropy.modeling
^^^^^^^^^^^^^^^^
Bugfix for using
MagUnit
units on model parameters. [#13158]Fix bug in using non-linear fitters to fit 0-degree polynomials using weights. [#13628]
astropy.table
^^^^^^^^^^^^^
Fix a problem where accessing one field of a structured column returned a Column
with the same info as the original column. This resulted in unintuitive behavior
in general and an exception if the format for the column was set. [#13269]
Tables with columns with structured data can now be properly stacked and joined. [#13306]
Update jQuery to 3.6.0, to pick up security fixes. [#13438]
Fix a Python 3.11 compatibility issue. Ensure that when removing a table column
that the
pprint_include_names
orpprint_exclude_names
attributes getupdated correctly. [#13639]
When using
add_columns
with same indexes inindexes
option or withoutspecifying the option, the order of the new columns will now be kept. [#13783]
Fix a bug when printing or getting the representation of a multidimensional
table column that has a zero dimension. [#13838]
Ensure that mixin columns and their
info
are not shared between tableseven when their underlying data is shared with
copy=False
. [#13842]astropy.time
^^^^^^^^^^^^
Fix
Time.insert()
on times which have theirout_subfmt
set. [#12732]Prevent
Time()
from being initialized with an invalid precisionleading to incorrect results when representing the time as a string. [#13068]
Fix a bug in Time where a date string like "2022-08-01.123" was being parsed
as an ISO-format time "2022-08-01 00:00:00.123". The fractional part at the
end of the string was being taken as seconds. Now this raises an exception
because the string is not in ISO format. [#13731]
astropy.units
^^^^^^^^^^^^^
Significantly improved the performance of parsing composite units with the FITS
format, by ensuring the
detailed_exception
argument is properly passed onand thus used. [#12699]
Ensure that
np.concatenate
on quantities can take adtype
argument (added in numpy 1.20). [#13323]Ensure that the units of any
initial
argument to reductions such asnp.add.reduce
(which underliesnp.sum
) are properly taken into account. [#13340]astropy.utils
^^^^^^^^^^^^^
Ensure that
np.concatenate
on masked data can take adtype
argument (added in numpy 1.20). [#13323]Fix error when suppressing download progress bar while using non-default
sys.stdout
stream. [#13352]Ensure
str
andrepr
work properly forMasked
versions ofstructured subarrays. [#13404]
If an attribute is created using
deprecated_attribute()
with thealternative
argument then getting or setting the value of the deprecatedattribute now accesses its replacement. [#13824]
astropy.visualization
^^^^^^^^^^^^^^^^^^^^^
.tight_layout()
on a WCSAxes. [#12418]astropy.wcs
^^^^^^^^^^^
WCS.pixel_to_world
now creates anEarthLocation
object usingMJD-AVG
if present before falling back to the old behaviour of using
MJD-OBS
. [#12598]The locations of
WCSAxes
ticks and tick-labels are now correctly calculatedwhen the DPI of a figure changes between a WCSAxes being created and the figure
being drawn, or when a rasterized artist is added to the WCSAxes. [#12630]
Fix a bug where
SlicedLowLevelWCS.world_to_pixel_values
would break whenthe result of the transform is dependent on the coordinate of a sliced out
pixel. [#13579]
Updated bundled WCSLIB version to 7.12. This update includes bug fixes to
wcssub()
in how it handles temporal axes with -TAB and fixes handlingof status returns from
linp2x()
andlinx2p()
relating to distortionfunctions, in particular affecting TPV distortions - see #13509. For a full
list of changes - see http://www.atnf.csiro.au/people/mcalabre/WCS/CHANGES or
astropy/cextern/wcslib/CHANGES <https://github.com/astropy/astropy/blob/24e8730c63902d035cb9110eae2a9ebec12d8905/cextern/wcslib/CHANGES>
_. [#13635]Fixed WCS validation not working properly if HDUList is needed
for multi-extension FITS file. [#13668]
Other Changes and Additions
Development wheels of astropy should now be installed from
https://pypi.anaconda.org/astropy/simple instead of from
https://pkgs.dev.azure.com/astropy-project/astropy/\_packaging/nightly/pypi/simple. [#13431]
Compatibility with Python 3.11, 3.10.7, 3.9.14, 3.8.14 [#13614]
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.