Hello community, here is the log from the commit of package python-asdf for openSUSE:Factory checked in at 2019-11-28 10:15:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-asdf (Old) and /work/SRC/openSUSE:Factory/.python-asdf.new.26869 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-asdf" Thu Nov 28 10:15:05 2019 rev:3 rq:751399 version:2.4.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-asdf/python-asdf.changes 2019-08-06 17:27:35.192684532 +0200 +++ /work/SRC/openSUSE:Factory/.python-asdf.new.26869/python-asdf.changes 2019-11-28 10:15:43.235638139 +0100 @@ -1,0 +2,19 @@ +Fri Nov 22 15:12:48 UTC 2019 - Todd R <toddrme2...@gmail.com> + +- Update to 2.4.2 + * Limit the version of semantic_version to <=2.6.0 to work around a Deprecation warning. +- Update to 2.4.1 + * Define the ``in`` operator for top-level ``AsdfFile`` objects. + * Overhaul packaging infrastructure. Remove use of ``astropy_helpers``. + * Automatically register schema tester plugin. Do not enable schema tests by + default. Add configuration setting and command line option to enable schema + tests. + * Enable handling of subclasses of known custom types by using decorators for + convenience. + * Add support for jsonschema 3.x. +- Add allow_recent_semantic_version.patch to provide support for + the version of python-semantic_version we have. + From: https://github.com/spacetelescope/asdf/pull/715 + See: https://github.com/spacetelescope/asdf/issues/702 + +------------------------------------------------------------------- Old: ---- asdf-2.3.3.tar.gz New: ---- allow_recent_semantic_version.patch asdf-2.4.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-asdf.spec ++++++ --- /var/tmp/diff_new_pack.FEtCW0/_old 2019-11-28 10:15:44.879638156 +0100 +++ /var/tmp/diff_new_pack.FEtCW0/_new 2019-11-28 10:15:44.883638156 +0100 @@ -12,46 +12,47 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-asdf -Version: 2.3.3 +Version: 2.4.2 Release: 0 -License: BSD-3-Clause AND BSD-2-Clause Summary: Python tools to handle ASDF files -Url: http://github.com/spacetelescope/asdf -Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/a/asdf/asdf-%{version}.tar.gz +License: BSD-3-Clause AND BSD-2-Clause +URL: https://github.com/spacetelescope/asdf +Source0: https://files.pythonhosted.org/packages/source/a/asdf/asdf-%{version}.tar.gz +# PATCH-FIX-UPSTREAM allow_recent_semantic_version.patch -- https://github.com/spacetelescope/asdf/pull/715 +Patch0: allow_recent_semantic_version.patch BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module setuptools_scm} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-PyYAML >= 3.10 +Requires: python-astropy +Requires: python-astropy-helpers +Requires: python-jsonschema < 4 +Requires: python-jsonschema >= 2.3 +Requires: python-numpy >= 1.8 +Requires: python-semantic_version >= 2.8 +Requires: python-six >= 1.9.0 +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML >= 3.10} -BuildRequires: %{python_module astropy} BuildRequires: %{python_module astropy-helpers} +BuildRequires: %{python_module astropy} +BuildRequires: %{python_module jsonschema < 4} BuildRequires: %{python_module jsonschema >= 2.3} -# Version 2.4 will support jsonschema 3 -BuildRequires: %{python_module jsonschema < 3} BuildRequires: %{python_module numpy >= 1.8} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest-astropy} BuildRequires: %{python_module pytest-openfiles >= 0.3.1} -BuildRequires: %{python_module semantic_version >= 2.3.1} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module semantic_version >= 2.8} BuildRequires: %{python_module six >= 1.9.0} # /SECTION -Requires: python-PyYAML >= 3.10 -Requires: python-astropy -Requires: python-astropy-helpers -Requires: python-jsonschema >= 2.3 -Requires: python-jsonschema < 3 -Requires: python-numpy >= 1.8 -Requires: python-semantic_version >= 2.3.1 -Requires: python-six >= 1.9.0 -BuildArch: noarch - %python_subpackages %description @@ -61,6 +62,7 @@ %prep %setup -q -n asdf-%{version} +%autopatch -p1 sed -i -e '/^#!\//, 1d' asdf/extern/RangeHTTPServer.py sed -i 's/\r$//' asdf/tests/data/example_schema.json chmod a-x asdf/tests/data/example_schema.json @@ -73,11 +75,12 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +export LANG=en_US.UTF-8 %pytest %files %{python_files} %doc CHANGES.rst README.rst -%license licenses/LICENSE.rst licenses/README.rst licenses/SUNPY_LICENSE.rst +%license licenses/* %python3_only %{_bindir}/asdftool %{python_sitelib}/* ++++++ allow_recent_semantic_version.patch ++++++ >From 20bc46348fa1826e75ef18968dc882045b525a11 Mon Sep 17 00:00:00 2001 From: Nadia Dencheva <nadia.dench...@gmail.com> Date: Fri, 15 Nov 2019 11:32:16 -0500 Subject: [PATCH 1/2] replace SpecItem with SimpleSpec --- asdf/versioning.py | 9 +++++---- setup.cfg | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/asdf/versioning.py b/asdf/versioning.py index 81df4f3e..61994e22 100644 --- a/asdf/versioning.py +++ b/asdf/versioning.py @@ -5,6 +5,7 @@ This module deals with things that change between different versions of the ASDF spec. """ + from functools import total_ordering import yaml @@ -14,7 +15,7 @@ else: # pragma: no cover _yaml_base_loader = yaml.SafeLoader -from semantic_version import Version, SpecItem, Spec +from semantic_version import Version, SimpleSpec from . import generic_io from . import resolver @@ -83,7 +84,7 @@ class AsdfVersionMixin: def __eq__(self, other): # Seems like a bit of a hack... - if isinstance(other, SpecItem): + if isinstance(other, SimpleSpec): return other == self if isinstance(other, (str, tuple, list)): other = AsdfVersion(other) @@ -123,7 +124,7 @@ def __init__(self, version): super(AsdfVersion, self).__init__(version) -class AsdfSpec(SpecItem, Spec): +class AsdfSpec(SimpleSpec): def __init__(self, *args, **kwargs): super(AsdfSpec, self).__init__(*args, **kwargs) @@ -147,7 +148,7 @@ def filter(self, versions): def __eq__(self, other): """Equality between Spec and Version, string, or tuple, means match""" - if isinstance(other, SpecItem): + if isinstance(other, SimpleSpec): return super(AsdfSpec, self).__eq__(other) return self.match(other) diff --git a/setup.cfg b/setup.cfg index 339f3b74..e038988a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,7 +31,7 @@ package_dir = asdf.reference_files = asdf-standard/reference_files include_package_data = True install_requires = - semantic_version>=2.3.1,<=2.6.0 + semantic_version>=2.8 pyyaml>=3.10 jsonschema>=2.3,<4 six>=1.9.0 ++++++ asdf-2.3.3.tar.gz -> asdf-2.4.2.tar.gz ++++++ ++++ 18926 lines of diff (skipped)