From 5f37acdf8c7f78ac8aab0cc0e637652685b83da3ab23b67ab715d3e8c218c057 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 16 Aug 2017 16:34:50 +0000 Subject: [PATCH] Accepting request 517247 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version - Update to version 2.0.1 OBS-URL: https://build.opensuse.org/request/show/517247 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=7 --- cachetools-2.0.0.tar.gz | 3 --- cachetools-2.0.1.tar.gz | 3 +++ python-cachetools.changes | 10 ++++++++++ python-cachetools.spec | 32 ++++++++++++++++++-------------- 4 files changed, 31 insertions(+), 17 deletions(-) delete mode 100644 cachetools-2.0.0.tar.gz create mode 100644 cachetools-2.0.1.tar.gz diff --git a/cachetools-2.0.0.tar.gz b/cachetools-2.0.0.tar.gz deleted file mode 100644 index 7decf63..0000000 --- a/cachetools-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:715a7202240dc20dbe83abdb2d804d543e2d4f07af146f53c82166bd75f3a628 -size 18592 diff --git a/cachetools-2.0.1.tar.gz b/cachetools-2.0.1.tar.gz new file mode 100644 index 0000000..c9dbfdc --- /dev/null +++ b/cachetools-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ede01f2d3cbd6ddc9e35e16c2b0ce011d8bb70ce0dbaf282f5b4df24b213bc5d +size 18790 diff --git a/python-cachetools.changes b/python-cachetools.changes index 64f9ae8..719c379 100644 --- a/python-cachetools.changes +++ b/python-cachetools.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Aug 16 13:51:39 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to version 2.0.1 + * Officially support Python 3.6. + * Move documentation to RTD. + * Documentation: Update import paths for key functions + (courtesy of slavkoja). + ------------------------------------------------------------------- Thu Jun 1 21:04:54 UTC 2017 - dmueller@suse.com diff --git a/python-cachetools.spec b/python-cachetools.spec index 4c49dfd..b1b9602 100644 --- a/python-cachetools.spec +++ b/python-cachetools.spec @@ -16,22 +16,23 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-cachetools -Version: 2.0.0 +Version: 2.0.1 Release: 0 Summary: Extensible memoizing collections and decorators License: MIT Group: Development/Languages/Python Url: https://github.com/tkem/cachetools -Source: https://pypi.io/packages/source/c/cachetools/cachetools-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +Source: https://files.pythonhosted.org/packages/source/c/cachetools/cachetools-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif + +%python_subpackages %description This module provides various memoizing collections and decorators, @@ -42,17 +43,20 @@ function decorator. %setup -q -n cachetools-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} %check -python setup.py test +%python_exec setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) -%doc README.rst LICENSE CHANGES.rst +%doc CHANGES.rst LICENSE README.rst %{python_sitelib}/* %changelog