Hello community, here is the log from the commit of package python-sunpy for openSUSE:Factory checked in at 2020-02-03 11:13:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-sunpy (Old) and /work/SRC/openSUSE:Factory/.python-sunpy.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-sunpy" Mon Feb 3 11:13:38 2020 rev:5 rq:768899 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-sunpy/python-sunpy.changes 2019-11-28 10:15:53.163638240 +0100 +++ /work/SRC/openSUSE:Factory/.python-sunpy.new.26092/python-sunpy.changes 2020-02-03 11:13:43.937857486 +0100 @@ -1,0 +2,181 @@ +Wed Jan 29 18:49:45 UTC 2020 - Todd R <toddrme2...@gmail.com> + +- Update to version 1.1.0 + + Backwards Incompatible Changes + * The `sunpy.net.vso.vso.get_online_vso_url` function has been broken into two components, the new `sunpy.net.vso.vso.get_online_vso_url` function takes no arguments (it used to take three) and now only returns an online VSO mirror or None. + The construction of a `zeep.Client` object is now handled by `sunpy.net.vso.vso.build_client` which has a more flexible API for customising the `zeep.Client` interface. + * Importing `sunpy.timeseries.timeseriesbase` no longer automatically imports + Matplotlib. + * `NOAAIndicesTimeSeries.peek` now checks that the `type` argument is a + valid string, and raises a `ValueError` if it isn't. + * Observer-based coordinate frames (`~sunpy.coordinates.frames.Heliocentric` and `~sunpy.coordinates.frames.Helioprojective`) no longer assume a default observer (Earth) if no observer is specified. These frames can now be used with no observer specified, but most transformations cannot be performed for such frames. This removal of a default observer only affects `sunpy.coordinates`, and has no impact on the default observer in `sunpy.map`. + * The callback functions provided to + `~sunpy.visualization.animator.BaseFuncAnimator` ``button_func`` keyword + argument now take two positional arguments rather than one. The function + signature is now ``(animator, event)`` where the first arg is the animator + object, and the second is the matplotlib mouse event. + * The colormap stored in SunPy's Map subclasses (ie. ``map.plot_settings['cmap']``) + can now be colormap string instead of the full `matplotlib.colormap.Colormap` + object. To get the full `Colormap` object use the new attribute + ``map.cmap``. + * Fix a warning in `sunpy.map.GenericMap.rotate` where the truth value of an array + was being calculated. This changes the behaviour of + `~sunpy.map.GenericMap.rotate` when the ``angle=`` parameter is not an + `~astropy.units.Quantity` object to raise `TypeError` rather than `ValueError`. + + Deprecations and Removals + * Removed the step of reparing images (replacing non-finite entries with local mean) before coaligning them. The user is expected to do this themselves before coaligning images. If NaNs/non-finite entries are present, a warning is thrown. + The function `sunpy.image.coalignment.repair_image_nonfinite` is deprecated. + * The method to convert a `~sunpy.coordinates.frames.Helioprojective` frame from 2D to 3D has been renamed from `~sunpy.coordinates.frames.Helioprojective.calculate_distance` to `~sunpy.coordinates.frames.Helioprojective.make_3d`. This method is not typically directly called by users. + * `sunpy.visualization.animator.ImageAnimatorWCS` is now deprecated in favour of + `~sunpy.visualization.animator.ArrayAnimatorWCS`. + * ``sunpy.cm`` has been moved to `sunpy.visualization.colormaps` and will be + removed in a future version. + + Features + * Add a new `sunpy.data.manager` and `sunpy.data.cache` for dealing with versioned remote data within functions. + Please see the `Remote Data Manager <https://docs.sunpy.org/en/latest/dev_guide/remote_data.html>`__ guide. + * Added the coordinate frames `~sunpy.coordinates.frames.HeliocentricEarthEcliptic` (HEE), `~sunpy.coordinates.frames.GeocentricSolarEcliptic` (GSE), `~sunpy.coordinates.frames.HeliocentricInertial` (HCI), and `~sunpy.coordinates.frames.GeocentricEarthEquatorial` (GEI). + * Added SunPy Map support for GOES SUVI images. + * - Support APE14 for ``ImageAnimatorWCS`` in SunPy's visualization module + * Add ability to disable progressbars when dowloading files using `sunpy.net.helioviewer.py` and edited docstrings to mention this feature. + * Adds support for searching and downloading SUVI data. + * Log all VSO XML requests and responses to the SunPy logger at the ``DEBUG`` + level. + * Transformations between frames in `sunpy.coordinates` can now provide detailed debugging output. Set the `logging` level to ``DEBUG`` to enable this output. + * Added the `sunpy.coordinates.sun.carrington_rotation_time` function to + compute the time of a given Carrington rotation number. + * A new method has been added to remove columns from a + `sunpy.timeseries.GenericTimeSeries`. + * Add `shape` property to TimeSeries. + * Added ASDF schemas for the new coordinate frames (`~sunpy.coordinates.frames.GeocentricEarthEquatorial`, `~sunpy.coordinates.frames.GeocentricSolarEcliptic`, `~sunpy.coordinates.frames.HeliocentricEarthEcliptic`, `~sunpy.coordinates.frames.HeliocentricInertial`). See the gallery for an example of using `asdf` to save and load a coordinate frame. + * `sunpy.visualization.animator.ArrayAnimatorWCS` was added which uses the WCS + object to get the coordinates of all axes, including the slider labels. It also provides the + ability to customise the plot by specifying arguments to + `~astropy.visualization.wcsaxes.WCSAxes` methods and supports animation of + WCS aware line plots with Astroy 4.0. + * The returned list of `~sunpy.map.Map` objects is now sorted by filename when + passing a directory or glob pattern to `~sunpy.map.MapFactory`. + * Single character wildcards and character ranges can now be passed as + glob patterns to `~sunpy.map.Map`. + * `~sunpy.map.Map` now accepts filenames and directories as `pathlib.Path` + objects. + * `~sunpy.map.GenericMap` objects now have a ``.cmap`` attribute, which returns the full `~matplotlib.colormap.Colormap`. + object. + * `sunpy.io.write_file()` now accepts `~pathlib.Path` objects as filename inputs. + * `sunpy.map.make_fitswcs_header` now accepts a `tuple` representing the shape of an array as well as the actual array as the ``data`` argument. + * Made a couple of module imports lazy to reduce the import time of sunpy.map by + ~40%. + * `sunpy.map.GenericMap.wcs` now uses the full FITS header to construct the WCS. + This adds support for instruments with more complex projections, such as WISPR, + however does mean that Map will be more sensitive to incorrect or invalid FITS + headers. If you are using custom headers with SunPy Map you might encounter + issues relating to this change. + * `sunpy.visualization.animator.BaseFuncAnimator` now takes an optional + ``slider_labels`` keyword argument which draws text labels in the center of the + sliders. + * Added a more helpful error message when trying to load a file or directory + that doesn't exist with `Map`. + * Add ``__repr__`` for `~sunpy.map.MapSequence` objects so that users can view the + critical information of all the ``Map`` objects, in a concise manner. + + Bug Fixes + * Fixed accuracy issues with the calculations of Carrington longitude (`~sunpy.coordinates.sun.L0`) and Carrington rotation number (`~sunpy.coordinates.sun.carrington_rotation_number`). + * Updated `sunpy.map.header_helper.make_fitswcs_header` to be more strict on the inputs it accepts. + * Fix the calculation of ``rsun_ref`` in `~sunpy.map.make_fitswcs_header` and and + ensure that the default reference pixel is indexed from 1. + * Fixed the missing transformation between two `~sunpy.coordinates.HeliographicCarrington` frames with different observation times. + * `sunpy.map.sources.AIAMap` and `sunpy.map.sources.HMIMap` will no longer assume + the existance of certain header keys. + * `sunpy.map.make_fitswcs_header` now supports specifying the map projection + rather than defaulting to ``TAN``. + * Fix the behaviour of + `sunpy.coordinates.frames.Helioprojective.calculate_distance` if the + representation isn't Spherical. + * Fixed a bug where the longitude of a coordinate would not wrap at the expected angle following a frame transformation. + * Fixed a bug where passing a time or time interval to the differential rotation function threw an error because the new observer was not in HGS. + * Fixed bug where `~sunpy.coordinates.ephemeris.get_horizons_coord` was unable to accept `~astropy.time.Time` arrays as input. + * Fix the ticks on the default heliographic grid overlay so they are not white + (and normally invisible) by default. + * Fixed a bug with `sunpy.net.hek.HEKClient` when the results returned were a mixed dataset. + * Fix `sunpy.physics.differential_rotation.differential_rotate` to rotate in the + correct direction and to account for the rotation of the heliographic + coordinate frame with time. + * Fixed a bug with the handling of changing observation times for transformations between `~astropy.coordinates.HCRS` and `~sunpy.coordinates.frames.HeliographicStonyhurst`, which also indirectly affected other transformations when changing observation times. + * Fixed all coordinate transformations to properly handle a change in observation time. + * Fixed the handling of coordinates with velocity information when transforming between Astropy frames and SunPy frames. + * Fixed `~sunpy.physics.solar_rotation.calculate_solar_rotate_shift` so that it does not calculate a shift between the reference layer and itself, which would sometimes incorrectly result in a shift of a pixel due to numerical precision. + * Stop crash when ``LineAnimator`` ``axes_ranges`` entry given as ``1D`` array when data is ``>1D``, i.e. as an independent axis. + * Fixed a `sunpy.coordinates` bug where a frame using the default observer of Earth could have its observer overwritten during a transformation. + * Fixed a bug where the transformation from `~sunpy.coordinates.frames.Helioprojective` to `~sunpy.coordinates.frames.Heliocentric` used the Sun-observer distance from the wrong frame when shifting the origin, and thus might not give the correct answer if the observer was not the same for the two frames. + * Fixed a bug with the transformations between `~sunpy.coordinates.frames.Heliocentric` and `~sunpy.coordinates.frames.HeliographicStonyhurst` when the frame observation time was not the same as the observer observation time. The most common way to encounter this bug was when transforming from `~sunpy.coordinates.frames.Helioprojective` to any non-observer-based frame while also changing the observation time. + * VSO client `fetch` should not download when `wait` keyword argument is specified. + * Fixed a bug with `~sunpy.coordinates.wcs_utils.solar_frame_to_wcs_mapping` that assumed that the supplied frame was a SunPy frame. + * Fixed bugs with `~sunpy.coordinates.wcs_utils.solar_frame_to_wcs_mapping` if the input frame does not include an observation time or an observer. + * `~sunpy.coordinates.utils.GreatArc` now accounts for the start and end points of the arc having different observers. + * Fixed situations where 2D coordinates provided to `~sunpy.coordinates.frames.HeliographicStonyhurst` and `~sunpy.coordinates.frames.HeliographicCarrington` were not converted to 3D as intended. Furthermore, the stored data will always be the post-conversion, 3D version. + * Fix off by one error in `sunpy.map.make_fitswcs_header` where when using the + default ``reference_pixel=None`` keyword argument the pixel coordinate of the + reference pixel was off by +1. + * Updated both GOES XRS and LYRA dataretriever clients to use `~sunpy.util.scraper.Scraper`, to make sure that files are actually on the servers being queried. + * Fixing the ordering of lon and lat inputs into make_fitswcs_header + * Updated the URL for Fermi spacecraft-pointing files to use an HTTPS connection to HEASARC. + * Fixed a bug where permission denied errors when downloading files are very verbose by adding an error message in `~sunpy.net.fido_factory.UnifiedDownloaderFactory.fetch`. + * Fixed a malformed call to `astropy.time.Time` in a test, which resulted in an incorrect time scale (UTC instead of TT). + * Fix incorrect files being included in the tarball, and docs missing from the + tarball + * Fixed a bug where clipping behavior had been enabled by default in the plotting normalizers for ``Map`` objects. Clipping needs to be disabled to make use of the over/under/masked colors in the colormap. + * Fix a bug with observer based frames that prevented a coordinate with an array of obstimes being transformed to other frames. + * `sunpy.map.GenericMap` will no longer raise a warning if the posisition of the + observer is not known for frames that don't need an observer, i.e. heliographic + frames. + * Apply `os.path.expanduser` to `sunpy.map.MapFactory` input + before passing to `glob.glob` + * Fix multiple instances of `sunpy.map.sources` assuming the type of FITS Header + values. + * Fixed a bug with `~sunpy.coordinates.NorthOffsetFrame` where non-spherical representations for the north pole produced an error. + * Fixed ``map.__repr__`` when the coordinate system information contained in the + ``CUNIT1/2`` metadata is not set to a known value. + * Fixed bugs with some coordinate transformations when ``obstime`` is ``None`` on the destination frame but can be assumed to be the same as the ``obstime`` of the source frame. + * Updated `sunpy.map.mapsequence.MapSequence` so that calling ``_derotate()`` raises ``NotImplementedError``. + Added associated tests. + * Fixed pandas plotting registration in `sunpy.timeseries`. + * Correctly catch and emit a warning when converting a map metadata to a FITS + header and it contains a keyword with non-ascii characters. + + Improved Documentation + * Clean up the docstring for `sunpy.physics.differential_rotation.solar_rotate_coordinate` to make the example clearer. + * Added new gallery examples and cleaned up various gallery examples. + * Cleaned and expanded upon the docstrings for each Fido Client. + * Added clarifying hyperlinks to the gallery example `getting_lasco_observer_location` to link to `astroquery` docs page. + * Added more details to docstrings in `sunpy.coordinates.frames`. + * Added a link to package maintainer list in the API Stability page. + * Improved the contributing guide by updating commands and highlighting text. + * Removing `.fits` from the end of path kwargs in `sunpy.net.FIDO.fetch` docs to change output file extension from `{file}.fits.fits` to `{file}.fits`. + * A new example gallery section "Using SunPy with Other Packages" has been added, + which contains a set of new examples using the `reproject + <https://reproject.readthedocs.io/>`__ with solar data. + * Added a table of supported coordinate systems and other miscellaneous improvements to the :ref:`coordinates documentation <sunpy-coordinates>`. + * Clarified the meaning of :attr:`GenericMap.dsun`. + * Fixed the plots with multiple subplots in the ``Map`` user guide to properly use `~astropy.visualization.wcsaxes` and to be appropriately sized. + * Fixed various issues with the gallery example of saving/loading coordinates using `asdf`. + * Added ``sunpy.__citation__`` with a BibTex entry for citing sunpy. + * Added an example showing how to display two maps and fade between them. + * Clarified the meaning of some `GenericMap` observer properties. + * Added inherited members of `sunpy.map` classes to the docs. + * Fixed documentation of `sunpy.database.Database.search` by adding ``Returns`` docstring. + * Updated the docstring for the parameter ``sortby`` in `~sunpy.map.MapSequence` with the default value, valid value and how to disable sorting. + * Updated the tour guide to reflect that the time series is not random data. + * Fixes bold type and extra line breaks of remote data manager example + in `remote_data_manager.py`. + + Trivial/Internal Changes + * Allow running our sphinx-gallery examples as Jupyter notebooks via Binder + * Improve error messages and type checking in + `sunpy.visualization.animator.image.ImageAnimatorWCS`. + * Copy the library `distro` into `sunpy/extern`: replaces the deprecated `platform/linux_distribution` + * The version of Matplotlib used to generate figure tests has been bumped from + 3.0.3 to 3.1.1. + * Corrected spelling of 'plotting' in timeseries method (changed 'ploting' to 'plotting'). + * Switched to "importlib_metadata" to get package version to speed up import of SunPy. + * Fix tests for `sunpy.data.data_manager` and ensure they are correctly executed with pytest. +- Add fix_importlib_py_ver.patch + Fixes a dependency that is not required for later python versions. + See https://github.com/sunpy/sunpy/pull/3683 + +------------------------------------------------------------------- Old: ---- sunpy-1.0.6.tar.gz New: ---- fix_importlib_py_ver.patch sunpy-1.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-sunpy.spec ++++++ --- /var/tmp/diff_new_pack.p8rA6F/_old 2020-02-03 11:13:46.005858532 +0100 +++ /var/tmp/diff_new_pack.p8rA6F/_new 2020-02-03 11:13:46.005858532 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-sunpy # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,12 +19,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-sunpy -Version: 1.0.6 +Version: 1.1.0 Release: 0 Summary: SunPy: Python for Solar Physics License: BSD-2-Clause AND BSD-3-Clause AND Apache-2.0 AND MIT URL: https://github.com/sunpy/sunpy Source0: https://files.pythonhosted.org/packages/source/s/sunpy/sunpy-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix_importlib_py_ver.patch -- https://github.com/sunpy/sunpy/pull/3683 +Patch0: fix_importlib_py_ver.patch Source100: python-sunpy-rpmlintrc BuildRequires: %{python_module SQLAlchemy} BuildRequires: %{python_module asdf} @@ -43,6 +45,7 @@ BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module suds-jurko} +BuildRequires: %{python_module drms} BuildRequires: fdupes BuildRequires: python-backports.functools_lru_cache BuildRequires: python-rpm-macros @@ -71,13 +74,18 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module zeep} # /SECTION +%if %{python3_version_nodots} < 37 +BuildRequires: %{python_module importlib_resources} +Requires: python-importlib_resources +%endif %python_subpackages %description SunPy is a Python library for solar physics data analysis. %prep -%setup -q -n sunpy-%{version} +%autosetup -p1 -n sunpy-%{version} +sed -i -e '/^#!\//, 1d' sunpy/extern/appdirs.py chmod -x sunpy/data/test/cor1_20090615_000500_s4c1A.fts %build ++++++ fix_importlib_py_ver.patch ++++++ >From 5c612e54aa58bec4aff1e56bd214d54cd630249e Mon Sep 17 00:00:00 2001 From: Ole Streicher <oleb...@debian.org> Date: Mon, 13 Jan 2020 14:14:05 +0100 Subject: [PATCH] Fix Python version for requiring importlib_resources --- changelog/3683.trivial.rst | 1 + setup.cfg | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/3683.trivial.rst diff --git a/changelog/3683.trivial.rst b/changelog/3683.trivial.rst new file mode 100644 index 0000000000..ca72dc8693 --- /dev/null +++ b/changelog/3683.trivial.rst @@ -0,0 +1 @@ +Fix Python version for requiring importlib_resources diff --git a/setup.cfg b/setup.cfg index 6a7bf1381f..894e488d70 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,7 +38,7 @@ install_requires = pandas astropy>=3.1 parfive[ftp] - importlib_resources;python_version<"3.8" + importlib_resources;python_version<"3.7" [options.extras_require] database = sqlalchemy ++++++ sunpy-1.0.6.tar.gz -> sunpy-1.1.0.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-sunpy/sunpy-1.0.6.tar.gz /work/SRC/openSUSE:Factory/.python-sunpy.new.26092/sunpy-1.1.0.tar.gz differ: char 5, line 1