Skip to content

Commit

Permalink
Updated changelog/setup for 0.2.1 release and added 3.11 to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
thommor committed Dec 5, 2022
1 parent ad2311a commit 43353f1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]
python-version: [3.8, 3.9, "3.10", "3.11"]
django-version: [4.0, 3.2]

services:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.1] - 2022-12-07

### Added
- Added support for NULL value ordering by @untidy-hair https://github.com/photocrowd/django-cursor-pagination/pull/45
- Fixes https://github.com/photocrowd/django-cursor-pagination/issues/44
- Fixes https://github.com/photocrowd/django-cursor-pagination/issues/18
- Added Python 3.11 to test matrix

## [0.2.0] - 2022-07-07

### Added
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
setup(
name='django-cursor-pagination',
py_modules=['cursor_pagination'],
version='0.2.0',
version='0.2.1',
description='Cursor based pagination for Django',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
6 changes: 3 additions & 3 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.test import TestCase
from django.utils import timezone

from cursor_pagination import CursorPaginator, InvalidCursor
from cursor_pagination import CursorPaginator

from .models import Author, Post

Expand Down Expand Up @@ -190,7 +190,8 @@ def test_with_items(self):


class TestForwardNullPagination(TestCase):
# When there are NULL values, there needs to be another key to make the sort unique as README Caveats say
# When there are NULL values, there needs to be another key to make the sort
# unique as README Caveats say
@classmethod
def setUpTestData(cls):
now = timezone.now()
Expand All @@ -203,7 +204,6 @@ def setUpTestData(cls):
cls.items.append(author)
cls.paginator = CursorPaginator(Author.objects.all(), ('-age', '-created',))
# [1, 0, 2, 3, 4, 5, 6]


def test_first_page(self):
page = self.paginator.page(first=3)
Expand Down

0 comments on commit 43353f1

Please sign in to comment.