Name: python-repoze-lru
Version: 0.8
Release: 1
Summary: A tiny LRU cache implementation and decorator
License: BSD
URL: https://pypi.org/project/repoze-lru/
Source0: https://files.pythonhosted.org/packages/b5/19/727d5c904ea513a6a9044bf43beaa2c5e632e017b1e0ab71e9d111d20967/repoze_lru-0.8.tar.gz
BuildArch: noarch
BuildRequires: python3-setuptools python3-devel
BuildRequires: pytest python3-pytest-cov
%description
It is a LRU (least recently used) cache implementation. It works under
Python 2.7 and Python 3.4+.
%package -n python3-repoze-lru
Summary: A tiny LRU cache implementation and decorator
%{?python_provide:%python_provide python3-repoze-lru}
%description -n python3-repoze-lru
It is a LRU (least recently used) cache implementation. It works under
Python 3.4+.
%prep
%autosetup -n repoze_lru-%{version}
%build
%py3_build
%install
%py3_install
%check
export PYTHONPATH="%{buildroot}%{python3_sitelib}:$(pwd)"
export PYTEST_ADDOPTS=""
%{__python3} -m pytest -v tests/unit/test_package.py
%files -n python3-repoze-lru
%license LICENSE.txt COPYRIGHT.txt
%doc README.rst CONTRIBUTORS.txt
%{python3_sitelib}/*
%changelog
* Fri Jul 17 2026 lilu_ll <lilu@kylinos.cn> - 0.8-1
- Update package to version 0.8
* Publish releases to PyPI via Github workflow
* Add Github workflow for unit tests / coverage
* Mon Jul 14 2025 Funda Wang <fundawang@yeah.net> - 0.7-4
- fix test usage
* Mon Nov 2 2020 wangjie<wangjie294@huawei.com> -0.7-3
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Mon Jan 6 2020 Ling Yang <lingyang2@huawei.com> - 0.7-2
- Package init