a569843
%global projectname cached-property
359aa6c
%global modulename  cached_property
a569843
a569843
Name:           python-%{modulename}
c09d593
Version:        1.5.2
333b497
Release:        11%{?dist}
a569843
Summary:        A cached-property for decorating methods in Python classes
a569843
License:        BSD
a569843
URL:            https://github.com/pydanny/%{projectname}
25552e2
Source0:        https://github.com/pydanny/%{projectname}/archive/%{version}/%{projectname}-%{version}.tar.gz
86e8f19
# Disable a couple of test checks that fail with freezegun 0.3.11
86e8f19
# See https://github.com/pydanny/cached-property/issues/131
86e8f19
Patch0:         0001-Disable-checks-broken-with-freezegun-0.3.11-131.patch
ca1a4aa
# Fix for removal of asyncio.coroutine in Python 3.11
ca1a4aa
# https://github.com/pydanny/cached-property/pull/267
ca1a4aa
Patch1:         267.patch
a569843
a569843
BuildArch:      noarch
a569843
a569843
%description
a569843
cached_property allows properties in Python classes to be cached until the cache
a569843
is invalidated or expired.
a569843
6edb3d3
%package -n python%{python3_pkgversion}-%{modulename}
a569843
Summary:        A cached-property for decorating methods in Python classes.
359aa6c
BuildRequires:  python%{python3_pkgversion}-devel
35e64ed
BuildRequires:  python%{python3_pkgversion}-setuptools
359aa6c
BuildRequires:  python%{python3_pkgversion}-dateutil
359aa6c
BuildRequires:  python%{python3_pkgversion}-freezegun
359aa6c
BuildRequires:  python%{python3_pkgversion}-pytest
6edb3d3
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modulename}}
359aa6c
# This package was python3-{projectname} for a long time, but never should've
6f574d4
# been
6edb3d3
Provides:       python%{python3_pkgversion}-%{projectname} = %{version}-%{release}
6edb3d3
Obsoletes:      python%{python3_pkgversion}-%{projectname} < 1.3.0-2
a569843
6edb3d3
%description -n python%{python3_pkgversion}-%{modulename}
a569843
cached_property allows properties in Python classes to be cached until the cache
a569843
is invalidated or expired.
a569843
a569843
%prep
86e8f19
%autosetup -p1 -n %{projectname}-%{version}
0b5c2eb
a569843
%build
a569843
%{__python3} setup.py build
359aa6c
a569843
%install
a569843
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
359aa6c
a569843
%check
c418d40
PYTHONPATH=./ py.test-3
a569843
6edb3d3
%files -n python%{python3_pkgversion}-%{modulename}
a569843
%doc AUTHORS.rst HISTORY.rst CONTRIBUTING.rst README.rst
a569843
%license LICENSE
a569843
%{python3_sitelib}/%{modulename}*
a569843
%{python3_sitelib}/__pycache__/%{modulename}*
a569843
a569843
%changelog
333b497
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-11
333b497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
333b497
efc9b47
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 1.5.2-10
efc9b47
- Rebuilt for Python 3.12
efc9b47
d141374
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-9
d141374
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d141374
9680952
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-8
9680952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9680952
7f80700
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.5.2-7
7f80700
- Rebuilt for Python 3.11
7f80700
2955350
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-6
2955350
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2955350
ca1a4aa
* Thu Dec 02 2021 Adam Williamson <awilliam@redhat.com> - 1.5.2-5
ca1a4aa
- Backport PR #267 to fix compatibility with Python 3.11 (thanks Petr Viktorin)
ca1a4aa
737b875
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
737b875
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
737b875
3bf976e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.5.2-3
3bf976e
- Rebuilt for Python 3.10
3bf976e
3f1a369
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
3f1a369
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3f1a369
c09d593
* Wed Jan 13 16:02:58 CET 2021 Petr Viktorin <pviktori@redhat.com> - 1.5.2-1
c09d593
- Update to 1.5.2
c09d593
880a00d
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-9
880a00d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
880a00d
1e2bd2e
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-8
1e2bd2e
- Rebuilt for Python 3.9
1e2bd2e
0fe468a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-7
0fe468a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0fe468a
2fc44fa
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-6
2fc44fa
- Rebuilt for Python 3.8.0rc1 (#1748018)
2fc44fa
0e60bbf
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-5
0e60bbf
- Rebuilt for Python 3.8
0e60bbf
aa36fca
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-4
aa36fca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
aa36fca
86e8f19
* Mon Feb 11 2019 Adam Williamson <awilliam@redhat.com> - 1.5.1-3
86e8f19
- Disable a couple of test checks that fail with freezegun 0.3.11
86e8f19
810e22a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
810e22a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
810e22a
d229ec7
* Fri Nov 23 2018 Adam Williamson <awilliam@redhat.com> - 1.5.1-1
d229ec7
- New release 1.5.1
d229ec7
- Disable Python 2 build on F30+, EL8+
d229ec7
25552e2
* Fri Nov 23 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-1
25552e2
- Update to 1.4.3 (used by pipenv)
25552e2
5dccae3
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-13
5dccae3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5dccae3
1f51117
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-12
1f51117
- Rebuilt for Python 3.7
1f51117
60c3c25
* Sun Feb 11 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.3.0-11
60c3c25
- Update Python 2 dependency declarations to new packaging standards
60c3c25
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
60c3c25
166d2d5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-10
166d2d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
166d2d5
cf545d1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-9
cf545d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cf545d1
dc94c15
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-8
dc94c15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
dc94c15
6edb3d3
* Fri Feb 10 2017 Adam Williamson <awilliam@redhat.com> - 1.3.0-7
6edb3d3
- Enable Python 3 build on EPEL 7
6edb3d3
8451ae9
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.3.0-6
8451ae9
- Rebuild for Python 3.6
8451ae9
fdbca21
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-5
fdbca21
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
fdbca21
89ae282
* Thu Mar 03 2016 Adam Williamson <awilliam@redhat.com> - 1.3.0-4
89ae282
- disable tests on F22 (it doesn't know about py3.5)
89ae282
e45daff
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
e45daff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e45daff
6f574d4
* Wed Dec 09 2015 Adam Williamson <awilliam@redhat.com> - 1.3.0-2
6f574d4
- try to repair the mess I made of package naming:
6f574d4
- # both subpackages now use module name not project name
6f574d4
- # try to ensure all previous names are provided/obsoleted
6f574d4
8a013b8
* Thu Nov 26 2015 Adam Williamson <awilliam@redhat.com> - 1.3.0-1
8a013b8
- new release 1.3.0, drop patch (merged upstream)
8a013b8
- switch to python2-foo / python3-foo package naming
8a013b8
5578def
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
5578def
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5578def
c594dc9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
c594dc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
c594dc9
06a47bf
* Wed Apr 29 2015 Adam Williamson <awilliam@redhat.com> - 1.2.0-1
06a47bf
- new upstream release 1.2.0 (refactoring, bug fixes)
06a47bf
- patch out non-ASCII characters in HISTORY.rst (breaks py3 build in koji)
06a47bf
918dd8f
* Thu Apr 16 2015 Adam Williamson <awilliam@redhat.com> - 1.1.0-1
918dd8f
- new upstream release 1.1.0 (insignificant changes)
918dd8f
918dd8f
* Wed Mar 25 2015 Adam Williamson <awilliam@redhat.com> - 1.0.0-4
0b5c2eb
- python3 build only for Fedora (no python3 in RHEL6 or 7)
0b5c2eb
- provide python2-cached_property
8514af8
- guard against #license not being available
0b5c2eb
- only run tests on F>=22 (tox is too old on everything else)
0b5c2eb
a569843
* Fri Mar 13 2015 Pete Travis <me@petetravis.com> - 1.0.0-2
a569843
- Use the module name for the package name.
a569843
a569843
* Fri Feb 20 2015 Pete Travis <me@petetravis.com> 1.0.0-1
a569843
- Initial packaging.