commit python-asdf-astropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-asdf-astropy for openSUSE:Factory checked in at 2023-05-21 19:08:38 Comparing /work/SRC/openSUSE:Factory/python-asdf-astropy (Old) and /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.1533 (New) Package is "python-asdf-astropy" Sun May 21 19:08:38 2023 rev:8 rq:1087852 version:0.4.0 Changes: --- /work/SRC/openSUSE:Factory/python-asdf-astropy/python-asdf-astropy.changes 2022-12-06 14:24:06.502001772 +0100 +++ /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.1533/python-asdf-astropy.changes 2023-05-21 19:09:35.722738929 +0200 @@ -1,0 +2,17 @@ +Thu May 18 19:33:32 UTC 2023 - Ben Greiner + +- Update to 0.4.0 + * Update pins for asdf, asdf-coordinates-schemas, numpy, and +packaging. [#164] + * Add serialization support for non-VOunits. [#142] + * Add serialization support for MagUnit based units. [#146] + * Document and add assert_model_roundtrip and +assert_table_roundtrip to + * asdf_astropy.testing.helpers. [#170] + +--- +Thu May 18 16:09:52 UTC 2023 - Dirk Müller + +- set sle15_python_module_pythons for building with newer python stack on SLE15 + +--- Old: asdf_astropy-0.3.0.tar.gz New: asdf-astropy-0.4.0.tar.gz Other differences: -- ++ python-asdf-astropy.spec ++ --- /var/tmp/diff_new_pack.QOsivh/_old 2023-05-21 19:09:36.170741487 +0200 +++ /var/tmp/diff_new_pack.QOsivh/_new 2023-05-21 19:09:36.174741510 +0200 @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,33 +25,35 @@ %bcond_with test %endif +%{?sle15_python_module_pythons} Name: python-asdf-astropy%{psuffix} -Version:0.3.0 +Version:0.4.0 Release:0 Summary:ASDF serialization support for astropy License:BSD-3-Clause URL:https://github.com/astropy/asdf-astropy -Source: https://files.pythonhosted.org/packages/source/a/asdf-astropy/asdf_astropy-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/a/asdf-astropy/asdf-astropy-%{version}.tar.gz BuildRequires: %{python_module base >= 3.8} -BuildRequires: %{python_module packaging >= 16.0} +BuildRequires: %{python_module packaging >= 19} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools >= 60} BuildRequires: %{python_module setuptools_scm >= 3.4} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-asdf >= 2.8.0 -Requires: python-asdf-coordinates-schemas +Requires: python-asdf >= 2.13 +Requires: python-asdf-coordinates-schemas >= 0.1 Requires: python-asdf-transform-schemas >= 0.2.2 Requires: python-astropy >= 5.0.4 -Requires: python-numpy -Requires: python-packaging >= 16.0 +Requires: python-numpy >= 1.20 +Requires: python-packaging >= 19 %if 0%{?python_version_nodots} < 39 Requires: python-importlib_resources >= 3 %endif %if %{with test} BuildRequires: %{python_module asdf-astropy = %{version}} BuildRequires: %{python_module pytest-astropy} +BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy} %endif @@ -62,13 +64,13 @@ ASDF serialization support for astropy %prep -%autosetup -p1 -n asdf_astropy-%{version} +%autosetup -p1 -n asdf-astropy-%{version} sed -i 's/--color=yes//' pyproject.toml +%if !%{with test} %build %pyproject_wheel -%if !%{with test} %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -76,7 +78,7 @@ %if %{with test} %check -%pytest +%pytest -n auto %endif %if !%{with test}
commit python-asdf-astropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-asdf-astropy for openSUSE:Factory checked in at 2022-12-06 14:23:48 Comparing /work/SRC/openSUSE:Factory/python-asdf-astropy (Old) and /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.1835 (New) Package is "python-asdf-astropy" Tue Dec 6 14:23:48 2022 rev:7 rq:1040470 version:0.3.0 Changes: --- /work/SRC/openSUSE:Factory/python-asdf-astropy/python-asdf-astropy.changes 2022-10-28 19:30:37.994963185 +0200 +++ /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.1835/python-asdf-astropy.changes 2022-12-06 14:24:06.502001772 +0100 @@ -1,0 +2,16 @@ +Tue Dec 6 00:26:43 UTC 2022 - Ben Greiner + +- Fix builddeps + +--- +Mon Dec 5 20:44:55 UTC 2022 - Dirk Müller + +- update to 0.3.0: + * Update citations. + * Switch to using ``pyproject.toml`` for package configuration. + * Fix bug with ``memmap`` of ``Quantity`` objects. + * Drop support for ``numpy-1.18``. + * Fix bug with ``str`` representations of ``astropy.time`` objects. + * Fix bug in preserving the ``dtype`` of ``Quantity`` objects. + +--- Old: asdf_astropy-0.2.2.tar.gz New: asdf_astropy-0.3.0.tar.gz Other differences: -- ++ python-asdf-astropy.spec ++ --- /var/tmp/diff_new_pack.PuOR6C/_old 2022-12-06 14:24:06.942005523 +0100 +++ /var/tmp/diff_new_pack.PuOR6C/_new 2022-12-06 14:24:06.950005591 +0100 @@ -26,7 +26,7 @@ %endif Name: python-asdf-astropy%{psuffix} -Version:0.2.2 +Version:0.3.0 Release:0 Summary:ASDF serialization support for astropy License:BSD-3-Clause @@ -34,13 +34,10 @@ Source: https://files.pythonhosted.org/packages/source/a/asdf-astropy/asdf_astropy-%{version}.tar.gz BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module packaging >= 16.0} -BuildRequires: %{python_module setuptools >= 42} -BuildRequires: %{python_module setuptools_scm} -%if 0%{suse_version} >= 1550 -BuildRequires: %{python_module tomli} -%else -BuildRequires: %{python_module toml} -%endif +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools >= 60} +BuildRequires: %{python_module setuptools_scm >= 3.4} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-asdf >= 2.8.0 @@ -66,14 +63,14 @@ %prep %autosetup -p1 -n asdf_astropy-%{version} -sed -i 's/--color=yes//' setup.cfg +sed -i 's/--color=yes//' pyproject.toml %build -%python_build +%pyproject_wheel %if !%{with test} %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif @@ -85,7 +82,7 @@ %if !%{with test} %files %{python_files} %{python_sitelib}/asdf_astropy -%{python_sitelib}/asdf_astropy-%{version}*-info +%{python_sitelib}/asdf_astropy-%{version}.dist-info %endif %changelog ++ asdf_astropy-0.2.2.tar.gz -> asdf_astropy-0.3.0.tar.gz ++ 1958 lines of diff (skipped)
commit python-asdf-astropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-asdf-astropy for openSUSE:Factory checked in at 2022-10-28 19:30:15 Comparing /work/SRC/openSUSE:Factory/python-asdf-astropy (Old) and /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.2275 (New) Package is "python-asdf-astropy" Fri Oct 28 19:30:15 2022 rev:6 rq:1031583 version:0.2.2 Changes: --- /work/SRC/openSUSE:Factory/python-asdf-astropy/python-asdf-astropy.changes 2022-06-06 11:11:01.355351050 +0200 +++ /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.2275/python-asdf-astropy.changes 2022-10-28 19:30:37.994963185 +0200 @@ -1,0 +2,14 @@ +Thu Oct 27 16:23:35 UTC 2022 - Ben Greiner + +- Update to 0.2.2 + * Add converter for the new Schechter1D model. + * Add CITATION file. + * Add migration and quick-start documentation guides, and update +minimum Python version. + * Update FrameConverter to enable the use of multiple tags. + * Bugfixes for astropy.time converters. + * Remove unnecessary tag: from schemas. + * Add converters for ModelBoundingBox and CompoundBoundingBox. +- Drop asdf-astropy-pr84-fixtests.patch + +--- Old: asdf-astropy-pr84-fixtests.patch asdf_astropy-0.2.1.tar.gz New: asdf_astropy-0.2.2.tar.gz Other differences: -- ++ python-asdf-astropy.spec ++ --- /var/tmp/diff_new_pack.60DRmM/_old 2022-10-28 19:30:38.614966294 +0200 +++ /var/tmp/diff_new_pack.60DRmM/_new 2022-10-28 19:30:38.618966314 +0200 @@ -25,17 +25,14 @@ %bcond_with test %endif -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 Name: python-asdf-astropy%{psuffix} -Version:0.2.1 +Version:0.2.2 Release:0 Summary:ASDF serialization support for astropy License:BSD-3-Clause URL:https://github.com/astropy/asdf-astropy Source: https://files.pythonhosted.org/packages/source/a/asdf-astropy/asdf_astropy-%{version}.tar.gz -# PATCH-FIX-UPSTREAM asdf-astropy-pr84-fixtests.patch -- gh#astropy/asdf-astropy#84 -Patch1: https://github.com/astropy/asdf-astropy/pull/84.patch#/asdf-astropy-pr84-fixtests.patch +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module packaging >= 16.0} BuildRequires: %{python_module setuptools >= 42} BuildRequires: %{python_module setuptools_scm} ++ asdf_astropy-0.2.1.tar.gz -> asdf_astropy-0.2.2.tar.gz ++ 1827 lines of diff (skipped)
commit python-asdf-astropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-asdf-astropy for openSUSE:Factory checked in at 2022-06-06 11:10:51 Comparing /work/SRC/openSUSE:Factory/python-asdf-astropy (Old) and /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.1548 (New) Package is "python-asdf-astropy" Mon Jun 6 11:10:51 2022 rev:5 rq:980930 version:0.2.1 Changes: --- /work/SRC/openSUSE:Factory/python-asdf-astropy/python-asdf-astropy.changes 2022-04-30 22:52:11.524196185 +0200 +++ /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.1548/python-asdf-astropy.changes 2022-06-06 11:11:01.355351050 +0200 @@ -1,0 +2,5 @@ +Sun Jun 5 19:41:15 UTC 2022 - Ben Greiner + +- Add asdf-astropy-pr84-fixtests.patch - gh#astropy/asdf-astropy#84 + +--- New: asdf-astropy-pr84-fixtests.patch Other differences: -- ++ python-asdf-astropy.spec ++ --- /var/tmp/diff_new_pack.2Onf5f/_old 2022-06-06 11:11:02.219352301 +0200 +++ /var/tmp/diff_new_pack.2Onf5f/_new 2022-06-06 11:11:02.227352312 +0200 @@ -34,6 +34,8 @@ License:BSD-3-Clause URL:https://github.com/astropy/asdf-astropy Source: https://files.pythonhosted.org/packages/source/a/asdf-astropy/asdf_astropy-%{version}.tar.gz +# PATCH-FIX-UPSTREAM asdf-astropy-pr84-fixtests.patch -- gh#astropy/asdf-astropy#84 +Patch1: https://github.com/astropy/asdf-astropy/pull/84.patch#/asdf-astropy-pr84-fixtests.patch BuildRequires: %{python_module packaging >= 16.0} BuildRequires: %{python_module setuptools >= 42} BuildRequires: %{python_module setuptools_scm} @@ -66,7 +68,7 @@ ASDF serialization support for astropy %prep -%setup -q -n asdf_astropy-%{version} +%autosetup -p1 -n asdf_astropy-%{version} sed -i 's/--color=yes//' setup.cfg %build ++ asdf-astropy-pr84-fixtests.patch ++ >From f21d85f54f9f528453c4e2b87e334fa436fc0d28 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Fri, 27 May 2022 16:37:18 -0400 Subject: [PATCH 1/3] Add version checking for testing Schechter1D --- asdf_astropy/converters/transform/tests/test_transform.py | 7 +++ 1 file changed, 7 insertions(+) diff --git a/asdf_astropy/converters/transform/tests/test_transform.py b/asdf_astropy/converters/transform/tests/test_transform.py index 7f8306c..41e0699 100644 --- a/asdf_astropy/converters/transform/tests/test_transform.py +++ b/asdf_astropy/converters/transform/tests/test_transform.py @@ -8,6 +8,7 @@ from asdf.tests.helpers import yaml_to_asdf from astropy import units as u from astropy.modeling import models as astropy_models +from astropy.utils import minversion from asdf_astropy import integration from asdf_astropy.testing.helpers import assert_model_equal @@ -305,6 +306,9 @@ def create_single_models(): result.extend([astropy_models.fix_inputs(m, {"x": 45}), astropy_models.fix_inputs(m, {0: 45})]) +if minversion("astropy", "5.1") and minversion("asdf-transform-schemas", "0.2.3"): +result.append(astropy_models.Schechter1D(phi_star=1.0, m_star=2.0, alpha=3.0)) + return result @@ -331,6 +335,9 @@ def create_single_models(): astropy.modeling.physical_models.NFW, ] +if minversion("astropy", "5.1") and not minversion("asdf-transform-schemas", "0.2.3"): +UNSUPPORTED_MODELS.append(astropy.modeling.powerlaws.Schechter1D) + @pytest.mark.parametrize("model", create_single_models()) def test_single_model(tmpdir, model): >From 20e00f994fd47750e00fe74eca80aba24a026a74 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Fri, 27 May 2022 16:45:40 -0400 Subject: [PATCH 2/3] Make test_all_models_supported a parameterized test --- .../transform/tests/test_transform.py | 34 +-- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/asdf_astropy/converters/transform/tests/test_transform.py b/asdf_astropy/converters/transform/tests/test_transform.py index 41e0699..de4cfdf 100644 --- a/asdf_astropy/converters/transform/tests/test_transform.py +++ b/asdf_astropy/converters/transform/tests/test_transform.py @@ -344,15 +344,7 @@ def test_single_model(tmpdir, model): assert_model_roundtrip(model, tmpdir) -def test_all_models_supported(): -""" -Test that all model classes in astropy have serialization -support implemented in this package. If this test fails, -file an issue on GitHub for each missing model and add -the model to the UNSUPPORTED_MODELS list above with -a link to the issue in a comment. -""" - +def get_all_models(): def _iterate_model_classes(): for key, value in itertools.chain( astropy_models.__dict__.items(),
commit python-asdf-astropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-asdf-astropy for openSUSE:Factory checked in at 2022-04-30 22:52:05 Comparing /work/SRC/openSUSE:Factory/python-asdf-astropy (Old) and /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.1538 (New) Package is "python-asdf-astropy" Sat Apr 30 22:52:05 2022 rev:4 rq:973222 version:0.2.1 Changes: --- /work/SRC/openSUSE:Factory/python-asdf-astropy/python-asdf-astropy.changes 2022-03-22 19:40:35.051114078 +0100 +++ /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.1538/python-asdf-astropy.changes 2022-04-30 22:52:11.524196185 +0200 @@ -1,0 +2,7 @@ +Wed Apr 27 10:48:56 UTC 2022 - Ben Greiner + +- Update to v0.2.1 + * Migrate documentation from astropy to asdf-astropy. + * Pin astropy min version to 5.0.4. + +--- Old: asdf_astropy-0.2.0.tar.gz New: asdf_astropy-0.2.1.tar.gz Other differences: -- ++ python-asdf-astropy.spec ++ --- /var/tmp/diff_new_pack.3dIzRy/_old 2022-04-30 22:52:12.008196839 +0200 +++ /var/tmp/diff_new_pack.3dIzRy/_new 2022-04-30 22:52:12.008196839 +0200 @@ -28,7 +28,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-asdf-astropy%{psuffix} -Version:0.2.0 +Version:0.2.1 Release:0 Summary:ASDF serialization support for astropy License:BSD-3-Clause @@ -47,7 +47,7 @@ Requires: python-asdf >= 2.8.0 Requires: python-asdf-coordinates-schemas Requires: python-asdf-transform-schemas >= 0.2.2 -Requires: python-astropy +Requires: python-astropy >= 5.0.4 Requires: python-numpy Requires: python-packaging >= 16.0 %if 0%{?python_version_nodots} < 39 ++ asdf_astropy-0.2.0.tar.gz -> asdf_astropy-0.2.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asdf_astropy-0.2.0/.github/workflows/ci.yml new/asdf_astropy-0.2.1/.github/workflows/ci.yml --- old/asdf_astropy-0.2.0/.github/workflows/ci.yml 2022-03-08 20:25:52.0 +0100 +++ new/asdf_astropy-0.2.1/.github/workflows/ci.yml 2022-04-19 01:06:17.0 +0200 @@ -99,3 +99,32 @@ uses: codecov/codecov-action@v2 with: file: ./coverage.xml + + asdf-transform-schemas-dev: +name: Run asdf-transform-schemas development tests +runs-on: ubuntu-latest +steps: + - name: Checkout asdf-astropy +uses: actions/checkout@v2 +with: + fetch-depth: 0 + path: asdf-astropy + - name: Checkout asdf-transform-schemas-dev +uses: actions/checkout@v2 +with: + fetch-depth: 0 + repository: asdf-format/asdf-transform-schemas + ref: master + path: asdf-transform-schemas + - name: Set up Python 3.9 +uses: actions/setup-python@v2 +with: + python-version: 3.9 + - name: Install asdf-astropy +run: cd asdf-astropy && pip install .[test] + - name: Install asdf-transform-schemas +run: cd asdf-transform-schemas && pip install -e .[test] + - name: Pip Freeze +run: pip freeze + - name: Run asdf-transform-schemas development tests +run: cd asdf-transform-schemas && pytest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asdf_astropy-0.2.0/CHANGES.rst new/asdf_astropy-0.2.1/CHANGES.rst --- old/asdf_astropy-0.2.0/CHANGES.rst 2022-03-08 20:25:52.0 +0100 +++ new/asdf_astropy-0.2.1/CHANGES.rst 2022-04-19 01:06:17.0 +0200 @@ -1,3 +1,9 @@ +0.2.1 (2022-04-18) +-- + +- Migrate documentation from ``astropy`` to ``asdf-astropy``. [#55] +- Pin astropy min version to 5.0.4. [#62] + 0.2.0 (2022-03-08) -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/asdf_astropy-0.2.0/LICENSE.rst new/asdf_astropy-0.2.1/LICENSE.rst --- old/asdf_astropy-0.2.0/LICENSE.rst 1970-01-01 01:00:00.0 +0100 +++ new/asdf_astropy-0.2.1/LICENSE.rst 2022-04-19 01:06:17.0 +0200 @@ -0,0 +1,26 @@ +Copyright (c) 2011-2022, Astropy Developers + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this + list of conditions and the following disclaimer in the
commit python-asdf-astropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-asdf-astropy for openSUSE:Factory checked in at 2022-03-22 19:40:29 Comparing /work/SRC/openSUSE:Factory/python-asdf-astropy (Old) and /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.25692 (New) Package is "python-asdf-astropy" Tue Mar 22 19:40:29 2022 rev:3 rq:963918 version:0.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-asdf-astropy/python-asdf-astropy.changes 2022-03-16 21:15:28.370852233 +0100 +++ /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.25692/python-asdf-astropy.changes 2022-03-22 19:40:35.051114078 +0100 @@ -1,0 +2,5 @@ +Tue Mar 22 11:36:42 UTC 2022 - Ben Greiner + +- Fix setuptools_scm[toml] requirement for old distro + +--- Other differences: -- ++ python-asdf-astropy.spec ++ --- /var/tmp/diff_new_pack.E6ANRh/_old 2022-03-22 19:40:35.563114615 +0100 +++ /var/tmp/diff_new_pack.E6ANRh/_new 2022-03-22 19:40:35.567114619 +0100 @@ -37,7 +37,11 @@ BuildRequires: %{python_module packaging >= 16.0} BuildRequires: %{python_module setuptools >= 42} BuildRequires: %{python_module setuptools_scm} +%if 0%{suse_version} >= 1550 BuildRequires: %{python_module tomli} +%else +BuildRequires: %{python_module toml} +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-asdf >= 2.8.0
commit python-asdf-astropy for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-asdf-astropy for openSUSE:Factory checked in at 2022-03-16 21:15:27 Comparing /work/SRC/openSUSE:Factory/python-asdf-astropy (Old) and /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.25692 (New) Package is "python-asdf-astropy" Wed Mar 16 21:15:27 2022 rev:2 rq:961493 version:0.2.0 Changes: --- /work/SRC/openSUSE:Factory/python-asdf-astropy/python-asdf-astropy.changes 2021-12-30 17:32:17.783569301 +0100 +++ /work/SRC/openSUSE:Factory/.python-asdf-astropy.new.25692/python-asdf-astropy.changes 2022-03-16 21:15:28.370852233 +0100 @@ -1,0 +2,18 @@ +Sun Mar 13 08:03:01 UTC 2022 - Ben Greiner + +- Update to v0.2.0 + * Add support for serialization and deserialization of +input_units_equivalencies for astropy models. + * Bugfix for units_mapping schema's property name conflicts. +Changes: +- inputs to unit_inputs +- outputs to unit_outputs + * Add converter support for Cosine1D, Tangent1D, ArcSine1D, +ArcCosine1D, ArcTangent1D models. + * Add converter for Spline1D model. + * Add astropy Table connector for ASDF. + * Move assert_model_equal to helpers module. + * Fix warnings raised during testing. +- Make _multibuild in order to avoid build cycles + +--- Old: asdf_astropy-0.1.2.tar.gz New: _multibuild asdf_astropy-0.2.0.tar.gz Other differences: -- ++ python-asdf-astropy.spec ++ --- /var/tmp/diff_new_pack.3s5Amq/_old 2022-03-16 21:15:30.254853264 +0100 +++ /var/tmp/diff_new_pack.3s5Amq/_new 2022-03-16 21:15:30.258853267 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-asdf_astropy +# spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,40 +16,45 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 -%define skip_python36 1 -Name: python-asdf-astropy -Version:0.1.2 +Name: python-asdf-astropy%{psuffix} +Version:0.2.0 Release:0 Summary:ASDF serialization support for astropy License:BSD-3-Clause URL:https://github.com/astropy/asdf-astropy Source: https://files.pythonhosted.org/packages/source/a/asdf-astropy/asdf_astropy-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module setuptools_scm} -BuildRequires: %{python_module asdf >= 2.8.0} -BuildRequires: %{python_module asdf-coordinates-schemas} -BuildRequires: %{python_module asdf-transform-schemas} -BuildRequires: %{python_module astropy} -BuildRequires: %{python_module numpy} BuildRequires: %{python_module packaging >= 16.0} -BuildRequires: %{python_module importlib_resources >= 3 if %python-base < 3.9} +BuildRequires: %{python_module setuptools >= 42} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module tomli} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-asdf >= 2.8.0 Requires: python-asdf-coordinates-schemas -Requires: python-asdf-transform-schemas +Requires: python-asdf-transform-schemas >= 0.2.2 Requires: python-astropy Requires: python-numpy Requires: python-packaging >= 16.0 %if 0%{?python_version_nodots} < 39 Requires: python-importlib_resources >= 3 %endif -# SECTION test requirements -BuildRequires: %{python_module pytest} +%if %{with test} +BuildRequires: %{python_module asdf-astropy = %{version}} BuildRequires: %{python_module pytest-astropy} -# /SECTION +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module scipy} +%endif BuildArch: noarch %python_subpackages @@ -58,19 +63,26 @@ %prep %setup -q -n asdf_astropy-%{version} +sed -i 's/--color=yes//' setup.cfg %build %python_build +%if !%{with test} %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif +%if %{with test} %check %pytest +%endif +%if !%{with test} %files %{python_files} %{python_sitelib}/asdf_astropy %{python_sitelib}/asdf_astropy-%{version}*-info +%endif %changelog ++ _multibuild ++ test ++ asdf_astropy-0.1.2.tar.gz -> asdf_astropy-0.2.0.tar.gz ++ 3419 lines of diff (skipped)