diff --git a/.python-cachetools.metadata b/.python-cachetools.metadata new file mode 100644 index 0000000..ead0a44 --- /dev/null +++ b/.python-cachetools.metadata @@ -0,0 +1 @@ +19fff2f55af06b150800e3534fe0e8ebbec97e46 SOURCES/cachetools-5.4.0.tar.gz diff --git a/SOURCES/.gitkeep b/SOURCES/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitkeep diff --git a/SPECS/python-cachetools.spec b/SPECS/python-cachetools.spec new file mode 100644 index 0000000..fdafaeb --- /dev/null +++ b/SPECS/python-cachetools.spec @@ -0,0 +1,55 @@ +Name: python-cachetools +Version: 5.4.0 +Release: %autorelease +Summary: Extensible memoizing collections and decorators + +# SPDX +License: MIT +URL: https://pypi.python.org/pypi/cachetools +Source: %{pypi_source cachetools} + +BuildArch: noarch +BuildRequires: python3-devel + +# cachetools is a direct runtime dependency of tox, +# so we don't use tox to generate test dependencies or run tests +BuildRequires: python3-pytest + +%global _description\ +This module provides various memoizing collections and decorators,\ +including a variant of the Python 3 Standard Library @lru_cache\ +function decorator.\ +\ +This module provides multiple cache implementations based on different\ +cache algorithms, as well as decorators for easily memoizing function\ +and method calls.\ + + +%description %_description + +%package -n python3-cachetools +Summary: %{summary} + +%description -n python3-cachetools %_description + +%prep +%autosetup -n cachetools-%{version} + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files -l cachetools + +%check +%pytest + +%files -n python3-cachetools -f %{pyproject_files} +%doc CHANGELOG.rst README.rst + +%changelog +%autochangelog