diff --git a/django_elastic_migrations/__init__.py b/django_elastic_migrations/__init__.py index 26ccb77..804db8b 100644 --- a/django_elastic_migrations/__init__.py +++ b/django_elastic_migrations/__init__.py @@ -8,7 +8,7 @@ from django_elastic_migrations.utils import loading from django_elastic_migrations.utils.django_elastic_migrations_log import get_logger -__version__ = '0.9.0' +__version__ = '7.0.0.alpha1' default_app_config = 'django_elastic_migrations.apps.DjangoElasticMigrationsConfig' # pylint: disable=invalid-name diff --git a/django_elastic_migrations/indexes.py b/django_elastic_migrations/indexes.py index 4360a14..6782e0d 100644 --- a/django_elastic_migrations/indexes.py +++ b/django_elastic_migrations/indexes.py @@ -7,7 +7,7 @@ from django.db import ProgrammingError from elasticsearch import TransportError from elasticsearch.helpers import expand_action, bulk -from elasticsearch_dsl import Index as ESIndex, DocType as ESDocType, Q as ESQ, Search +from elasticsearch_dsl import Index as ESIndex, Document as ESDocType, Q as ESQ, Search from django_elastic_migrations import es_client, environment_prefix, es_test_prefix, dem_index_paths, get_logger, codebase_id from django_elastic_migrations.exceptions import DEMIndexNotFound, DEMDocTypeRequiresGetReindexIterator, \ diff --git a/setup.py b/setup.py index 137a44e..b2d9295 100755 --- a/setup.py +++ b/setup.py @@ -49,13 +49,13 @@ def get_version(*file_paths): license='MIT', include_package_data=True, install_requires=[ - # TBD: GH issue #3 includes support for elasticsearch-dsl>=6.2.0 - "Django>=1.8,<=3.1", "elasticsearch-dsl>=6.0.0,<6.2.0", "texttable>=1.2.1", + # Updated to support Django 5.2.1 and elasticsearch-dsl 7.x + "Django>=1.8", "elasticsearch-dsl>=7.0.0,<8.0.0", "texttable>=1.2.1", "multiprocessing-logging>=0.2.6" ], zip_safe=False, keywords='Django Elasticsearch', - python_requires=">=3.6, <=4.0", + python_requires=">=3.8, <4.0", classifiers=[ 'Development Status :: 4 - Beta', 'Framework :: Django', @@ -63,10 +63,23 @@ def get_version(*file_paths): 'Framework :: Django :: 2.0', 'Framework :: Django :: 2.1', 'Framework :: Django :: 2.2', + 'Framework :: Django :: 3.0', + 'Framework :: Django :: 3.1', + 'Framework :: Django :: 3.2', + 'Framework :: Django :: 4.0', + 'Framework :: Django :: 4.1', + 'Framework :: Django :: 4.2', + 'Framework :: Django :: 5.0', + 'Framework :: Django :: 5.1', + 'Framework :: Django :: 5.2', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Natural Language :: English', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', ], )