Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
c2e526f08e | |||
0b7e870be7 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:6e86c6ae9933711e7fd3ffb009f51df45353beb356c4e610f5cbb83ebf5dbb5f
|
|
||||||
size 15567
|
|
3
paginate-0.5.7.tar.gz
Normal file
3
paginate-0.5.7.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:88eaa65ea111e533542cdd4c8e9f90e5beefaabcf3d62021fb4d1113351bc9c6
|
||||||
|
size 16751
|
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Sep 14 15:51:19 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
|
||||||
|
|
||||||
|
- update to 0.5.7:
|
||||||
|
* Fixed metadata for pypi
|
||||||
|
* Added a wheel release
|
||||||
|
* Fixed tests for python 3.12
|
||||||
|
- drop patch python312.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 22 06:42:18 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
Fri Mar 22 06:42:18 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@@ -18,15 +18,13 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-paginate
|
Name: python-paginate
|
||||||
Version: 0.5.6
|
Version: 0.5.7
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Divides large result sets into pages for easier browsing
|
Summary: Divides large result sets into pages for easier browsing
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/Signum/paginate
|
URL: https://github.com/Pylons/paginate
|
||||||
# PyPI tarball does not include tests...
|
# PyPI tarball does not include tests...
|
||||||
Source: https://github.com/Signum/paginate/archive/%{version}.tar.gz#/paginate-%{version}.tar.gz
|
Source: https://github.com/Pylons/paginate/archive/%{version}.tar.gz#/paginate-%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE python312.patch gh#Pylons/paginate#19
|
|
||||||
Patch0: python312.patch
|
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
@@ -1,13 +0,0 @@
|
|||||||
Index: paginate-0.5.6/paginate/__init__.py
|
|
||||||
===================================================================
|
|
||||||
--- paginate-0.5.6.orig/paginate/__init__.py
|
|
||||||
+++ paginate-0.5.6/paginate/__init__.py
|
|
||||||
@@ -250,7 +250,7 @@ class Page(list):
|
|
||||||
first = (self.page - 1) * items_per_page
|
|
||||||
last = first + items_per_page
|
|
||||||
self.items = list(self.collection[first:last])
|
|
||||||
- except TypeError:
|
|
||||||
+ except (TypeError, KeyError):
|
|
||||||
raise TypeError("Your collection of type {} cannot be handled "
|
|
||||||
"by paginate.".format(type(self.collection)))
|
|
||||||
|
|
Reference in New Issue
Block a user