Hello community, here is the log from the commit of package python-astropy for openSUSE:Factory checked in at 2020-01-07 23:56:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-astropy (Old) and /work/SRC/openSUSE:Factory/.python-astropy.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-astropy" Tue Jan 7 23:56:24 2020 rev:8 rq:761637 version:4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-astropy/python-astropy.changes 2019-11-21 12:59:21.738515029 +0100 +++ /work/SRC/openSUSE:Factory/.python-astropy.new.6675/python-astropy.changes 2020-01-07 23:57:30.448160688 +0100 @@ -1,0 +2,521 @@ +Tue Jan 7 10:19:19 UTC 2020 - Sebastian Wagner <[email protected]> + +- Require erfa >= 1.7 because of https://github.com/astropy/astropy/issues/9654 + +------------------------------------------------------------------- +Mon Jan 6 17:59:53 UTC 2020 - Todd R <[email protected]> + +- Update to 4.0 + + New Features + > astropy.config + * The config and cache directories and the name of the config file are now + customizable. This allows affiliated packages to put their configuration + files in locations other than ``CONFIG_DIR/.astropy/``. + > astropy.constants + * The version of constants can be specified via ScienceState in a way + that ``constants`` and ``units`` will be consistent. + * Default constants now use CODATA 2018 and IAU 2015 definitions. + * Constants can be pickled and unpickled. + > astropy.convolution + * Fixed a bug where having a kernel defined using unitless astropy + quantity objects would result in a crash + > astropy.coordinates + * Changed ``coordinates.solar_system_ephemeris`` to also accept local files + as input. The ephemeris can now be selected by either keyword (e.g. 'jpl', + 'de430'), URL or file path. + * Added a ``cylindrical`` property to ``SkyCoord`` for shorthand access to a + ``CylindricalRepresentation`` of the coordinate, as is already available + for other common representations. + * The default parameters for the ``Galactocentric`` frame are now controlled by + a ``ScienceState`` subclass, ``galactocentric_frame_defaults``. New + parameter sets will be added to this object periodically to keep up with + ever-improved measurements of the solar position and motion. + * Coordinate frame classes can now have multiple aliases by assigning a list + of aliases to the class variable ``name``. Any of the aliases can be used + for attribute-style access or as the target of ``tranform_to()`` calls. + + * Passing a NaN to ``Distance`` no longer raises a warning. + > astropy.cosmology + * The pre-publication Planck 2018 cosmological parameters are included as the + ``Planck2018_arXiv_v2`` object. Please note that the values are preliminary, + and when the paper is accepted a final version will be included as + ``Planck18``. + > astropy.io.ascii + * Removed incorrect warnings on ``Overflow`` when reading in + ``FloatType`` 0.0 with ``use_fast_converter``; synchronised + ``IntType`` ``Overflow`` warning messages. + > astropy.io.misc + * Eliminate deprecated compatibility mode when writing ``Table`` metadata to + HDF5 format. + * Add support for orthogonal polynomial models to ASDF. + > astropy.io.fits + * Changed the ``fitscheck`` and ``fitsdiff`` script to use the ``argparse`` + module instead of ``optparse``. + * Allow writing of ``Table`` objects with ``Time`` columns that are also table + indices to FITS files. + > astropy.io.votable + * Support VOTable version 1.4. The main addition is the new element, TIMESYS, + which allows defining of metadata for temporal coordinates much like COOSYS + defines metadata for celestial coordinates. + > astropy.logger + * Added a configuration option to specify the text encoding of the log file, + with the default behavior being the platform-preferred encoding. + > astropy.modeling + * Major rework of modeling internals. `See modeling documentation for details. + <https://docs.astropy.org/en/v4.0.x/modeling/changes_for_4.html>`_ . + * Add ``Tabular1D.inverse``. + * ``Model.rename`` was changed to add the ability to rename ``Model.inputs`` + and ``Model.outputs``. + * New function ``fix_inputs`` to generate new models from others by fixing + specific inputs variable values to constants. + * ``inputs`` and ``outputs`` are now model instance attributes, and ``n_inputs`` + and ``n_outputs`` are class attributes. Backwards compatible default + values of ``inputs`` and ``outputs`` are generated. ``Model.inputs`` and + ``Model.outputs`` are now settable which allows renaming them on per user + case. + * Add a new model representing a sequence of rotations in 3D around an + arbitrary number of axes. + * Add many of the numpy ufunc functions as models. + * Add ``BlackBody`` model. + * Add ``Drude1D`` model. + * Added analytical King model (KingProjectedAnalytic1D). + * Added Exponential1D and Logarithmic1D models. + > astropy.nddata + * Add a way for technically invalid but unambiguous units in a fits header + to be parsed by ``CCDData``. + * ``NDData`` now only accepts WCS objects which implement either the high, or + low level APE 14 WCS API. All WCS objects are converted to a high level WCS + object, so ``NDData.wcs`` now always returns a high level APE 14 object. Not + all array slices are valid for wcs objects, so some slicing operations which + used to work may now fail. + > astropy.stats + * The ``biweight_location``, ``biweight_scale``, and + ``biweight_midvariance`` functions now allow for the ``axis`` + keyword to be a tuple of integers. + * Added an ``ignore_nan`` option to the ``biweight_location``, + ``biweight_scale``, and ``biweight_midvariance`` functions. + * A numpy ``MaskedArray`` can now be input to the ``biweight_location``, + ``biweight_scale``, and ``biweight_midvariance`` functions. + * Removed the warning related to p0 in the Bayesian blocks algorithm. The + caveat related to p0 is described in the docstring for ``Events``. + > astropy.table + * Improved the implementation of ``Table.replace_column()`` to provide + a speed-up of 5 to 10 times for wide tables. The method can now accept + any input which convertible to a column of the correct length, not just + ``Column`` subclasses. + * Improved the implementation of ``Table.add_column()`` to provide a speed-up + of 2 to 10 (or more) when adding a column to tables, with increasing benefit + as the number of columns increases. The method can now accept any input + which is convertible to a column of the correct length, not just ``Column`` + subclasses. + * Changed the implementation of ``Table.add_columns()`` to use the new + ``Table.add_column()`` method. In most cases the performance is similar + or slightly faster to the previous implemenation. + * ``MaskedColumn.data`` will now return a plain ``MaskedArray`` rather than + the previous (unintended) ``masked_BaseColumn``. + * Added depth-wise stacking ``dstack()`` in higher level table operation. + It help will in stacking table column depth-wise. + * Added a new table equality method ``values_equal()`` which allows comparison + table values to another table, list, or value, and returns an + element-by-element equality table. + * Added new ``join_type='cartesian'`` option to the ``join`` operation. + * Allow adding a table column as a list of mixin-type objects, for instance + ``t['q'] = [1 * u.m, 2 * u.m]``. + * Allow table ``join()`` using any sortable key column (e.g. Time), not + just ndarray subclasses. A column is considered sortable if there is a + ``<column>.info.get_sortable_arrays()`` method that is implemented. + * Added ``Table.iterrows()`` for making row-wise iteration faster. + * Allow table to be initialized with a list of dict where the dict keys + are not the same in every row. The table column names are the set of all keys + found in the input data, and any missing key/value pairs are turned into + missing data in the table. + * Prevent unnecessary ERFA warnings when indexing by ``Time`` columns. + * Added support for sorting tables which contain non-mutable mixin columns + (like ``SkyCoord``) for which in-place item update is not allowed. + * Ensured that inserting ``np.ma.masked`` (or any other value with a mask) into + a ``MaskedColumn`` causes a masked entry to be inserted. + * Fixed a bug that caused an exception when initializing a ``MaskedColumn`` from + another ``MaskedColumn`` that has a structured dtype. + > astropy.tests + * The plugin that handles the custom header in the test output has been + moved to the ``pytest-astropy-header plugin`` package. `See the README at + <https://github.com/astropy/pytest-astropy-header>`__ for information about + using this new plugin. + > astropy.time + * Added a new time format ``ymdhms`` for representing times via year, month, + day, hour, minute, and second attributes. + * ``TimeDelta`` gained a ``to_value`` method, so that it becomes easier to + use it wherever a ``Quantity`` with units of time could be used. + * Made scalar ``Time`` and ``TimeDelta`` objects hashable based on JD, time + scale, and location attributes. + * Improved error message when bad input is used to initialize a ``Time`` or + ``TimeDelta`` object and the format is specified. + * Allow numeric time formats to be initialized with numpy ``longdouble``, + ``Decimal`` instances, and strings. One can select just one of these + using ``in_subfmt``. The output can be similarly set using ``out_subfmt``. + + * Introduce a new ``.to_value()`` method for ``Time`` (and adjusted the + existing method for ``TimeDelta``) so that one can get values in a given + ``format`` and possible ``subfmt`` (e.g., ``to_value('mjd', 'str')``. + * Prevent unecessary ERFA warnings when sorting ``Time`` objects. + > astropy.timeseries + * Addig ``epoch_phase``, ``wrap_phase`` and ``normalize_phase`` keywords to + ``TimeSeries.fold()`` to control the phase of the epoch and to return + normalized phase rather than time for the folded TimeSeries. + > astropy.uncertainty + * ``Distribution`` was rewritten such that it deals better with subclasses. + As a result, Quantity distributions now behave correctly with ``to`` methods + yielding new distributions of the kind expected for the starting + distribution, and ``to_value`` yielding ``NdarrayDistribution`` instances. + + * The ``pdf_*`` properties that were used to calculate statistical properties + of ``Distrubution`` instances were changed into methods. This allows one + to pass parameters such as ``ddof`` to ``pdf_std`` and ``pdf_var`` (which + generally should equal 1 instead of the default 0), and reflects that these + are fairly involved calcuations, not just "properties". + > astropy.units + * Support for unicode parsing. Currently supported superscripts are Ohm, + Ångström, and the micro-sign. + * Accept non-unit type annotations in @quantity_input. + * For numpy 1.17 and later, the new ``__array_function__`` protocol is used to + ensure that all top-level numpy functions interact properly with + ``Quantity``, preserving units also in operations like ``np.concatenate``. + + * Add equivalencies for surface brightness units to spectral_density. + > astropy.utils + * ``astropy.utils.data.download_file`` and + ``astropy.utils.data.get_readable_fileobj`` now provides an ``http_headers`` + keyword to pass in specific request headers for the download. It also now + defaults to providing ``User-Agent: Astropy`` and ``Accept: */*`` + headers. The default ``User-Agent`` value can be set with a new + ``astropy.data.conf.default_http_user_agent`` configuration item. + + * Added a new ``astropy.utils.misc.unbroadcast`` function which can be used + to return the smallest array that can be broadcasted back to the initial + array. + * The specific IERS Earth rotation parameter table used for time and + coordinate transformations can now be set, either in a context or per ++++ 324 more lines (skipped) ++++ between /work/SRC/openSUSE:Factory/python-astropy/python-astropy.changes ++++ and /work/SRC/openSUSE:Factory/.python-astropy.new.6675/python-astropy.changes Old: ---- astropy-3.2.3.tar.gz New: ---- astropy-4.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-astropy.spec ++++++ --- /var/tmp/diff_new_pack.ZEu9Vp/_old 2020-01-07 23:57:32.064161527 +0100 +++ /var/tmp/diff_new_pack.ZEu9Vp/_new 2020-01-07 23:57:32.096161544 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-astropy # -# 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,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-astropy -Version: 3.2.3 +Version: 4.0 Release: 0 Summary: Community-developed python astronomy tools License: BSD-3-Clause @@ -31,7 +31,8 @@ BuildRequires: %{python_module Cython >= 0.21} BuildRequires: %{python_module astropy-helpers} BuildRequires: %{python_module devel} -BuildRequires: %{python_module jupyter_ipython} +BuildRequires: %{python_module ipython} +BuildRequires: %{python_module matplotlib >= 2.1} BuildRequires: %{python_module numpy-devel >= 1.7.0} BuildRequires: %{python_module ply} BuildRequires: %{python_module setuptools} @@ -41,14 +42,14 @@ BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(cfitsio) -BuildRequires: pkgconfig(erfa) >= 1.3.0 +BuildRequires: pkgconfig(erfa) >= 1.7.0 BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(wcslib) Requires: hdf5 -Requires: liberfa1 >= 1.3.0 +Requires: liberfa1 >= 1.7.0 +Requires: python-dbm +Requires: python-matplotlib >= 2.1 Requires: python-numpy >= 1.7.0 -Requires(post): update-alternatives -Requires(preun): update-alternatives Recommends: libxml2-tools Recommends: python-Jinja2 Recommends: python-PyYAML @@ -56,7 +57,7 @@ Recommends: python-bleach Recommends: python-h5py Recommends: python-jplephem -Recommends: python-matplotlib +Recommends: python-matplotlib >= 2.1 Recommends: python-pandas Recommends: python-scikit-image Recommends: python-scipy @@ -68,11 +69,11 @@ BuildRequires: %{python_module bleach} BuildRequires: %{python_module h5py} BuildRequires: %{python_module jplephem} -BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module pandas} BuildRequires: %{python_module scipy} # /SECTION # SECTION test requirements +BuildRequires: %{python_module dbm} BuildRequires: %{python_module mpmath} BuildRequires: %{python_module pytest >= 3.1.0} BuildRequires: %{python_module pytest-arraydiff >= 0.1} @@ -107,18 +108,10 @@ %install %python_install --use-system-libraries --offline -%python_clone -a %{buildroot}%{_bindir}/fitscheck -%python_clone -a %{buildroot}%{_bindir}/fitsdiff -%python_clone -a %{buildroot}%{_bindir}/fitsheader -%python_clone -a %{buildroot}%{_bindir}/fitsinfo -%python_clone -a %{buildroot}%{_bindir}/fits2bitmap -%python_clone -a %{buildroot}%{_bindir}/samp_hub -%python_clone -a %{buildroot}%{_bindir}/showtable -%python_clone -a %{buildroot}%{_bindir}/volint -%python_clone -a %{buildroot}%{_bindir}/wcslint - # Deduplicating files can generate a RPMLINT warning for pyc mtime %{python_expand %fdupes %{buildroot}%{$python_sitearch} +rm -rf %{buildroot}%{$python_sitearch}/astropy/io/votable/tests/__pycache__/*_test.*.pyc +rm -rf %{buildroot}%{$python_sitearch}/astropy/wcs/tests/extension/__pycache__/__init__.*.pyc $python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/misc/tests/ $python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/misc/tests/ $python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/votable/tests/ @@ -139,24 +132,18 @@ } popd -%post -%{python_install_alternative fitscheck fitsdiff fitsheader fitsinfo fits2bitmap samp_hub showtable volint wcslint} - -%preun -%python_uninstall_alternative fitscheck - %files %{python_files} %doc CHANGES.rst README.rst %license licenses/* -%python_alternative %{_bindir}/fitsdiff -%python_alternative %{_bindir}/fitsheader -%python_alternative %{_bindir}/fitscheck -%python_alternative %{_bindir}/fitsinfo -%python_alternative %{_bindir}/fits2bitmap -%python_alternative %{_bindir}/samp_hub -%python_alternative %{_bindir}/showtable -%python_alternative %{_bindir}/volint -%python_alternative %{_bindir}/wcslint +%python3_only %{_bindir}/fitsdiff +%python3_only %{_bindir}/fitsheader +%python3_only %{_bindir}/fitscheck +%python3_only %{_bindir}/fitsinfo +%python3_only %{_bindir}/fits2bitmap +%python3_only %{_bindir}/samp_hub +%python3_only %{_bindir}/showtable +%python3_only %{_bindir}/volint +%python3_only %{_bindir}/wcslint %{python_sitearch}/astropy/ %{python_sitearch}/astropy-%{version}-py*.egg-info ++++++ astropy-3.2.3.tar.gz -> astropy-4.0.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-astropy/astropy-3.2.3.tar.gz /work/SRC/openSUSE:Factory/.python-astropy.new.6675/astropy-4.0.tar.gz differ: char 5, line 1
