From 173e010ed54e63ee2575e93044d91c20ef656ac4 Mon Sep 17 00:00:00 2001 From: Joel Capitao Date: Jan 20 2025 10:18:21 +0000 Subject: Import python-logutils-0.3.5-29.el10s in CloudSIG Epoxy --- diff --git a/.python-logutils.metadata b/.python-logutils.metadata new file mode 100644 index 0000000..9cc2f68 --- /dev/null +++ b/.python-logutils.metadata @@ -0,0 +1 @@ +5a320057ba29f2e6b12ebca66cf27477e88b4dad SOURCES/logutils-0.3.5.tar.gz diff --git a/SOURCES/0001-remove-test_hashandlers.patch b/SOURCES/0001-remove-test_hashandlers.patch new file mode 100644 index 0000000..4e77611 --- /dev/null +++ b/SOURCES/0001-remove-test_hashandlers.patch @@ -0,0 +1,40 @@ +diff --git a/tests/test_adapter.py b/tests/test_adapter.py +index d29bd10..fa05a57 100644 +--- a/tests/test_adapter.py ++++ b/tests/test_adapter.py +@@ -57,13 +57,6 @@ class AdapterTest(unittest.TestCase): + message='nd so w')) + self.assertFalse(h.matches(levelno=logging.INFO)) + +- def test_hashandlers(self): +- "Test of hasHandlers() functionality." +- self.assertTrue(self.adapter.hasHandlers()) +- self.logger.removeHandler(self.handler) +- self.assertFalse(self.adapter.hasHandlers()) +- self.logger.addHandler(self.handler) +- self.assertTrue(self.adapter.hasHandlers()) + + if __name__ == '__main__': + unittest.main() +diff --git a/tests/test_dictconfig.py b/tests/test_dictconfig.py +index 3aee984..3ad44ed 100644 +--- a/tests/test_dictconfig.py ++++ b/tests/test_dictconfig.py +@@ -568,7 +568,7 @@ class ConfigDictTest(unittest.TestCase): + raise RuntimeError() + except RuntimeError: + logging.exception("just testing") +- self.assertEquals(h.formatted[0], ++ self.assertEqual(h.formatted[0], + "ERROR:root:just testing\nGot a [RuntimeError]") + + def test_config4a_ok(self): +@@ -580,7 +580,7 @@ class ConfigDictTest(unittest.TestCase): + raise RuntimeError() + except RuntimeError: + logging.exception("just testing") +- self.assertEquals(h.formatted[0], ++ self.assertEqual(h.formatted[0], + "ERROR:root:just testing\nGot a [RuntimeError]") + + def test_config5_ok(self): diff --git a/SPECS/python-logutils.spec b/SPECS/python-logutils.spec new file mode 100644 index 0000000..11e213f --- /dev/null +++ b/SPECS/python-logutils.spec @@ -0,0 +1,205 @@ +%global modname logutils + +Name: python-%{modname} +Version: 0.3.5 +Release: 29%{?dist} +Summary: Logging utilities + +# Automatically converted from old format: BSD - review is highly recommended. +License: LicenseRef-Callaway-BSD +URL: https://pypi.io/project/logutils +Source0: https://pypi.io/packages/source/l/%{modname}/%{modname}-%{version}.tar.gz + +Patch0: 0001-remove-test_hashandlers.patch + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pytest +BuildRequires: python3-redis +#BuildRequires: /usr/bin/redis-server + +%global _description\ +The logutils package provides a set of handlers for the Python standard\ +library's logging package.\ +\ +Some of these handlers are out-of-scope for the standard library, and so\ +they are packaged here. Others are updated versions which have appeared in\ +recent Python releases, but are usable with older versions of Python and so\ +are packaged here. + +%description %_description + +%package -n python3-logutils +Summary: Logging utilities +%{?python_provide:%python_provide python3-logutils} + +%description -n python3-logutils +The logutils package provides a set of handlers for the Python standard +library's logging package. + +Some of these handlers are out-of-scope for the standard library, and so +they are packaged here. Others are updated versions which have appeared in +recent Python releases, but are usable with older versions of Python and so +are packaged here. + +%prep +%autosetup -n %{modname}-%{version} -p 1 + +%generate_buildrequires +%pyproject_buildrequires -t + +# Remove bundled egg-info in case it exists +rm -rf %{modname}.egg-info + +%build +%pyproject_wheel + +%install +%pyproject_install + +%pyproject_save_files %{modname} + +%check +%pyproject_check_import %{modname} + +#%%pytest + +%files -n python3-%{modname} +%license LICENSE.txt +%doc README.rst NEWS.txt doc/ +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-%{version}.dist-info/ + +%changelog +* Wed Sep 04 2024 Miroslav Suchý - 0.3.5-29 +- convert license to SPDX + +* Fri Jul 19 2024 Fedora Release Engineering - 0.3.5-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 0.3.5-27 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 0.3.5-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.3.5-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Oct 02 2023 Justin Caratzas - 0.3.5-24 +- Use setuptools instead of distutils, fix unit tests + +* Fri Jul 21 2023 Fedora Release Engineering - 0.3.5-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 0.3.5-22 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.3.5-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.3.5-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.3.5-19 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.3.5-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.3.5-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 0.3.5-16 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.3.5-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.3.5-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.3.5-13 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.3.5-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.3.5-11 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.3.5-10 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.3.5-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.3.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jan 22 2019 Miro Hrončok - 0.3.5-7 +- Remove python2-logutils + +* Tue Jul 24 2018 Pierre-Yves Chibon - 0.3.5-6 +- Use the py2 version of the macros + +* Sat Jul 14 2018 Fedora Release Engineering - 0.3.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.3.5-4 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.3.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.3.5-2 +- Python 2 binary package renamed to python2-logutils + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Fri Aug 11 2017 Ralph Bean - 0.3.5-1 +- new version + +* Thu Jul 27 2017 Fedora Release Engineering - 0.3.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 25 2017 Kevin Fenzi - 0.3.4-1 +- Update to 0.3.4. Fixes bug #1425241 + +* Sat Feb 11 2017 Fedora Release Engineering - 0.3.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.3.3-8 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.3.3-7 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 0.3.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 0.3.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.3.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.3.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 28 2014 Kalev Lember - 0.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Wed Jan 29 2014 Ralph Bean - 0.3.3-1 +- Latest upstream. +- Modernized python3 conditional + +* Sun Aug 04 2013 Fedora Release Engineering - 0.3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Dec 05 2012 Ralph Bean - 0.3.2-1 +- Initial package for Fedora