forked from pool/python-sunpy
Compare commits
76 Commits
Author | SHA256 | Date | |
---|---|---|---|
6028db9a05 | |||
2a54d3e162 | |||
4021a83842 | |||
324c27864d | |||
539adea59d | |||
39fcb2dde2 | |||
77a1e961fb | |||
bc1dac00e1 | |||
d0b27049a9 | |||
5bc0ca49dd | |||
dca7c9a41b | |||
e84e94db93 | |||
be5472340f | |||
c6a49b925a | |||
ad4c96ae10 | |||
30ec91856a | |||
a422f050b0 | |||
25c8431f5d | |||
81446f638b | |||
ce7b1282b1 | |||
8e28ff867f | |||
77466c6f99 | |||
dff1af213f | |||
cfbad372a2 | |||
562a1e2ce8 | |||
f77deeff73 | |||
f7595e72ec | |||
b607e1dc7c | |||
e6cd04578d | |||
f7b063d931 | |||
b2ff8ed729 | |||
9b67d5bb91 | |||
bd696d2fda | |||
da0e6f00b2 | |||
b846fce427 | |||
6b413c3a20 | |||
7b06fe4d33 | |||
9027d04bb7 | |||
74c2b12f52 | |||
405ccda7b3 | |||
1494508cf4 | |||
500f9c9ade | |||
f410d26a0d | |||
f23d217e02 | |||
f4270535a3 | |||
da7445f8f3 | |||
78458f412a | |||
0c21e33766 | |||
3ebe53d58a | |||
12304233db | |||
f02b905c15 | |||
b9613abd3a | |||
894e62fb88 | |||
d63778a021 | |||
e72584d458 | |||
60f04f5998 | |||
f5d6d14e39 | |||
bbded91bba | |||
866048b169 | |||
b6408be234 | |||
b8fb0c75ec | |||
b0a2d8864f | |||
e3d263a908 | |||
a36088b25f | |||
d2c6b7d5a8 | |||
|
f66d4bf909 | ||
35cb08b142 | |||
9cf3550ff5 | |||
|
efc0a95230 | ||
fb77c0c8d0 | |||
|
bafa4ab1bc | ||
8e941e9099 | |||
|
c9c6521598 | ||
8203c72c65 | |||
f0c92d27aa | |||
6d4366eb81 |
@@ -1,3 +1,387 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 2 17:19:32 UTC 2025 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 7.0.1
|
||||
* Fixed a bug where the time format 2001-02-03T04:05:06Z was
|
||||
being parsed through different code than 2001-02-03T04:05:06 or
|
||||
2001-02-03T04:05:06.0Z. (#8265)
|
||||
* Fixed a bug where sunpy.util.system_info would report sunpy as
|
||||
an optional dependency of itself instead of properly reporting
|
||||
all of the optional dependencies. (#8294)
|
||||
* Fixed sunpy.util.system_info so that the version reported for a
|
||||
development installation of sunpy itself or of a dependency is
|
||||
accurate. (#8297)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 13 13:40:00 UTC 2025 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 7.0.0
|
||||
## Breaking Changes
|
||||
* The ~sunpy.net.hek.HEKClient now merges columns event_coord1,
|
||||
event_coord2 and event_coord3 into a new column called
|
||||
event_coord that returns a astropy.coordinates.SkyCoord object.
|
||||
event_coord1, event_coord2 and event_coord3 are all dropped as
|
||||
columns from the table. Columns which correspond to only units
|
||||
are also dropped. If you need these columns, the unparsed HEK
|
||||
results can be accessed via the .raw attribute on the HEK
|
||||
result. (#7619)
|
||||
* The types of many columns in the results table returned by the
|
||||
HEKClient have been changed. Columns which correspond to
|
||||
quantities with units are now returned as
|
||||
~astropy.units.Quantity objects rather than arrays. Columns
|
||||
which correspond to times are now returned as
|
||||
~astropy.time.Time objects rather than strings. Columns which
|
||||
correspond to coordinates are now returned as
|
||||
~astropy.coordinates.SkyCoord objects rather than arrays or
|
||||
chain code strings. If you need these columns in their original
|
||||
format, the raw output from the HEK can be accessed via the
|
||||
.raw attribute on ~sunpy.net.hek.HEKTable. (#7619)
|
||||
## Deprecations
|
||||
* Renamed the mesh-based autoalignment option for the
|
||||
~sunpy.map.Map method ~sunpy.map.GenericMap.plot from
|
||||
autoalign='pcolormesh' to autoalign='mesh'. (#8036)
|
||||
* Deprecated sunpy.util.net.download_file and
|
||||
sunpy.util.net.download_fileobj. Internally sunpy now uses
|
||||
parfive. (#8106)
|
||||
## Removals
|
||||
* Removed the decorator
|
||||
sunpy.util.deprecate_positional_args_since() due to lack of
|
||||
continued use. (#8165)
|
||||
## New Features
|
||||
* Added a FIDO client for retrieving AIA "synoptic" data from the
|
||||
JSOC. This dataset is not synoptic like HMI and MDI Synoptic
|
||||
images which are images of the solar surface reconstructed from
|
||||
many observations over a solar rotation but rather a synopsis
|
||||
of AIA data. The AIA synoptic data are calibrated Level 1.5
|
||||
images with reduced 1k x 1k resolution at regular 2-minute
|
||||
cadence. (#7842)
|
||||
* Added "SUITMap" with a custom color scheme for 11 filters of
|
||||
the SUIT instrument. For more information about the payload,
|
||||
visit suit.iucaa.in. (#7971)
|
||||
* Add a GONG Magnetogram Map source. (#8007)
|
||||
* Added a new autoalignment option for the ~sunpy.map.Map method
|
||||
~sunpy.map.GenericMap.plot of directly plotting a warped image
|
||||
by specifying autoalign='image'. This autoalignment option is
|
||||
faster than the existing option (autoalign='mesh'), but does
|
||||
not fully work in all situations. (#8036)
|
||||
* The ~sunpy.map.Map method ~sunpy.map.GenericMap.reproject_to
|
||||
now has the capability to automatically determine the extent of
|
||||
the output map by setting the keyword auto_extent, thus
|
||||
avoiding "clipping" any of the original data. The best choice
|
||||
for the how the extent is determined depends on the data being
|
||||
reprojected. (#8040)
|
||||
* Added support for conservative mask propagation in
|
||||
sunpy.map.GenericMap.superpixel by introducing a new
|
||||
conservative_mask keyword argument, which defaults to False.
|
||||
When conservative_mask=True, the superpixel is masked if any of
|
||||
its constituent pixels are masked. (#8041)
|
||||
* Adds caching mechanism for Timeseries URL handling using
|
||||
~sunpy.data.data_manager.cache.Cache. (#8045)
|
||||
* Added support for PUNCH data within sunpy.map.Map. (#8133)
|
||||
* Autoalign plotting for ~sunpy.map.Map is now significantly
|
||||
faster, especially for interactive plots. (#8161)
|
||||
* Added direct support for EIT L1 data within sunpy.map.Map.
|
||||
(#8177)
|
||||
* The ~sunpy.map.Map method ~sunpy.map.GenericMap.plot now
|
||||
performs autoalignment by default (autoalign=True) and
|
||||
furthermore automatically determines which autoalignment
|
||||
approach -- mesh-based or image-based -- to use for the
|
||||
situation. (#8187)
|
||||
## Bug Fixes
|
||||
* Allow ~sunpy.map.sources.HMIMap to have units outside of the
|
||||
FITS standard. This prevents issuing repeated warnings when HMI
|
||||
maps have units of "Mx/cm2". (#8126)
|
||||
* Fixed a bug with the caching of ~sunpy.map.Map properties
|
||||
observer_coordinate and wcs where modifying the metadata to be
|
||||
invalid would confuse the cache. (#8158)
|
||||
* Fixed a bug where autoalign plotting of a ~sunpy.map.Map would
|
||||
not expand the plot limits in some cases. (#8161)
|
||||
* Fixed a bug where the three magnetic coordinate frames
|
||||
(~sunpy.coordinates.frames.Geomagnetic,
|
||||
~sunpy.coordinates.frames.SolarMagnetic,
|
||||
~sunpy.coordinates.frames.GeocentricSolarMagnetospheric) would
|
||||
raise an error if used nontrivially with array obstime (as
|
||||
opposed to a scalar). (#8193)
|
||||
* Fixed an incompatibility between the context manager for
|
||||
applying rotation
|
||||
(~sunpy.coordinates.propagate_with_solar_surface) and the
|
||||
context managers for applying screen assumptions
|
||||
(~sunpy.coordinates.PlanarScreen and
|
||||
~sunpy.coordinates.SphericalScreen), which for example resulted
|
||||
in the discarding of most off-disk data in reprojections.
|
||||
(#8212)
|
||||
* Ensure that ~sunpy.map.GenericMap uses the private accessor for
|
||||
the date-obs key, which can be overridden by a source subclass.
|
||||
This fixes EITMap.reference_date. (#8236)
|
||||
* Prevented a potential segmentation fault when calling
|
||||
~sunpy.time.parse_time on a list of more than 500 strings in a
|
||||
format not specifically recognized by sunpy.time itself and
|
||||
instead has to fall back on recognition by astropy.time.
|
||||
(#8257)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 6 15:47:10 UTC 2025 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 6.1.1
|
||||
## Breaking Changes
|
||||
* Dataretriever / "Scraper" clients no longer require the
|
||||
regex-formatted baseurl and a parse-formatted pattern variable
|
||||
but instead a single and full pattern variable written in the
|
||||
parse-format. Documentation about how to write the new patterns
|
||||
and about explaining the internal Scraper algorithm is added to
|
||||
the topic guide on adding new sources to Fido.
|
||||
* The internal method on ~sunpy.net.scraper.Scraper called
|
||||
_extract_files_meta function no longer requires an extractor
|
||||
pattern.
|
||||
* A new submodule called scraper.net.scraper_utils is created and
|
||||
Scraper helper functions like date_floor(), extract_timestep(),
|
||||
check_timerange() and get_timerange_from_exdict() can be
|
||||
accessed directly from there.
|
||||
* All the extracted timeranges have a millisecond subtracted from
|
||||
the end date, i.e. they end on 59:59:59 of the date just
|
||||
before, instead of the inconsistent issue where some could end
|
||||
with 00:00:00 of the end date which lead to undesirable cases
|
||||
like January 1, 2015 data also showing up in the 2014 year-long
|
||||
timerange. (#7077)
|
||||
* Update our dependancy policy to follow SPEC 0 rather than the
|
||||
older NEP 29. The only difference between the old (NEP 29)
|
||||
policy and the new (SPEC 0) policy is that we only support
|
||||
Python versions for 3 years after their initial release, rather
|
||||
than 4. (#7796)
|
||||
* Increased minimum versions for these dependencies:
|
||||
asdf-astropy >= 0.5.0
|
||||
astropy >= 6.0.0
|
||||
numpy >= 1.24.0
|
||||
pandas >= 1.5.0
|
||||
sphinx >= 6.0.0 (#7976)
|
||||
## Deprecations
|
||||
* sunpy.map.GenericMap.contour is deprecated in favor of
|
||||
sunpy.map.GenericMap.find_contours. Note that ContourPy, now
|
||||
used for contour generation, may produce different results and
|
||||
does not support all scikit-image keyword arguments. (#7760)
|
||||
* The following components of ~sunpy.map.MapSequence are now
|
||||
deprecated and will be removed in v7.1:
|
||||
- The derotate keyword argument to ~sunpy.map.MapSequence.
|
||||
Derotation is not implemented.
|
||||
- The resample keyword argument to
|
||||
~sunpy.map.MapSequence.peek and
|
||||
~sunpy.map.MapSequence.plot. To reproduce this behavior,
|
||||
use ~sunpy.map.GenericMap.resample on each map in the
|
||||
sequence before plotting.
|
||||
- Deprecate ~sunpy.map.MapSequence.all_maps_same_shape in
|
||||
favor of ~sunpy.map.MapSequence.all_same_shape.
|
||||
- Deprecate ~sunpy.map.MapSequence.at_least_one_map_has_mask.
|
||||
To reproduce this functionality, check whether
|
||||
~sunpy.map.MapSequence.mask is None.
|
||||
- Deprecate ~sunpy.map.MapSequence.as_array in favor of
|
||||
~sunpy.map.MapSequence.data and
|
||||
~sunpy.map.MapSequence.mask. Previously, as_array returned
|
||||
a masked array if at least one map held a mask and a bare
|
||||
array if not.
|
||||
- Deprecate ~sunpy.map.MapSequence.all_meta in favor of
|
||||
~sunpy.map.MapSequence.meta. (#7827)
|
||||
* General support within ~sunpy.map.Map for the non-standard
|
||||
CTYPE values 'SOLAR-X' and 'SOLAR-Y' is now deprecated, and
|
||||
should instead be handled by a source-specific subclass.
|
||||
(#7955)
|
||||
* Renamed the sunpy.time.TimeRange method extend() to
|
||||
sunpy.time.TimeRange.shift to reflect what the method
|
||||
actually does. (#8008)
|
||||
## New Features
|
||||
* Added support for saving a sunpy.map.Map into an ASDF file
|
||||
using sunpy.map.GenericMap.save and loading a map stored in an
|
||||
ASDF file with sunpy.map.Map. (#7712)
|
||||
* The ~sunpy.coordinates.RotatedSunFrame class now accepts a
|
||||
~astropy.time.TimeDelta object for the duration parameter.
|
||||
(#7752)
|
||||
* Added ~sunpy.map.GenericMap.find_contours for getting contours
|
||||
from a ~sunpy.map.Map. By default the method uses ContourPy
|
||||
for performance reasons and consistency with
|
||||
sunpy.map.GenericMap.draw_contours. One can alternatively
|
||||
specify that the method use scikit-image. (#7760)
|
||||
* Added support for loading files from various cloud services
|
||||
(such as s3) in ~sunpy.map.Map and
|
||||
~sunpy.timeseries.TimeSeries using fsspec. (#7790)
|
||||
* Added the ~sunpy.coordinates.HelioprojectiveRadial coordinate
|
||||
frame. (#7803)
|
||||
* Added a function ~sunpy.map.make_hpr_header to easily make a
|
||||
FITS WCS header for the
|
||||
~sunpy.coordinates.HelioprojectiveRadial coordinate frame.
|
||||
(#7803)
|
||||
* Added a function sunpy.visualization.show_hpr_impact_angle to
|
||||
modify a plot axis of a
|
||||
~sunpy.coordinates.HelioprojectiveRadial ~sunpy.map.Map to
|
||||
show impact angle rather than declination for the tick labels.
|
||||
(#7803)
|
||||
* Added ability to delay download in
|
||||
sunpy.data.data_manager.manager.DataManager.require (#7845)
|
||||
* Add sunpy.visualization.drawing.extent to visualize the extent
|
||||
of another WCS on an axis. Add
|
||||
sunpy.map.GenericMap.draw_extent to visualize the extent of a
|
||||
map on a given axis. (#7851)
|
||||
* Add a link to the VSO Health Report in the Fido Results when
|
||||
using the VSOClient. (#7884)
|
||||
* Added unconverted_value attribute to the Wavelength attribute.
|
||||
(#7923)
|
||||
* sunpy.time.TimeRange.shift can now accept inputs of type
|
||||
datetime.timedelta and astropy.units.Quantity. (#7931)
|
||||
* sunpy.map.CompositeMap.plot will now skip autoaligning an
|
||||
overplotted map image if that map's WCS matches the WCS of the
|
||||
figure axes. This significantly improves performance when the
|
||||
maps being composited have already been reprojected onto a
|
||||
common WCS. (#7948)
|
||||
## Bug Fixes
|
||||
* sunpy.map.MapSequence unable to set the normalization for data
|
||||
that was UINT8 (JPEG2000) causing the animations to break.
|
||||
(#7674)
|
||||
* Fixed incorrect reference_date for GONG Synoptic maps. (#7758)
|
||||
* Fix sunpy.physics.differential_rotation.differential_rotate to
|
||||
update the reference_date attribute of the input map instead of
|
||||
the date. (#7758)
|
||||
* Fixed incorrect reference_date for SDO/AIA and SDO/HMI data to
|
||||
use the T_OBS keyword instead of the DATE-OBS keyword.
|
||||
* For AIA images, the location of SDO has been shifted up to a
|
||||
second in time, which corresponds to a shift in Heliographic
|
||||
Longitude by only 4 milliarcseconds. (#7758)
|
||||
* Fix filetype detection to use the detected filetype if a known
|
||||
reader is registered. (#7788)
|
||||
* Fixed loading of ~sunpy.map.sources.ADAPTMap if sunkit-magex
|
||||
v1.0.0 is installed. (#7798)
|
||||
* All map sources that override date or reference_date now fall
|
||||
back to the corresponding properties on sunpy.map.GenericMap if
|
||||
the needed source-specific metadata for these properties cannot
|
||||
be found. (#7810)
|
||||
* Fixes a bug where ~sunpy.map.sources.HMIMap returned a
|
||||
wavelength without a unit because WAVEUNIT is not in the header
|
||||
and cannot be parsed from any other part of the metadata. If it
|
||||
cannot be found, it now defaults to Angstrom. (#7812)
|
||||
* Fixed a calculation bug when using
|
||||
~sunpy.coordinates.PlanarScreen when it is both tilted (the
|
||||
plane is not perpendicular to the observer-Sun direction) and
|
||||
offset (the plane does not go through Sun center). (#7814)
|
||||
* Fixed a bug where custom values in the plot_settings dictionary
|
||||
were not being correctly applied in the
|
||||
sunpy.map.GenericMap.draw_contours method. (#7844)
|
||||
* Fix use of deprecated astropy.table.Table.pformat_all in
|
||||
sunpy.net. (#7854)
|
||||
* Fixed a bug with axis labels when plotting a ~sunpy.map.Map
|
||||
that could conflict with automatic label positioning in astropy
|
||||
7.0. (#7857)
|
||||
* Added correct unit fallback for LASCO JPEG2000 files from the
|
||||
Helioviewer. (#7890)
|
||||
* Added support within ~.parse_time for the timestamp %Y%m%d%H%M
|
||||
,%Y%m%dT%H%M and %Y%m%d_%H%M. (#7911)
|
||||
* Updated the internal CDF reader to handle FILLVAL only for
|
||||
floating point numbers. (#7917)
|
||||
* Fixed unit conversion for wavelength in
|
||||
sunpy.net.dataretriever.sources.goes.SUVIClient. (#7920)
|
||||
* Fixed a time-ordering bug in sunpy.time.TimeRange.shift when
|
||||
the shifted start time is later than than the shifted end time.
|
||||
(#7931)
|
||||
* Fixed a bug in the HTML representation for
|
||||
sunpy.timeseries.GenericTimeSeries that error-ed if the
|
||||
time-series had too many columns. (#7947)
|
||||
* Fix sunpy.data.data_manager.manager.DataManager.get now
|
||||
automatically redownloads files if they are accidentally
|
||||
deleted. (#7950)
|
||||
* Fixed a bug in
|
||||
~sunpy.physics.differential_rotation.differential_rotate that
|
||||
assumed the input map header had RSUN_REF defined. (#7953)
|
||||
* Fixed two bugs associated with the handling of WCS PVi_m values
|
||||
by ~sunpy.map.Map. PVi_m values were incorrectly retrieved from
|
||||
the first alternative WCS description (e.g., PV1_1A) instead of
|
||||
the primary WCS description (e.g., PV1_1). Also, PVi_m values
|
||||
were misassigned when m was a two-digit number (i.e., 10
|
||||
through 99). (#7961)
|
||||
* Fixed a bug in ~sunpy.time.parse_time where parsing a list of
|
||||
time strings containing "TAI" did not automatically set the
|
||||
time scale to TAI. (#7983)
|
||||
* Fixed a bug in ~sunpy.time.parse_time where parsing a list of
|
||||
time strings could incorrectly fail even when parsing the
|
||||
individual elements would succeed. (#7983)
|
||||
* Fixed the formatting of the the channel labels for
|
||||
~sunpy.timeseries.sources.XRSTimeSeries. (#7986)
|
||||
* Examples in docs for sunpy.net.attr.Attr are now rendering
|
||||
properly. (#8002)
|
||||
* Fixed the unintended ~sunpy.map.Map behavior where any
|
||||
combination of non-FITS units were allowed as long as one of
|
||||
the non-FITS units was DN. DN is currently the only non-FITS
|
||||
unit permitted in ~sunpy.map.Map. (#8037)
|
||||
* Corrected the NOAA ~.SRSClient to use a updated HTTPS server
|
||||
instead of the now defunct FTP. (#8054)
|
||||
* Fixed a bug where ~sunpy.map.sources.EITMap and the correct
|
||||
colormaps (e.g., sohoeit171) failed to load for SOHO/EIT level
|
||||
1 FITS files from SDAC. (#8070)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 7 09:47:21 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 6.0.4
|
||||
* Backport PR #7843 (Updates from the package template) by
|
||||
@meeseeksmachine in #7847
|
||||
* Backport PR #7846 (Add support for Python 3.13) by @Cadair in
|
||||
#7848
|
||||
* Backport PR #7849 (Fix figure devdeps) by @meeseeksmachine in
|
||||
#7850
|
||||
* Backport PR #7855 (Don't use 3.13 for the core CI yet) by
|
||||
@meeseeksmachine in #7858
|
||||
* Backport PR #7854 (Use updated astropy.Table api) by
|
||||
@meeseeksmachine in #7859
|
||||
* Backport PR #7852 (Updates from the package template) by
|
||||
@meeseeksmachine in #7860
|
||||
* Backport PR #7857 (Fixed some issues related to WCSAxes in
|
||||
astropy 7.0) by @meeseeksmachine in #7861
|
||||
* Backport PR #7867 (Use a fixed time in the past for the gallery
|
||||
example with STEREO locations) by @meeseeksmachine in #7876
|
||||
* Backport PR #7875 (Fix devdeps fails with astropy) by
|
||||
@meeseeksmachine in #7877
|
||||
* Backport PR #7878 (Use main instead of master for figure tests
|
||||
comparison ) by @meeseeksmachine in #7879
|
||||
* Backport PR #7881 (Improved clarity & structure of
|
||||
documentation in the installation section; fixed formatting) by
|
||||
@meeseeksmachine in #7882
|
||||
* Backport PR #7887 (Only fail docs on deprecation warnings when
|
||||
not on RTD) by @meeseeksmachine in #7888
|
||||
* Backport PR #7892 (Fix cache configuration for tests against
|
||||
astropy 7) by @meeseeksmachine in #7894
|
||||
* Backport PR #7890 (Add fallback if lasco has a 0 bunit in the
|
||||
jp2) by @meeseeksmachine in #7901
|
||||
* Backport PR #7902 (updated rhessi.py(Summary lightcurves
|
||||
docstring)) by @meeseeksmachine in #7906
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 6 16:01:58 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Skip tests with scikit-image on Python 3.13
|
||||
- Reenable opencv tests for python3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 28 11:25:14 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 6.0.3
|
||||
* [6.0] backport all template changes by @nabobalis in #7805
|
||||
* Backport PR #7810 on branch 6.0 (Fix map sources to always fall
|
||||
back to default values for date and reference_date) by
|
||||
@meeseeksmachine in #7811
|
||||
* Backport PR #7814 on branch 6.0 (Fixed bug with tilted and
|
||||
offset planar screen) by @meeseeksmachine in #7815
|
||||
* Backport PR #7812 on branch 6.0 (Add Angstrom as default unit
|
||||
for HMI wavelength) by @meeseeksmachine in #7821
|
||||
* Backport PR #7674 on branch 6.0 (Handle norm for mapsequence)
|
||||
by @meeseeksmachine in #7831
|
||||
- Drop sunpy-exclude-toplevel.patch fixed un templates upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 26 08:27:24 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 6.0.2
|
||||
## Bug Fixes
|
||||
* Fix filetype detection to use the detected filetype if a known
|
||||
reader is registered. (#7788)
|
||||
* Fixed loading of ~sunpy.map.sources.ADAPTMap if sunkit-magex
|
||||
v1.0.0 is installed. (#7798)
|
||||
* Fixed loading of GOES XRS files with newer versions of numpy
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 17 13:51:40 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sunpy
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-sunpy
|
||||
Version: 6.0.1
|
||||
Version: 7.0.1
|
||||
Release: 0
|
||||
Summary: SunPy core package: Python for Solar Physics
|
||||
License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
|
||||
@@ -26,68 +26,68 @@ URL: https://github.com/sunpy/sunpy
|
||||
Source0: https://files.pythonhosted.org/packages/source/s/sunpy/sunpy-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE use custom hypothesis profile for slow OBS executions
|
||||
Patch1: sunpy-obs-profile.patch
|
||||
# PATCH-FIX-OPENSUSE sunpy-exclude-toplevel.patch -- exclude directories and files from being installed into site-packages, reported gh#sunpy/sunpy#7780
|
||||
Patch2: sunpy-exclude-toplevel.patch
|
||||
BuildRequires: %{python_module aioftp}
|
||||
BuildRequires: %{python_module astropy >= 5.3}
|
||||
BuildRequires: %{python_module devel >= 3.10}
|
||||
BuildRequires: %{python_module extension-helpers}
|
||||
BuildRequires: %{python_module astropy >= 6.1}
|
||||
BuildRequires: %{python_module devel >= 3.11}
|
||||
BuildRequires: %{python_module extension-helpers >= 1.3 with %python-extension-helpers < 2}
|
||||
BuildRequires: %{python_module fsspec >= 2023.6.0}
|
||||
BuildRequires: %{python_module numpy-devel >= 1.25 with %python-numpy-devel < 2.3}
|
||||
BuildRequires: %{python_module packaging >= 19}
|
||||
BuildRequires: %{python_module parfive >= 2.0.0}
|
||||
BuildRequires: %{python_module packaging >= 23.2}
|
||||
BuildRequires: %{python_module parfive >= 2.1.0}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pyerfa}
|
||||
BuildRequires: %{python_module requests >= 2.28}
|
||||
BuildRequires: %{python_module pyerfa >= 2.0.1.1}
|
||||
BuildRequires: %{python_module requests >= 2.32}
|
||||
BuildRequires: %{python_module setuptools >= 62}
|
||||
BuildRequires: %{python_module setuptools_scm >= 6.2}
|
||||
BuildRequires: %{python_module setuptools_scm >= 8}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-astropy >= 5.3
|
||||
Requires: python-numpy > 1.24.5
|
||||
Requires: python-packaging >= 23
|
||||
Requires: python-parfive >= 2.0.0
|
||||
Requires: python-pyerfa
|
||||
Requires: python-requests >= 2.28.0
|
||||
# pafived[ftp], ignore rpmlint's python-leftover-require
|
||||
Requires: python-astropy >= 6.1
|
||||
Requires: python-fsspec >= 2023.6.0
|
||||
Requires: python-numpy >= 1.25
|
||||
Requires: python-packaging >= 23.2
|
||||
Requires: python-parfive >= 2.1.0
|
||||
Requires: python-pyerfa >= 2.0.1.1
|
||||
Requires: python-requests >= 2.32.0
|
||||
# parfive[ftp], ignore rpmlint's python-leftover-require
|
||||
Requires: python-aioftp >= 0.17.1
|
||||
# SECTION project.optional-dependencies:asdf
|
||||
Recommends: python-asdf >= 2.13
|
||||
Recommends: python-asdf-astropy >= 0.4
|
||||
Recommends: python-asdf >= 3
|
||||
Recommends: python-asdf-astropy >= 0.5
|
||||
# /SECTION
|
||||
# SECTION project.optional-dependencies:dask
|
||||
Suggests: python-dask-array >= 2022.5.2
|
||||
Suggests: python-dask-array >= 2023.6
|
||||
# /SECTION
|
||||
# SECTION project.optional-dependencies:image
|
||||
Recommends: python-scipy >= 1.9
|
||||
Recommends: python-scipy >= 1.11
|
||||
# /SECTION
|
||||
# SECTION project.optional-dependencies:jpeg2000
|
||||
Recommends: python-Glymur >= 0.11
|
||||
Recommends: python-lxml >= 4.9
|
||||
Recommends: python-lxml >= 4.9.1
|
||||
# /SECTION
|
||||
# SECTION project.optional-dependencies:map
|
||||
Recommends: python-matplotlib >= 3.5.0
|
||||
Recommends: python-mpl-animators >= 1.0.0
|
||||
Recommends: python-reproject
|
||||
Recommends: python-matplotlib >= 3.8.0
|
||||
Recommends: python-mpl-animators >= 1.2.0
|
||||
Recommends: python-reproject >= 0.12.0
|
||||
# scipy
|
||||
# /SECTION
|
||||
# SECTION project.optional-dependencies:net
|
||||
Recommends: python-beautifulsoup4 >= 4.11.0
|
||||
Recommends: python-beautifulsoup4 >= 4.13.0
|
||||
Recommends: python-drms >= 0.7.1
|
||||
Recommends: python-python-dateutil >= 2.8.1
|
||||
Recommends: python-tqdm >= 4.64
|
||||
Recommends: python-zeep >= 4.1.0
|
||||
Recommends: python-python-dateutil >= 2.9.0
|
||||
Recommends: python-tqdm >= 4.66
|
||||
Recommends: python-zeep >= 4.3.0
|
||||
# /SECTION
|
||||
# SECTION project.optional-dependencies:opencv
|
||||
Recommends: python-opencv >= 4.6.0.66
|
||||
Recommends: python-opencv >= 4.8.0.74
|
||||
# SECTION project.optional-dependencies:scikit-image
|
||||
Recommends: python-scikit-image >= 0.19
|
||||
Recommends: python-scikit-image >= 0.21
|
||||
# /SECTION
|
||||
# SECTION project.optional-dependencies:timeseries
|
||||
Recommends: python-cdflib >= 0.4.4
|
||||
Recommends: python-h5netcdf >= 1
|
||||
Recommends: python-h5py >= 3.7
|
||||
Recommends: python-pandas >= 1.4
|
||||
Recommends: python-cdflib >= 1.3.2
|
||||
Recommends: python-h5netcdf >= 1.2
|
||||
Recommends: python-h5py >= 3.9
|
||||
Recommends: python-pandas >= 2.1
|
||||
# matplotlib
|
||||
# /SECTION
|
||||
# SECTION project.optional-dependencies:visualization
|
||||
@@ -95,31 +95,29 @@ Recommends: python-pandas >= 1.4
|
||||
# mpl-animators
|
||||
# /SECTION
|
||||
# SECTION test requirements (and extras)
|
||||
# even although we do not use tox and doctestplus, there are tests in the suite checking their existence.
|
||||
BuildRequires: %{python_module asdf >= 2.13}
|
||||
BuildRequires: %{python_module asdf-astropy >= 0.1.1}
|
||||
BuildRequires: %{python_module beautifulsoup4 >= 4.11.0}
|
||||
BuildRequires: %{python_module cdflib >= 0.4.4}
|
||||
BuildRequires: %{python_module dask-array >= 2022.5.2}
|
||||
BuildRequires: %{python_module asdf >= 3}
|
||||
BuildRequires: %{python_module asdf-astropy >= 0.5}
|
||||
BuildRequires: %{python_module beautifulsoup4 >= 4.13.0}
|
||||
BuildRequires: %{python_module cdflib >= 1.3.2}
|
||||
BuildRequires: %{python_module dask-array >= 2023.6}
|
||||
BuildRequires: %{python_module drms >= 0.7.1}
|
||||
BuildRequires: %{python_module h5netcdf >= 1}
|
||||
BuildRequires: %{python_module h5py >= 3.7.0}
|
||||
BuildRequires: %{python_module h5netcdf >= 1.2}
|
||||
BuildRequires: %{python_module h5py >= 3.9}
|
||||
BuildRequires: %{python_module hypothesis >= 6.0.0}
|
||||
BuildRequires: %{python_module jplephem >= 2.14}
|
||||
BuildRequires: %{python_module lxml >= 4.9}
|
||||
BuildRequires: %{python_module matplotlib >= 3.5.0}
|
||||
BuildRequires: %{python_module mpl-animators >= 1.0.0}
|
||||
BuildRequires: %{python_module pandas >= 1.4.0}
|
||||
BuildRequires: %{python_module jplephem >= 2.19}
|
||||
BuildRequires: %{python_module lxml >= 4.9.1}
|
||||
BuildRequires: %{python_module matplotlib >= 3.8.0}
|
||||
BuildRequires: %{python_module mpl-animators >= 1.2.0}
|
||||
BuildRequires: %{python_module pandas >= 2.1}
|
||||
BuildRequires: %{python_module pytest >= 7.1}
|
||||
BuildRequires: %{python_module pytest-astropy >= 0.11}
|
||||
BuildRequires: %{python_module pytest-mpl >= 0.16}
|
||||
BuildRequires: %{python_module pytest-xdist >= 3.0.2}
|
||||
BuildRequires: %{python_module reproject >= 0.9}
|
||||
BuildRequires: %{python_module scikit-image >= 0.19.0}
|
||||
BuildRequires: %{python_module scipy >= 1.9}
|
||||
BuildRequires: %{python_module zeep >= 4.1}
|
||||
# opencv is not compiled with numpy2 yet
|
||||
#BuildRequires: python3-opencv
|
||||
BuildRequires: %{python_module reproject >= 0.12}
|
||||
BuildRequires: %{python_module scikit-image >= 0.21}
|
||||
BuildRequires: %{python_module scipy >= 1.11}
|
||||
BuildRequires: %{python_module zeep >= 4.3}
|
||||
BuildRequires: python3-opencv
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -147,15 +145,21 @@ chmod +x %{buildroot}%{$python_sitearch}/sunpy/extern/distro.py
|
||||
mkdir testdir
|
||||
pushd testdir
|
||||
%{python_expand # no opencv for non-primary python3
|
||||
# if condition commented out: opencv is not compiled with numpy2 yet, disable for all
|
||||
#if [ "%%{$python_provides}" != "python3" ]; then
|
||||
if [ "%{$python_provides}" != "python3" ]; then
|
||||
$python_donttest=" or opencv or (test_transform and (test_nans or test_clipping))"
|
||||
#fi
|
||||
fi
|
||||
}
|
||||
# fails because it does not find any opencv-python dist metadata (even for python3-opencv installed)
|
||||
donttest="test_self_test"
|
||||
# max age: not online for IERS updates
|
||||
donttest="$donttest or test_print_params"
|
||||
# spiceypy not available
|
||||
%pytest_arch --pyargs sunpy -ra -n auto -k "not ($donttest ${$python_donttest})" --ignore %{buildroot}%{$python_sitearch}/sunpy/coordinates/tests/test_spice.py
|
||||
%python_expand ignore="$ignore --ignore %{buildroot}%{$python_sitearch}/sunpy/coordinates/tests/test_spice.py"
|
||||
%ifarch aarch64
|
||||
# invalid cast of type
|
||||
donttest="$donttest or test_plot_unit8"
|
||||
%endif
|
||||
%pytest_arch --pyargs sunpy -ra -n auto -k "not ($donttest ${$python_donttest})" $ignore
|
||||
popd
|
||||
|
||||
%files %{python_files}
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cbeb70d48f82eb00c5949bce6d6ace862b2baf2402797ba5930172442b808130
|
||||
size 3662938
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:054513d1bd69750a977ae5af6a0c25a1185cb44535aabfdd3246f7ef8ce8e7fa
|
||||
size 3748790
|
3
sunpy-7.0.1.tar.gz
Normal file
3
sunpy-7.0.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f59086f42b53a6018696ab57725d9ea5107315c6d5bc833365c5e4e42439ffe0
|
||||
size 4199162
|
@@ -1,16 +0,0 @@
|
||||
diff -ur sunpy-6.0.1.orig/pyproject.toml sunpy-6.0.1/pyproject.toml
|
||||
--- sunpy-6.0.1.orig/pyproject.toml 2024-08-16 02:26:49.000000000 +0200
|
||||
+++ sunpy-6.0.1/pyproject.toml 2024-08-17 21:52:29.312141037 +0200
|
||||
@@ -149,8 +149,12 @@
|
||||
license-files = ["LICENSE.rst"]
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
+include = ["sunpy*"]
|
||||
exclude = ["sunpy._dev"]
|
||||
|
||||
+[tool.setuptools.exclude-package-data]
|
||||
+"*" = ["*.c", "*.h"]
|
||||
+
|
||||
[tool.setuptools_scm]
|
||||
write_to = "sunpy/_version.py"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
Index: sunpy-5.0.0/sunpy/conftest.py
|
||||
Index: sunpy-6.0.3/sunpy/conftest.py
|
||||
===================================================================
|
||||
--- sunpy-5.0.0.orig/sunpy/conftest.py
|
||||
+++ sunpy-5.0.0/sunpy/conftest.py
|
||||
--- sunpy-6.0.3.orig/sunpy/conftest.py
|
||||
+++ sunpy-6.0.3/sunpy/conftest.py
|
||||
@@ -4,6 +4,7 @@ import pathlib
|
||||
import tempfile
|
||||
import importlib
|
||||
@@ -10,7 +10,7 @@ Index: sunpy-5.0.0/sunpy/conftest.py
|
||||
import pytest
|
||||
|
||||
import astropy
|
||||
@@ -34,6 +35,14 @@ collect_ignore = ["data/sample.py"]
|
||||
@@ -33,6 +34,14 @@ collect_ignore = ["data/sample.py"]
|
||||
console_logger = logging.getLogger()
|
||||
console_logger.setLevel('INFO')
|
||||
|
||||
|
Reference in New Issue
Block a user