From 655e22f0869d6aae2502998ef35ed20f3f0d5d23 Mon Sep 17 00:00:00 2001 From: tigro Date: Fri, 10 Jan 2025 18:56:38 +0300 Subject: [PATCH] import python-lexicon-2.0.1-12.el10 --- .gitignore | 1 + .python-lexicon.metadata | 1 + SOURCES/lexicon-2.0.1-pytest8.patch | 22 ++++ SPECS/python-lexicon.spec | 172 ++++++++++++++++++++++++++++ 4 files changed, 196 insertions(+) create mode 100644 .gitignore create mode 100644 .python-lexicon.metadata create mode 100644 SOURCES/lexicon-2.0.1-pytest8.patch create mode 100644 SPECS/python-lexicon.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..80082cf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/lexicon-2.0.1.tar.gz diff --git a/.python-lexicon.metadata b/.python-lexicon.metadata new file mode 100644 index 0000000..b2e1a05 --- /dev/null +++ b/.python-lexicon.metadata @@ -0,0 +1 @@ +4fc342d922f7378648157e3c5366e69e28d7e2d6 SOURCES/lexicon-2.0.1.tar.gz diff --git a/SOURCES/lexicon-2.0.1-pytest8.patch b/SOURCES/lexicon-2.0.1-pytest8.patch new file mode 100644 index 0000000..03e95c9 --- /dev/null +++ b/SOURCES/lexicon-2.0.1-pytest8.patch @@ -0,0 +1,22 @@ +https://docs.pytest.org/en/stable/deprecations.html#setup-teardown + +--- tests/alias_dict.py ++++ tests/alias_dict.py +@@ -36,7 +36,7 @@ class AliasDict_: + ad.unalias("lol no") + + class aliases_of: +- def setup(self): ++ def setup_method(self): + self.ad = AliasDict() + + def returns_list_of_aliases_for_given_real_key(self): +@@ -162,7 +162,7 @@ class AliasDict_: + class aliases_are_not_real_keys: + "aliases are not real keys" + +- def setup(self): ++ def setup_method(self): + self.a = AliasDict({"key1": "val1", "key2": "val2"}) + self.a.alias("myalias", "key1") + diff --git a/SPECS/python-lexicon.spec b/SPECS/python-lexicon.spec new file mode 100644 index 0000000..056927f --- /dev/null +++ b/SPECS/python-lexicon.spec @@ -0,0 +1,172 @@ +%bcond_without tests +%global srcname lexicon + +Name: python-lexicon +Version: 2.0.1 +Release: 12%{?dist} +Summary: Powerful dict subclass(es) with aliasing and attribute access +License: BSD-2-Clause +URL: https://github.com/bitprophet/lexicon +Source0: https://github.com/bitprophet/lexicon/archive/%{version}/lexicon-%{version}.tar.gz +Patch0: lexicon-2.0.1-pytest8.patch +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%if %{with tests} +# For test suite +BuildRequires: python3-pytest +BuildRequires: python3-pytest-relaxed +%endif + +%description +Lexicon is a simple collection of dict sub-classes providing extra power. + +%package -n python3-lexicon +Summary: Powerful dict subclass(es) with aliasing and attribute access +%{?python_provide:%python_provide python3-lexicon} + +%description -n python3-lexicon +Lexicon is a simple collection of dict sub-classes providing extra power. + +%prep +%setup -q -n lexicon-%{version} + +# Attempt to fix for pytest 8 +%patch -P 0 + +%build +%py3_build + +%install +%py3_install + +%if %{with tests} +%check +%pytest +%endif + +%files -n python3-lexicon +%license LICENSE +%doc docs/changelog.rst README.rst +%{python3_sitelib}/lexicon/ +%{python3_sitelib}/lexicon-%{version}-*.egg-info/ + +%changelog +* Fri Jan 10 2025 Arkady L. Shane - 2.0.1-12 +- Rebuilt for MSVSphere 10 + +* Thu Apr 11 2024 Paul Howarth - 2.0.1-12 +- Attempt to fix for pytest 8 (rhbz#2274500) + +* Fri Jan 26 2024 Fedora Release Engineering - 2.0.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.0.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 2.0.1-8 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.0.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Sep 02 2022 Miro Hrončok - 2.0.1-6 +- Use pytest-relaxed, to avoid a transitive dependency on deprecated nose + +* Fri Jul 22 2022 Fedora Release Engineering - 2.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.0.1-4 +- Rebuilt for Python 3.11 + +* Thu Apr 28 2022 Major Hayden - 2.0.1-3 +- Disable spec-based tests in EPEL 9. + +* Fri Jan 21 2022 Fedora Release Engineering - 2.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Sep 11 2021 Paul Howarth - 2.0.1-1 +- Update to 2.0.1 + - Dropped support for Python <3.6 + - Added a _version submodule and imported its dunder-attributes into the top + level module + - Migrated CI to CircleCI (from Travis) + - Migrated tests to pytest(-relaxed) + - Moved changelog to stub Sphinx project for Releases plugin + - Changed README to ReStructured Text (from Markdown) + +* Fri Jul 23 2021 Fedora Release Engineering - 1.0.0-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 03 2021 Python Maint - 1.0.0-14 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 1.0.0-11 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.0.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Dec 11 2019 Paul Howarth - 1.0.0-9 +- Run the test suite +- Cosmetic spec changes + +* Tue Oct 01 2019 Miro Hrončok - 1.0.0-8 +- Subpackage python2-lexicon has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Mon Aug 19 2019 Miro Hrončok - 1.0.0-7 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.0.0-3 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Aug 11 2017 Athmane Madjoudj - 1.0.0-1 +- Update to 1.0.0 +- Revamp the spec to use the new python guidelines + +* Thu Jul 27 2017 Fedora Release Engineering - 0.2.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.2.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.2.0-6 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.2.0-5 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 0.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 0.2.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Dec 01 2014 Athmane Madjoudj - 0.2.0-1 +- Initial spec