SHA256
1
0
forked from pool/python-sunpy

Compare commits

...

22 Commits

Author SHA256 Message Date
6028db9a05 Accepting request 1297171 from devel:languages:python:numeric
- 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)

OBS-URL: https://build.opensuse.org/request/show/1297171
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=37
2025-08-03 11:38:05 +00:00
2a54d3e162 - 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=75
2025-08-02 17:26:13 +00:00
4021a83842 Accepting request 1294599 from devel:languages:python:numeric
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1294599
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=36
2025-07-21 18:00:35 +00:00
324c27864d minifix
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=73
2025-07-13 15:06:29 +00:00
539adea59d - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=72
2025-07-13 13:53:02 +00:00
39fcb2dde2 Accepting request 1267428 from devel:languages:python:numeric
- 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

OBS-URL: https://build.opensuse.org/request/show/1267428
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=35
2025-04-07 17:15:14 +00:00
77a1e961fb - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=70
2025-04-06 16:04:47 +00:00
bc1dac00e1 Accepting request 1229021 from devel:languages:python:numeric
- 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

OBS-URL: https://build.opensuse.org/request/show/1229021
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=34
2024-12-08 10:37:32 +00:00
d0b27049a9 - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=68
2024-12-07 10:45:25 +00:00
5bc0ca49dd - Reenable opencv tests for python3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=67
2024-12-06 21:55:07 +00:00
dca7c9a41b OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=66 2024-12-06 16:02:20 +00:00
e84e94db93 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=65 2024-12-06 16:01:48 +00:00
be5472340f Accepting request 1227117 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1227117
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=33
2024-11-28 21:43:09 +00:00
c6a49b925a - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=63
2024-11-28 11:48:34 +00:00
ad4c96ae10 Accepting request 1204095 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1204095
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=32
2024-09-27 15:11:39 +00:00
30ec91856a - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=61
2024-09-27 08:33:29 +00:00
a422f050b0 Accepting request 1195101 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1195101
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=31
2024-08-21 21:26:55 +00:00
a5603f2134 - Update to 6.0.1
## Bug Fixes
  * Fixed incorrect reference_date for GONG Synoptic maps. (#7758)
  * Fix
    :func:`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)
- Release 6.0.0
  ## Breaking Changes
  * Arguments for ~sunpy.map.GenericMap.reproject_to after the
    target WCS are now keyword-only. (#7339)
  * Arguments for sunpy.timeseries.GenericTimeSeries.peek are now
    keywords only. (#7340)
  * Removed scikit-image from the "image" extra group and created a
    new "scikit-image" extra group. (#7536)
  * sunpy.io.read_file and sunpy.io.write_file are deprecated and
    will be removed in the future. These were intended to be
    private functions and should not be used. (#7537)
  * The ANA C code has been deprecated (sunpy.io.ana.read,
    sunpy.io.ana.get_header, sunpy.io.ana.write) and may be removed
    in a future sunpy release. Please contact us here:
    https://community.openastronomy.org/t/possible-deprecation-of-ana-file-readers-and-writers-in-sunpy
    if you are making use of this code. (#7642)
  * The .EUIMap class now returns the DATE-BEG key for
    .GenericMap.date while continuing to use DATE-AVG as the

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=59
2024-08-21 11:40:15 +00:00
25c8431f5d Accepting request 1188214 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/1188214
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=30
2024-07-18 17:16:49 +00:00
81446f638b - Revert restriction.
https://github.com/sunpy/sunpy/blob/v5.1.4/pyproject.toml#L17

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=57
2024-07-17 14:19:54 +00:00
ce7b1282b1 Accepting request 1186294 from devel:languages:python:numeric
- Restrict numpy to < 2.

OBS-URL: https://build.opensuse.org/request/show/1186294
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sunpy?expand=0&rev=29
2024-07-09 18:04:22 +00:00
8e28ff867f - Restrict numpy to < 2.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-sunpy?expand=0&rev=55
2024-07-09 05:13:31 +00:00
5 changed files with 742 additions and 87 deletions

View File

@@ -1,3 +1,653 @@
-------------------------------------------------------------------
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>
- Update to 6.0.1
## Bug Fixes
* Fixed incorrect reference_date for GONG Synoptic maps. (#7758)
* Fix
:func:`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)
- Release 6.0.0
## Breaking Changes
* Arguments for ~sunpy.map.GenericMap.reproject_to after the
target WCS are now keyword-only. (#7339)
* Arguments for sunpy.timeseries.GenericTimeSeries.peek are now
keywords only. (#7340)
* Removed scikit-image from the "image" extra group and created a
new "scikit-image" extra group. (#7536)
* sunpy.io.read_file and sunpy.io.write_file are deprecated and
will be removed in the future. These were intended to be
private functions and should not be used. (#7537)
* The ANA C code has been deprecated (sunpy.io.ana.read,
sunpy.io.ana.get_header, sunpy.io.ana.write) and may be removed
in a future sunpy release. Please contact us here:
https://community.openastronomy.org/t/possible-deprecation-of-ana-file-readers-and-writers-in-sunpy
if you are making use of this code. (#7642)
* The .EUIMap class now returns the DATE-BEG key for
.GenericMap.date while continuing to use DATE-AVG as the
reference date for the coordinate system. (#7682)
* The .GenericMap.date key priority order has changed to be
consistent with it representing the "canonical" observation
time. DATE-OBS continues to have the highest priority, but now
DATE-BEG has higher priority than DATE-AVG. (#7682)
* A new property .GenericMap.reference_date has been added to
decouple the reference date for the coordinate system from the
"canonical" observation time. This new property is now passed
through to the map's WCS object as dateavg and is the time used
for .GenericMap.coordinate_frame and
.GenericMap.observer_coordinate. (#7682)
## Deprecations
* ~sunpy.coordinates.Helioprojective.assume_spherical_screen has
been deprecated in favor of ~sunpy.coordinates.SphericalScreen.
(#7115)
* sunpy.physics.differential_rotation.diff_rot has been
deprecated and replaced by
sunpy.sun.models.differential_rotation. (#7409)
* Deprecated all positional arguments in
sunpy.map.GenericMap.plot method. The annotate, axes, title,
clip_interval arguments should be passed as keyword arguments
(e.g., ..., title=True, ...) instead. (#7421)
* The keyword response_format in sunpy.net.vso.VSOClient.search
has been deprecated. This was introduced to preserve legacy
behaviour of the VSO client, to return
sunpy.net.vso.legacy_response.QueryResponse instead of
sunpy.net.vso.table_response.VSOQueryResponseTable objects.
This behaviour has been the default for over 4 years and the
keyword is no longer needed. This keyword and the older
sunpy.net.vso.legacy_response.QueryResponse class will be
removed in sunpy 7.0. The keyword progress in
sunpy.net.hek2vso.H2VClient.full_query has been deprecated and
will be removed in sunpy 7.0. (#7468)
## Removals
* sunpy.database has been removed. (#7320)
* sunpy.map.header_helper.meta_keywords has been removed. (#7337)
* sunpy.net.helioviewer.HelioviewerClient has been removed. Use
the hvpy package instead. (#7338)
* There was a private "Maxwell" unit within sunpy.map to register
it before astropy had support for it. This has now been removed
in favour of using the astropy version. (#7383)
## New Features
* sunpy.io.read_file will now try to detect the filetype based on
the content and then fallback to using the file extension.
(#6736)
* It is now possible to read the comments in a header from a
JPEG2000 file. (#6841)
* Added the ability for sunpy.map.Map to load files from a
generator. (#7024)
* Added ~sunpy.coordinates.PlanarScreen for interpreting 2D
~sunpy.coordinates.Helioprojective coordinates as being on the
inside of a planar screen. (#7115)
* Added the ability to pass clip_interval to
sunpy.map.mapsequence.MapSequence.plot. (#7253)
* Add support for the fill keyword in
~sunpy.map.GenericMap.draw_contours to allow for filled
contours. (#7281)
* ~sunpy.coordinates.get_horizons_coord now supports time arrays
with up to 10,000 elements. (#7319)
* Add an example of plotting a rectangle on a map with a rotation
angle relative to the axes
(sphx_glr_generated_gallery_plotting_plot_rotated_rectangle.py).
(#7348)
* Added testing and explicit support for Python 3.12. (#7351)
* Added warning when importing a submodule without installing
that submodules extra dependencies. (#7369)
* Added a warning message for rsun mismatch in
~sunpy.map.GenericMap.reproject_to method. (#7370)
* Added a new optional extra group to install "opencv" if you
want to it for affine transforms. pip install sunpy[opencv]
#7383
* sunpy.map.GenericMap.draw_contours don't run internal transform
code if transform keyword is provided. (#7427)
* Update ASDF schemas for upcoming ASDF standard 1.6.0. (#7432)
* Add a new map source ~sunpy.map.sources.gong.GONGHalphaMap for
GONG H-Alpha data. (#7451)
* Added ~sunpy.coordinates.spice.get_rotation_matrix to obtain
the rotation matrix between the orientations of two SPICE
frames, which is particularly useful for transforming vector
fields. (#7452)
* Allow units to be passed to
~sunpy.map.header_helper.make_fitswcs_header as strings.
(#7454)
* A new client (sunpy.net.dataretriever.ADAPTClient) has been
added to search and download ADAPT files. (#7463)
* sunpy.net.jsoc.JSOCClient queries now return the SUMS directory
paths as the segment key value in the results table. (#7469)
* Allow the screen radius to be set when using
~sunpy.coordinates.SphericalScreen. (#7532)
* Updated sunpy.map.GenericMap.submap to check if it is about to
work on locations with NaNs now errors and informs the user
that they likely want to use
~sunpy.coordinates.Helioprojective.assume_spherical_screen so
that the off-disk 2D coordinate can be converted to a 3D
coordinate. (#7543)
* ~sunpy.map.GenericMap will now assign units of DN without a
warning or error. (#7585)
* Add a new map source ~sunpy.map.sources.ADAPTMap for ADvanced
Adaptive Prediction Technique (ADAPT) data files. (#7640)
* Added support for JSOC's HMI millisecond TAI time format.
Previously, it would only work with seconds. (#7656)
* Added build support for aarch64 wheels. (#7679)
## Bug Fixes
* Long object names are no longer truncated in the logging output
of ~sunpy.coordinates.get_horizons_coord. (#7319)
* When calling sunpy.map.GenericMap.rotate on an integer data
array, with missing set to NaN (the default value), the method
will now itself raise an informative error message instead
deferring to NumPy to raise the error. (#7344)
* Fixed the appearance of a double "Notes" heading in
~sunpy.map.Map subclasses. (#7376)
* ~sunpy.map.Map with UINT8 data will now not error on plotting
due to normalization. We now skip adding a normalization.
(#7422)
* When calling ~sunpy.map.GenericMap.reproject_to along with both
context managers
~sunpy.coordinates.propagate_with_solar_surface and
~sunpy.coordinates.Helioprojective.assume_spherical_screen now
raises a warning. (#7437)
* Fix a bug which caused Fido.search to crash due to SSL
certificate verification error for the
~sunpy.net.helio.HECClient now returns no results and logs a
warning in this case. (#7446)
* Fixed the sanitization of the names of files downloaded via VSO
so that periods are no longer replaced and case is no longer
forced to be lowercase. (#7453)
* The creation of the series string for a JSOC query was not
adding the correct escape characters for comparison values for
keywords. This was causing the JSOC to error. (#7467)
* The EVE L0CS client now uses the new URLs for the data from
LASP. (#7483)
* JPEG2000 files are now saved with the correct orientation.
Previously they would be vertically flipped when saved. (#7486)
* Fixed a very minor inaccuracy in three sunpy.map utility
functions (~sunpy.map.contains_full_disk,
~sunpy.map.coordinate_is_on_solar_disk, and
~sunpy.map.is_all_off_disk) resulting from the accidental use
of the small-angle approximation. (#7512)
* The ~sunpy.map.GenericMap.rotate function now correctly updates
the NAXISi. (#7522)
* Added a check in
sunpy.physics.differential_rotation.solar_rotate_coordinate to
ensure the input frame has an "observer" attribute before
replicating frame attributes, preventing potential issues with
frames lacking this attribute. (#7526)
* Fixed an inaccuracy in the implementation of
~sunpy.coordinates.HeliocentricEarthEcliptic and
~sunpy.coordinates.GeocentricSolarEcliptic such that the Earth
was not exactly in the XY plane, but rather had an error of up
~10 meters. (#7530)
* The maximum records in ~sunpy.net.helio.HECClient now are
20000. (#7540)
* Fixed a bug with any coordinate transformation starting in
~sunpy.coordinates.GeocentricEarthEquatorial (GEI) returning
output with AU as the length unit, rather than preserving the
length unit of the initial coordinate. (#7545)
* Fixed a bug that interfered with
astropy.wcs.utils.celestial_frame_to_wcs when working with a
custom subclass of
~sunpy.coordinates.frames.SunPyBaseCoordinateFrame. (#7594)
* Fixed bug where conversion of results from the HEKClient to
Astropy Time failed when some values where empty or missing for
the values of event_strattime, event_endtime or event_peaktime
(#7627)
* Fix the ~sunpy.map.sources.gong.GONGHalphaMap.rsun_obs to use
correct header information solar-r keyword. (#7652)
* Fix compilation with gcc 14, avoid implicit pointer
conversions. (#7662)
* Fixed a bug where "DN" was not able to be parsed by
~sunpy.map.header_helper.make_fitswcs_header due to strict
checking against the FITS standard. This is now consistent with
how unit strings are parsed in ~sunpy.map.GenericMap. (#7730)
* Fixed a bug where ~sunpy.map.sources.XRTMap was still
defaulting to counts rather than DN. (#7744)
## Internal Changes
* sunpy.net.jsoc.JSOCClient.fetch called drms API that passed a
progress keyword which added extra print statements to the
console. This has been removed in drms 0.7.0, which had
breaking API changes within this release. As a result, we
increased the minimum required version of drms to 0.7.1.
* This specifically refers to the following information that was
printed to the console by default:
"Export request pending. [id=X, status=X]" "Waiting for X
seconds..." "Request not found on server, X retries left."
These were handled by drms and are now logging messages. If you
want to silence these messages, you can set the logging level
to WARNING or higher.
import logging
drms_logger = logging.getLogger("drms")
drms_logger.setLevel(logging.WARNING)
from sunpy.net import fido, attrs
Note, you have to do it before you import fido. (#7307)
* The function ~sunpy.coordinates.get_horizons_coord no longer
calls the astroquery package, so astroquery is no longer a
dependency. (#7319)
* The requests package is a now formally a core dependency.
requests was already commonly installed as an implied
dependency of sunpy.net or for building documentation. (#7319)
* ~sunpy.net.jsoc.attrs.Notify checks that a valid email address
has been given as a value. (#7342)
* The delim_whitespace keyword in pandas.read_csv is deprecated
and was updated with sep='\s+'. This should have no affect on
the output of the code. (#7350)
* Fixed an environment-specific failure of a unit test for
sunpy.coordinates.Helioprojective.is_visible. (#7356)
* Moved to pyproject.toml and removed setup.py and setup.cfg.
(#7384)
* pyerfa is now a new direct dependency. It has been an indirect
dependency from sunpy 3.1, over two years ago. (#7397)
* Increased Python minimum version to be >= 3.10. (#7402)
* Fixed an unnecessary division computation when performing a
unsupported division operation using a ~sunpy.map.Map. (#7551)
* Updated the internal URL for the
~sunpy.net.dataretriever.sources.norh.NoRHClient to point to a
HTTPS archive of the NoRH data. (#7696)
- Add sunpy-exclude-toplevel.patch
-------------------------------------------------------------------
Thu Jul 11 08:57:36 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Revert restriction.
https://github.com/sunpy/sunpy/blob/v5.1.4/pyproject.toml#L17
-------------------------------------------------------------------
Tue Jul 9 05:13:08 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Restrict numpy to < 2.
-------------------------------------------------------------------
Mon Jun 10 19:26:13 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -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: 5.1.4
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
@@ -27,97 +27,96 @@ Source0: https://files.pythonhosted.org/packages/source/s/sunpy/sunpy-%{v
# PATCH-FIX-OPENSUSE use custom hypothesis profile for slow OBS executions
Patch1: sunpy-obs-profile.patch
BuildRequires: %{python_module aioftp}
BuildRequires: %{python_module astropy >= 5.0.6}
BuildRequires: %{python_module base => 3.9}
BuildRequires: %{python_module devel >= 3.9}
BuildRequires: %{python_module numpy-devel >= 1.25}
BuildRequires: %{python_module packaging >= 19}
BuildRequires: %{python_module parfive >= 2.0.0}
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 >= 23.2}
BuildRequires: %{python_module parfive >= 2.1.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyerfa}
BuildRequires: %{python_module setuptools >= 56}
BuildRequires: %{python_module setuptools_scm >= 6.2}
BuildRequires: %{python_module pyerfa >= 2.0.1.1}
BuildRequires: %{python_module requests >= 2.32}
BuildRequires: %{python_module setuptools >= 62}
BuildRequires: %{python_module setuptools_scm >= 8}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-astropy >= 5.0.1
Requires: python-numpy > 1.25
Requires: python-packaging >= 19
Requires: python-parfive >= 2.0.0
Requires: python-pyerfa
# 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 extras_require:asdf
Recommends: python-asdf >= 2.8
Recommends: python-asdf-astropy >= 0.1.1
# SECTION project.optional-dependencies:asdf
Recommends: python-asdf >= 3
Recommends: python-asdf-astropy >= 0.5
# /SECTION
# SECTION extras_require:dask
Suggests: python-dask-array >= 2201.4
# SECTION project.optional-dependencies:dask
Suggests: python-dask-array >= 2023.6
# /SECTION
# SECTION extras_require:database
Recommends: python-SQLAlchemy >= 1.3.4
# SECTION project.optional-dependencies:image
Recommends: python-scipy >= 1.11
# /SECTION
# SECTION extras_require:image
Recommends: python-scikit-image
Recommends: python-scipy > 1.7.0
# SECTION project.optional-dependencies:jpeg2000
Recommends: python-Glymur >= 0.11
Recommends: python-lxml >= 4.9.1
# /SECTION
# SECTION extras_require:jpeg2000
Recommends: python-Glymur >= 0.9.1
Recommends: python-lxml >= 4.8
# /SECTION
# SECTION extras_require:map
Recommends: python-matplotlib >= 3.5.0
Recommends: python-mpl-animators >= 1.0.0
Recommends: python-reproject
# SECTION project.optional-dependencies:map
Recommends: python-matplotlib >= 3.8.0
Recommends: python-mpl-animators >= 1.2.0
Recommends: python-reproject >= 0.12.0
# scipy
# /SECTION
# SECTION extras_require:net
Recommends: python-beautifulsoup4 >= 4.8.0
Recommends: python-drms >= 0.6.1
Recommends: python-python-dateutil >= 2.8.0
Recommends: python-tqdm >= 4.32.1
Recommends: python-zeep >= 3.4.0
# SECTION project.optional-dependencies:net
Recommends: python-beautifulsoup4 >= 4.13.0
Recommends: python-drms >= 0.7.1
Recommends: python-python-dateutil >= 2.9.0
Recommends: python-tqdm >= 4.66
Recommends: python-zeep >= 4.3.0
# /SECTION
# SECTION extras_require:timeseries
Recommends: python-cdflib >= 0.3.20
Conflicts: python-cdflib = 0.4.0
Recommends: python-h5netcdf
Recommends: python-h5py
Recommends: python-pandas >= 1.2
# SECTION project.optional-dependencies:opencv
Recommends: python-opencv >= 4.8.0.74
# SECTION project.optional-dependencies:scikit-image
Recommends: python-scikit-image >= 0.21
# /SECTION
# SECTION project.optional-dependencies:timeseries
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
# matplotlib
# 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 Glymur >= 0.8.18}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module SQLAlchemy >= 1.3.4}
BuildRequires: %{python_module asdf >= 2.8}
BuildRequires: %{python_module asdf-astropy >= 0.1.1}
BuildRequires: %{python_module beautifulsoup4 >= 4.8.0}
BuildRequires: %{python_module cdflib >= 0.3.20}
BuildRequires: %{python_module dask-array >= 2021.4}
BuildRequires: %{python_module drms >= 0.6.1}
BuildRequires: %{python_module extension-helpers}
BuildRequires: %{python_module h5netcdf}
BuildRequires: %{python_module h5py >= 3.1.0}
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.2}
BuildRequires: %{python_module h5py >= 3.9}
BuildRequires: %{python_module hypothesis >= 6.0.0}
BuildRequires: %{python_module jplephem}
BuildRequires: %{python_module lxml >= 4.8}
BuildRequires: %{python_module matplotlib >= 3.5.0}
BuildRequires: %{python_module mpl-animators >= 1.0.0}
BuildRequires: %{python_module pandas >= 1.2.0}
BuildRequires: %{python_module pytest >= 6}
BuildRequires: %{python_module pytest-astropy >= 0.8}
BuildRequires: %{python_module pytest-doctestplus >= 0.5}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-mpl >= 0.12}
BuildRequires: %{python_module pytest-xdist >= 2}
BuildRequires: %{python_module reproject >= 0.9}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module scikit-image >= 0.18.0}
BuildRequires: %{python_module scipy >= 1.7.0}
BuildRequires: %{python_module tox}
BuildRequires: %{python_module zeep >= 3.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.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
@@ -138,8 +137,7 @@ export CFLAGS="%{optflags}"
%{python_expand #
sed -i -e 's@^#!/usr/bin/env python@#!%__$python@' %{buildroot}%{$python_sitearch}/sunpy/extern/distro.py
chmod +x %{buildroot}%{$python_sitearch}/sunpy/extern/distro.py
find %{buildroot}%{$python_sitearch} -name '*.h' -delete -print
find %{buildroot}%{$python_sitearch} -name '*.c' -delete -print
%{$python_compile}
%fdupes %{buildroot}%{$python_sitearch}
}
@@ -153,8 +151,15 @@ 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}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cbeb70d48f82eb00c5949bce6d6ace862b2baf2402797ba5930172442b808130
size 3662938

3
sunpy-7.0.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f59086f42b53a6018696ab57725d9ea5107315c6d5bc833365c5e4e42439ffe0
size 4199162

View File

@@ -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')