2023-05-03 14:04:43 +00:00
|
|
|
# Breaks the circular dependency with ruamel.yaml.clib.
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
2023-11-12 03:06:44 +00:00
|
|
|
%global commit eb3ecf31085135283908fc8449befebbc1fff4b3
|
2016-10-20 13:08:55 +00:00
|
|
|
|
2023-05-03 12:24:30 +00:00
|
|
|
Name: python-ruamel-yaml
|
2023-11-12 03:06:44 +00:00
|
|
|
Version: 0.18.5
|
2024-01-22 06:47:58 +00:00
|
|
|
Release: 2%{?dist}
|
2019-08-28 14:34:00 +00:00
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
2016-10-20 13:08:55 +00:00
|
|
|
|
2023-05-03 12:17:19 +00:00
|
|
|
# SPDX
|
2016-10-20 13:08:55 +00:00
|
|
|
License: MIT
|
2021-02-22 15:08:41 +00:00
|
|
|
URL: https://sourceforge.net/projects/ruamel-yaml
|
2023-05-04 11:28:11 +00:00
|
|
|
# The PyPI sdist does not contain tests, so we use a snapshot from SourceForge
|
2023-05-03 13:09:23 +00:00
|
|
|
Source: https://sourceforge.net/code-snapshots/hg/r/ru/ruamel-yaml/code/ruamel-yaml-code-%{commit}.zip
|
2018-06-29 11:30:52 +00:00
|
|
|
|
2023-05-03 12:38:51 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2023-05-03 12:27:24 +00:00
|
|
|
%global _description %{expand:
|
|
|
|
ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of
|
|
|
|
comments, seq/map flow style, and map key order.}
|
|
|
|
|
|
|
|
%description %{_description}
|
2016-10-20 13:08:55 +00:00
|
|
|
|
2023-05-03 12:24:30 +00:00
|
|
|
%package -n python3-ruamel-yaml
|
2019-08-28 14:34:00 +00:00
|
|
|
Summary: YAML 1.2 loader/dumper package for Python
|
2023-05-03 13:08:40 +00:00
|
|
|
|
2023-05-03 12:24:30 +00:00
|
|
|
BuildRequires: python3-devel
|
2023-05-25 16:29:06 +00:00
|
|
|
BuildRequires: python3-pytest
|
2023-05-03 12:24:30 +00:00
|
|
|
|
|
|
|
%py_provides python3-ruamel.yaml
|
|
|
|
|
2023-05-03 12:27:24 +00:00
|
|
|
%description -n python3-ruamel-yaml %{_description}
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
|
|
%prep
|
2023-05-03 13:04:48 +00:00
|
|
|
%autosetup -n ruamel-yaml-code-%{commit}
|
|
|
|
# Upstream upper-bounds the Python interpeter versions with which the C
|
|
|
|
# implementation (ruamel.yaml.clib dependency) may be used. Patch this out.
|
|
|
|
sed -r -i 's/( and python_version<"[^"]+")(.*ruamel\.yaml\.clib)/\2/' \
|
|
|
|
__init__.py
|
2023-05-03 14:04:43 +00:00
|
|
|
%if %{with bootstrap}
|
|
|
|
sed -r -i 's/^([[:blank:]]*)(.*ruamel\.yaml\.clib)/\1# \2/' __init__.py
|
|
|
|
%endif
|
2023-05-03 13:08:40 +00:00
|
|
|
|
|
|
|
%generate_buildrequires
|
2023-05-25 16:29:06 +00:00
|
|
|
%pyproject_buildrequires
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
|
|
%build
|
2023-05-03 13:08:40 +00:00
|
|
|
%pyproject_wheel
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
|
|
%install
|
2023-05-03 13:08:40 +00:00
|
|
|
%pyproject_install
|
|
|
|
# RFE: Add option for namespace packages to %%pyproject_save_files
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1935266
|
|
|
|
%pyproject_save_files ruamel
|
2016-10-20 13:08:55 +00:00
|
|
|
|
2016-10-26 20:49:09 +00:00
|
|
|
%check
|
2023-05-03 14:04:43 +00:00
|
|
|
%if %{with bootstrap}
|
|
|
|
k="${k-}${k+ and }not test_load_cyaml"
|
|
|
|
k="${k-}${k+ and }not test_load_cyaml_1_2"
|
|
|
|
k="${k-}${k+ and }not test_dump_cyaml_1_2"
|
|
|
|
%endif
|
|
|
|
%pytest -k "${k-}" _test/test_*.py
|
2016-10-20 13:08:55 +00:00
|
|
|
|
2023-05-03 13:08:40 +00:00
|
|
|
%files -n python3-ruamel-yaml -f %{pyproject_files}
|
|
|
|
# pyproject_files handles LICENSE; verify with “rpm -qL -p …”
|
2023-10-24 12:49:11 +00:00
|
|
|
%doc README.md
|
2016-10-20 13:08:55 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-01-22 06:47:58 +00:00
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.18.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
2023-11-12 03:06:44 +00:00
|
|
|
* Sun Nov 12 2023 Parag Nemade <pnemade AT redhat DOT com> - 0.18.5-1
|
|
|
|
- Update to 0.18.5
|
|
|
|
|
2023-10-26 08:51:09 +00:00
|
|
|
* Thu Oct 26 2023 Joel Capitao <jcapitao@redhat.com> - 0.18.2-1
|
|
|
|
- Update to 0.18.2 (close RHBZ#2245968)
|
|
|
|
|
2023-10-24 12:49:11 +00:00
|
|
|
* Tue Oct 24 2023 Joel Capitao <jcapitao@redhat.com> - 0.18.1-1
|
|
|
|
- Update to 0.18.1 (close RHBZ#2241174)
|
|
|
|
|
2023-07-21 13:47:48 +00:00
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.32-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
2023-06-22 13:20:26 +00:00
|
|
|
* Thu Jun 22 2023 Python Maint <python-maint@redhat.com> - 0.17.32-2
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-06-19 06:08:51 +00:00
|
|
|
* Mon Jun 19 2023 Joel Capitao <jcapitao@redhat.com> - 0.17.32-1
|
|
|
|
- Update to 0.17.32 (close RHBZ#2210057)
|
|
|
|
|
2023-06-14 09:04:00 +00:00
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.17.26-4
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
2023-06-14 07:39:43 +00:00
|
|
|
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.17.26-3
|
|
|
|
- Bootstrap for Python 3.12
|
|
|
|
|
2023-05-25 16:29:06 +00:00
|
|
|
* Wed May 24 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.17.26-2
|
|
|
|
- Avoid tox dependency
|
|
|
|
|
2023-05-19 17:44:33 +00:00
|
|
|
* Tue May 09 2023 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 0.17.26-1
|
|
|
|
- Update to 0.17.26 (close RHBZ#2196655)
|
|
|
|
|
2023-05-07 13:27:28 +00:00
|
|
|
* Sun May 07 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.24-1
|
|
|
|
- Update to 0.17.24 (close RHBZ#2193478)
|
|
|
|
|
2023-05-03 12:17:19 +00:00
|
|
|
* Thu May 04 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.22-2
|
|
|
|
- Confirm License is SPDX MIT
|
2023-05-03 12:24:30 +00:00
|
|
|
- Reduce macro indirection and drop ancient constructs and conditionals
|
2023-05-03 12:27:24 +00:00
|
|
|
- Update description from upstream
|
2023-05-03 12:38:51 +00:00
|
|
|
- Make the package noarch (python-ruamel-yaml-clib contains the compiled code)
|
2023-05-03 13:04:48 +00:00
|
|
|
- Fix upper-bounded Python interpreter version for ruamel.yaml.clib dependency
|
2023-05-03 13:08:00 +00:00
|
|
|
- Drop unused manual runtime dependency on setuptools
|
2023-05-03 13:08:40 +00:00
|
|
|
- Port to pyproject-rpm-macros (“new Python guidelines”)
|
2023-05-03 13:09:23 +00:00
|
|
|
- Stop numbering the source archive
|
2023-05-03 14:04:43 +00:00
|
|
|
- Add a bootstrap conditional to break the circular dependency with
|
|
|
|
ruamel.yaml.clib
|
2023-05-04 11:28:11 +00:00
|
|
|
- Fix an obsolete comment referring to bitbucket
|
2023-05-03 12:17:19 +00:00
|
|
|
|
2023-05-03 23:07:35 +00:00
|
|
|
* Wed May 03 2023 Maxwell G <maxwell@gtmx.me> - 0.17.22-1
|
|
|
|
- Update to 0.17.22. Fixes rhbz#2192464.
|
|
|
|
|
2023-01-20 17:06:18 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.21-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-07-22 22:09:25 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.21-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-06-13 15:15:50 +00:00
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.17.21-2
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
2022-05-12 11:51:02 +00:00
|
|
|
* Tue May 10 2022 Jakub Čajka <jcajka@redhat.com> - 0.17.21-1
|
|
|
|
- Update to 0.17.21
|
|
|
|
- Related: BZ#2042422
|
|
|
|
|
2022-01-21 15:21:12 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-07-23 09:20:30 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-04 19:00:19 +00:00
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.16.6-7
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-02-22 15:08:41 +00:00
|
|
|
* Mon Feb 22 2021 Joel Capitao <jcapitao@redhat.com> - 0.16.6-6
|
|
|
|
- Change upstream URL
|
|
|
|
- Remove obsolete patch
|
|
|
|
|
2021-01-27 13:15:10 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-07-29 03:44:30 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-26 01:38:20 +00:00
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.16.6-3
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-01-30 15:07:56 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-05-14 21:45:38 +00:00
|
|
|
* Mon Jan 20 2020 Jason Montleon <jmontleo@redhat.com> - 0.16.6-1
|
2020-01-20 19:15:25 +00:00
|
|
|
- Update to 0.16.6
|
|
|
|
|
2019-10-03 12:29:22 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.16.5-3
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-30 17:47:37 +00:00
|
|
|
* Fri Aug 30 2019 Chandan Kumar <raukadah@gmail.com> - 0.16.5-2
|
|
|
|
- Added ruamel-yaml-clib as Requires
|
|
|
|
|
2019-08-28 14:34:00 +00:00
|
|
|
* Tue Aug 27 2019 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.16.5-1
|
|
|
|
- Update to 0.16.5
|
|
|
|
|
2019-08-19 08:55:54 +00:00
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-6
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-07-26 16:07:49 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-02 09:10:59 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-14 12:41:40 +00:00
|
|
|
* Mon Jan 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-3
|
|
|
|
- Subpackage python2-ruamel-yaml has been removed
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
|
|
2018-07-14 01:59:26 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.41-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-29 11:30:52 +00:00
|
|
|
* Fri Jun 29 2018 Miro Hrončok <mhroncok@redhat.com> - 0.15.41-1
|
|
|
|
- Update to 0.15.41
|
|
|
|
- Add patch not to require ruamel.std.pathlib
|
|
|
|
|
2018-06-19 09:18:27 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.13.14-4
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-09 13:33:39 +00:00
|
|
|
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.13.14-3
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
2018-02-09 10:41:53 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-08-09 19:06:17 +00:00
|
|
|
* Wed Aug 9 2017 Orion Poplawski <orion@nwra.com> - 0.13.14-1
|
|
|
|
- Update to 0.13.14
|
|
|
|
|
2017-08-03 06:58:20 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 11:45:06 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-13 15:45:07 +00:00
|
|
|
* Mon Feb 13 2017 Jan Chaloupka <jchaloup@redhat.com> - 0.13.13-3
|
|
|
|
- The ruamel.yaml needs at least typing >= 3.5.2.2
|
|
|
|
related: #1386563
|
|
|
|
|
2017-02-11 10:24:20 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.13-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-31 22:44:30 +00:00
|
|
|
* Tue Jan 31 2017 Orion Poplawski <orion@cora.nwra.com> - 0.13.13-1
|
|
|
|
- Update to 0.13.13
|
|
|
|
|
2017-01-31 22:30:07 +00:00
|
|
|
* Tue Jan 31 2017 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-7
|
|
|
|
- Add patch to support pytest 2.7 in EPEL7
|
|
|
|
|
2016-12-19 17:20:38 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.12.14-6
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-10-26 22:22:51 +00:00
|
|
|
* Wed Oct 26 2016 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-5
|
|
|
|
- Require python34-typing on EPEL
|
|
|
|
- Ignore python2 test failure due to old pytest on EPEL7
|
|
|
|
|
2016-10-26 20:49:09 +00:00
|
|
|
* Wed Oct 26 2016 Orion Poplawski <orion@cora.nwra.com> - 0.12.14-4
|
|
|
|
- Build python3 package
|
|
|
|
- Run tests
|
|
|
|
|
2016-10-25 12:02:27 +00:00
|
|
|
* Tue Oct 25 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-3
|
|
|
|
- Disabling python3 as python3-ruamel-ordereddict not available
|
|
|
|
|
2016-10-24 05:58:40 +00:00
|
|
|
* Mon Oct 24 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-2
|
|
|
|
- Fixed python2-typing runtime dependency issue
|
|
|
|
|
2016-10-20 13:08:55 +00:00
|
|
|
* Fri Oct 14 2016 Chandan Kumar <chkumar@redhat.com> - 0.12.14-1
|
|
|
|
- Initial package.
|