From ff327e5826133d3d9b6f23ce769a4a77b904ea5f Mon Sep 17 00:00:00 2001 From: Mattias Linnap Date: Sun, 7 Jul 2019 23:49:45 +0300 Subject: [PATCH] Update setup.py and README for version 0.6.0. --- README.md | 29 ++++++++++++++++++++++++----- setup.py | 6 ++++-- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f63b7f9..6940d60 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,16 @@ More info on partial indexes: * https://sqlite.org/partialindex.html -## Table of Contents +## Partial indexes now included in Django +Since the release of [Django 2.2 LTS](https://docs.djangoproject.com/en/2.2/releases/2.2/) in April 2019, +partial indexes are now supported by standard Django. + +These are called [index conditions](https://docs.djangoproject.com/en/2.2/ref/models/indexes/#condition) there. + +The django-partial-index package will live on in maintenance mode. + +It can be useful if you are maintaining a project on and older version of Django, or wish to migrate django-partial-index indexes to Django 2.2 style on your own schedule. ## Install @@ -23,10 +31,18 @@ More info on partial indexes: Requirements: -* Django 1.11 (with Python 2.7 and 3.4 - 3.6), or -* Django 2.0 (with Python 3.4 - 3.6). +* Django 1.11, 2.0, 2.1 or 2.2, +* Python 2.7, 3.4, 3.5, 3.6 or 3.7 (as supported by the Django version), * PostgreSQL or SQLite database backend. (Partial indexes are not supported on MySQL, and require major hackery on Oracle.) +All Python versions which Django supports are also supported by this package. These are: + +* Django 1.11 - Python 2.7 and 3.4 - 3.7, +* Django 2.0 - Python 3.4 - 3.7, +* Django 2.1 - Python 3.5 - 3.7, +* Django 2.2 - Python 3.5 - 3.7. + + ## Usage Set up a PartialIndex and insert it into your model's class-based Meta.indexes list: @@ -157,7 +173,11 @@ class TextExample(models.Model): ## Version History -### 0.5.2 (latest) +### 0.6.0 (latest) +* Add support for Django 2.2. +* Document (already existing) support for Django 2.1 and Python 3.7. + +### 0.5.2 * Fix makemigrations for Django 1.11. * Make sure PQ and PF are imported directly from partial_index in migration files. @@ -194,4 +214,3 @@ class TextExample(models.Model): * Add a validation mixin for DRF Serializers. * Remove support for text-based where conditions. -* Eventually make this package obsolete by getting it merged into Django's contrib.postgres module. diff --git a/setup.py b/setup.py index 7e53af5..bfe2fb8 100755 --- a/setup.py +++ b/setup.py @@ -6,14 +6,14 @@ setup( name='django-partial-index', packages=['partial_index'], - version='0.5.2', + version='0.6.0', description='PostgreSQL and SQLite partial indexes for Django models', long_description=open('README.md').read(), long_description_content_type='text/markdown', author='Mattias Linnap', author_email='mattias@linnap.com', url='https://github.com/mattiaslinnap/django-partial-index', - download_url='https://github.com/mattiaslinnap/django-partial-index/archive/0.5.2.tar.gz', + download_url='https://github.com/mattiaslinnap/django-partial-index/archive/0.6.0.tar.gz', license='BSD', install_requires=[], classifiers=[ @@ -22,6 +22,8 @@ 'Framework :: Django', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', + 'Framework :: Django :: 2.1', + 'Framework :: Django :: 2.2', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent',