Skip to content

Commit 6a06b97

Browse files
Merge pull request #171 from barseghyanartur/feature/155-Django-3x-support
Feature/155 django 3x support
2 parents d5877e2 + a2214fd commit 6a06b97

File tree

26 files changed

+112
-137
lines changed

26 files changed

+112
-137
lines changed

.matyan.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ exact: more
2020
more on
2121
wip
2222
commit
23+
prefix: more on
24+
continue on

.travis.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ matrix:
1010
include:
1111
- env: TOX_ENV=py27-django111
1212
python: 2.7
13+
1314
- env: TOX_ENV=py35-django20
1415
python: 3.5
16+
1517
- env: TOX_ENV=py36-django111
1618
python: 3.6
1719
- env: TOX_ENV=py36-django20
@@ -20,15 +22,36 @@ matrix:
2022
python: 3.6
2123
- env: TOX_ENV=py36-django22
2224
python: 3.6
25+
- env: TOX_ENV=py36-django30
26+
python: 3.6
27+
2328
- env: TOX_ENV=py37-django20
2429
python: 3.7
2530
- env: TOX_ENV=py37-django21
2631
python: 3.7
2732
- env: TOX_ENV=py37-django22
2833
python: 3.7
34+
- env: TOX_ENV=py37-django30
35+
python: 3.7
36+
37+
- env: TOX_ENV=py38-django111
38+
python: 3.8
39+
- env: TOX_ENV=py38-django22
40+
python: 3.8
41+
- env: TOX_ENV=py38-django30
42+
python: 3.8
43+
44+
env:
45+
global:
46+
- ES_APT_URL=https://artifacts.elastic.co/packages/7.x/apt
2947

3048
before_install:
31-
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.deb && sudo dpkg -i --force-confnew elasticsearch-6.5.4.deb && sudo service elasticsearch restart
49+
# - curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.deb && sudo dpkg -i --force-confnew elasticsearch-6.5.4.deb && sudo service elasticsearch restart
50+
- wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
51+
- echo "deb $ES_APT_URL stable main" | sudo tee -a /etc/apt/sources.list.d/elk.list
52+
- sudo apt-get remove --purge elasticsearch -y
53+
- sudo apt-get update && sudo apt-get install elasticsearch -y
54+
- sudo -i service elasticsearch restart
3255

3356
install: pip install -r examples/requirements/test.txt
3457

CHANGELOG.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ are used for versioning (schema follows below):
1717

1818
0.20.4
1919
------
20-
2019-09-20 (not yet released)
20+
2019-12-25
2121

22+
- Tested against Django 3.0.
23+
- Tested against Python 3.8.
24+
- Tested against Django REST Framework 3.11.
2225
- Minor fixes.
2326
- Test optimisations.
2427

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Make sure to read `FAQ <https://github.com/barseghyanartur/django-elasticsearch-
4646

4747
Prerequisites
4848
=============
49-
- Django 1.11, 2.0, 2.1 and 2.2.
50-
- Python 2.7, 3.5, 3.6, 3.7.
49+
- Django 1.11, 2.0, 2.1, 2.2 and 3.0.
50+
- Python 2.7, 3.5, 3.6, 3.7, 3.8.
5151
- Elasticsearch 6.x, 7.x. For older versions use
5252
``django-elasticsearch-dsl-drf`` version 0.18.
5353

@@ -162,7 +162,7 @@ To test against specific environment, type:
162162

163163
.. code-block:: sh
164164
165-
tox -e py37-django21
165+
tox -e py38-django30
166166
167167
To test just your working environment type:
168168

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
build:
88
context: .
99
dockerfile: ./docker/elasticsearch/Dockerfile
10-
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.0
10+
image: docker.elastic.co/elasticsearch/elasticsearch:7.1.1
1111
# image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
1212
# image: docker.elastic.co/elasticsearch/elasticsearch:5.5.3
1313
volumes:

docker/backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.6.7-slim-jessie
1+
FROM docker.io/python:3.6.7-slim-jessie
22
ENV PYTHONUNBUFFERED 1
33

44
RUN apt-get update

docker/frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:latest
1+
FROM docker.io/node:8-alpine3.9
22

33
RUN apt-get update
44
RUN apt-get install -y mc

docs/changelog.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ are used for versioning (schema follows below):
1717

1818
0.20.4
1919
------
20-
2019-09-20 (not yet released)
20+
2019-12-25
2121

22+
- Tested against Django 3.0.
23+
- Tested against Python 3.8.
24+
- Tested against Django REST Framework 3.11.
2225
- Minor fixes.
2326
- Test optimisations.
2427

docs/dependencies.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ Current compatibility matrix is:
1111
+--------------+---------------+
1212
| This package | Elasticsearch |
1313
+--------------+---------------+
14-
| 0.20 | 6.x, 7.x |
14+
| 0.20.x | 6.x, 7.x |
1515
+--------------+---------------+
16-
| 0.19 | 6.x |
16+
| 0.19.x | 6.x |
1717
+--------------+---------------+
18-
| 0.18 | 2.x, 5.x, 6.x |
18+
| 0.18.x | 2.x, 5.x, 6.x |
1919
+--------------+---------------+
2020

2121
**django-elasticsearch-dsl**
@@ -64,6 +64,8 @@ Current compatibility matrix is:
6464
+--------+-----------------------+
6565
| 2.2 | 3.9.3 |
6666
+--------+-----------------------+
67+
| 3.0 | 3.11.0 |
68+
+--------+-----------------------+
6769

6870
The version 0.17.7 has been tested with the following versions of
6971
Django and Django REST Framework:

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ Make sure to read `FAQ <https://github.com/barseghyanartur/django-elasticsearch-
4646

4747
Prerequisites
4848
=============
49-
- Django 1.11, 2.0, 2.1 and 2.2.
50-
- Python 2.7, 3.5, 3.6, 3.7.
49+
- Django 1.11, 2.0, 2.1, 2.2 and 3.0.
50+
- Python 2.7, 3.5, 3.6, 3.7, 3.8.
5151
- Elasticsearch 6.x, 7.x. For older versions use
5252
``django-elasticsearch-dsl-drf`` version 0.18.
5353

@@ -162,7 +162,7 @@ To test against specific environment, type:
162162

163163
.. code-block:: sh
164164
165-
tox -e py37-django21
165+
tox -e py38-django30
166166
167167
To test just your working environment type:
168168

0 commit comments

Comments
 (0)