|
rdobuilder |
81486b |
%bcond_without unittests
|
|
rdobuilder |
81486b |
%global modname munch
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
Name: python-munch
|
|
rdobuilder |
81486b |
Version: 4.0.0
|
|
rdobuilder |
81486b |
Release: 1%{?dist}
|
|
rdobuilder |
81486b |
Summary: A dot-accessible dictionary (a la JavaScript objects)
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
License: MIT
|
|
rdobuilder |
81486b |
URL: https://pypi.io/project/munch
|
|
rdobuilder |
81486b |
Source0: %pypi_source %{modname}
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
# Compatibility with Python 3.13 which has added more class attributes
|
|
rdobuilder |
81486b |
# https://github.com/Infinidat/munch/pull/104
|
|
rdobuilder |
81486b |
Patch: Adjust-tests-for-Python-3.13.patch
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
BuildArch: noarch
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
BuildRequires: python3-devel
|
|
rdobuilder |
81486b |
BuildRequires: pyproject-rpm-macros
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%if %{with unittests}
|
|
rdobuilder |
81486b |
# the testing extra combines coverage, pylint, etc.
|
|
rdobuilder |
81486b |
# tox uses the testing extra and runs coverage command
|
|
rdobuilder |
81486b |
# we'll use pytest directly instead to avoid all those dependencies
|
|
rdobuilder |
81486b |
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
|
|
rdobuilder |
81486b |
BuildRequires: python3-pytest
|
|
rdobuilder |
81486b |
%endif
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%global _description %{expand:
|
|
rdobuilder |
81486b |
munch is a fork of David Schoonover's **Bunch** package, providing similar
|
|
rdobuilder |
81486b |
functionality. 99% of the work was done by him, and the fork was made
|
|
rdobuilder |
81486b |
mainly for lack of responsiveness for fixes and maintenance on the original
|
|
rdobuilder |
81486b |
code.
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
Munch is a dictionary that supports attribute-style access, a la
|
|
rdobuilder |
81486b |
JavaScript.}
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%description %_description
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%package -n python3-munch
|
|
rdobuilder |
81486b |
Summary: %{summary}
|
|
rdobuilder |
81486b |
# This could go away in a subsequent release as per https://github.com/Infinidat/munch/pull/64
|
|
rdobuilder |
81486b |
Requires: %{py3_dist setuptools}
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%description -n python3-munch %_description
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%prep
|
|
rdobuilder |
81486b |
%autosetup -n %{modname}-%{version} -p1
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%generate_buildrequires
|
|
rdobuilder |
81486b |
%pyproject_buildrequires %{?with_unittests:-x yaml}
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
# Remove shebang to make rpmlint happy.
|
|
rdobuilder |
81486b |
sed -i '/\/usr\/bin\/python/d' munch/__init__.py
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
# Remove bundled egg-info in case it exists
|
|
rdobuilder |
81486b |
rm -rf %{modname}.egg-info
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%build
|
|
rdobuilder |
81486b |
%pyproject_wheel
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%install
|
|
rdobuilder |
81486b |
%pyproject_install
|
|
rdobuilder |
81486b |
%pyproject_save_files munch
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%check
|
|
rdobuilder |
81486b |
%pyproject_check_import
|
|
rdobuilder |
81486b |
%if %{with unittests}
|
|
rdobuilder |
81486b |
%pytest
|
|
rdobuilder |
81486b |
%endif
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%files -n python3-munch -f %{pyproject_files}
|
|
rdobuilder |
81486b |
%doc README.md
|
|
rdobuilder |
81486b |
%license LICENSE.txt
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
%changelog
|
|
rdobuilder |
81486b |
* Thu Oct 10 2024 Kevin Fenzi <kevin@scrye.com> - 4.0.0-1
|
|
rdobuilder |
81486b |
- Update to 4.0.0. Fixes rhbz#2203603
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-17
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.5.0-16
|
|
rdobuilder |
81486b |
- Rebuilt for Python 3.13
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-15
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-14
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-13
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sun Jul 02 2023 Python Maint <python-maint@redhat.com> - 2.5.0-12
|
|
rdobuilder |
81486b |
- Rebuilt for Python 3.12
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-11
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-10
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.5.0-9
|
|
rdobuilder |
81486b |
- Rebuilt for Python 3.11
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Thu May 19 2022 Nils Philippsen <nils@redhat.com> - 2.5.0-8
|
|
rdobuilder |
81486b |
- Fix runtime dependency on setuptools
|
|
rdobuilder |
81486b |
- Modernize how the package is built
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-7
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-6
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.5.0-5
|
|
rdobuilder |
81486b |
- Rebuilt for Python 3.10
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-2
|
|
rdobuilder |
81486b |
- Rebuilt for Python 3.9
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Wed Mar 04 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-1
|
|
rdobuilder |
81486b |
- Update to 2.5.0 (#1766566)
|
|
rdobuilder |
81486b |
- Fixes build with Python 3.9 (#1789175)
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-7
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Mon Sep 09 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.2-6
|
|
rdobuilder |
81486b |
- Subpackage python2-munch has been removed
|
|
rdobuilder |
81486b |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.2-5
|
|
rdobuilder |
81486b |
- Rebuilt for Python 3.8
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-4
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.2-3
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Wed Nov 14 2018 Pavel Raiskup <praiskup@redhat.com> - 2.3.2-2
|
|
rdobuilder |
81486b |
- add --without=python{2,3} rpmbuild options
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 2.3.2-1
|
|
rdobuilder |
81486b |
- Update to 2.3.2
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-6
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-5
|
|
rdobuilder |
81486b |
- Rebuilt for Python 3.7
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.2.0-4
|
|
rdobuilder |
81486b |
- Update Python 2 dependency declarations to new packaging standards
|
|
rdobuilder |
81486b |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.0-2
|
|
rdobuilder |
81486b |
- Python 2 binary package renamed to python2-munch
|
|
rdobuilder |
81486b |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Mon Jul 31 2017 Kevin Fenzi <kevin@scrye.com> - 2.2.0-1
|
|
rdobuilder |
81486b |
- Update to 2.2.0. Fixes bug #1475808
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Tue Mar 21 2017 Ralph Bean <rbean@redhat.com> - 2.1.1-1
|
|
rdobuilder |
81486b |
- new version
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Wed Jan 11 2017 Ralph Bean <rbean@redhat.com> - 2.1.0-1
|
|
rdobuilder |
81486b |
- new version
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.4-4
|
|
rdobuilder |
81486b |
- Rebuild for Python 3.6
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-3
|
|
rdobuilder |
81486b |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Fri Dec 11 2015 Ralph Bean <rbean@redhat.com> - 2.0.4-1
|
|
rdobuilder |
81486b |
- new version
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Wed Nov 04 2015 Ralph Bean <rbean@redhat.com> - 2.0.4-1
|
|
rdobuilder |
81486b |
- new version
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sat Oct 03 2015 Ralph Bean <rbean@redhat.com> - 2.0.3-1
|
|
rdobuilder |
81486b |
- new version
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Mon Aug 17 2015 Ralph Bean <rbean@redhat.com> - 2.0.2-4
|
|
rdobuilder |
81486b |
- Define license macro for el6.
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-3
|
|
rdobuilder |
81486b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sun Apr 12 2015 Ralph Bean <rbean@redhat.com> - 2.0.2-2
|
|
rdobuilder |
81486b |
- Remove shebang to make rpmlint happy.
|
|
rdobuilder |
81486b |
|
|
rdobuilder |
81486b |
* Sat Apr 11 2015 Ralph Bean <rbean@redhat.com> - 2.0.2-1
|
|
rdobuilder |
81486b |
- Initial package for Fedora
|