Skip to content

Commit a742946

Browse files
Elasticsearch <8.0
1 parent 1477092 commit a742946

File tree

4 files changed

+38
-9
lines changed

4 files changed

+38
-9
lines changed

.github/workflows/publish-to-test-pypi.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,51 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
33
on: push
44

55
jobs:
6-
build-n-publish:
7-
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
8-
runs-on: ubuntu-20.04
9-
6+
tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
include:
12+
- django-version: "2.2.0"
13+
python-version: "3.7"
14+
- django-version: "3.2.0"
15+
python-version: "3.7"
16+
- django-version: "4.0.0"
17+
python-version: "3.7"
18+
- django-version: "2.2.0"
19+
python-version: "3.10"
20+
- django-version: "3.2.0"
21+
python-version: "3.10"
22+
- django-version: "4.0.0"
23+
python-version: "3.10"
1024
steps:
1125
- uses: actions/checkout@v2
12-
- name: Set up Python 3.9
26+
- name: Set up Python ${{ matrix.python-version }}
1327
uses: actions/setup-python@v2
1428
with:
15-
python-version: 3.9
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Upgrade pip version
32+
run: |
33+
python -m pip install -U pip
34+
- name: Upgrade django version
35+
run: |
36+
python -m pip install "Django~=${{ matrix.django-version }}"
1637
1738
- name: Install test requirements/linters
1839
run: pip install -r elastic_panel/test/requirements.txt
1940
- name: Run pre-commit
2041
run: pre-commit run --all-files
2142

43+
44+
build-n-publish:
45+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
46+
runs-on: ubuntu-20.04
47+
steps:
48+
- uses: actions/checkout@v2
49+
- name: Set up Python ${{ matrix.python-version }}
50+
uses: actions/setup-python@v2
2251
- name: Install pypa/build
2352
run: >-
2453
python -m

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ About
99
------------
1010

1111
Breaking changes:
12-
* django-elasticsearch-debug-toolbar 3.x is compatible with Django Debug Toolbar 3.x
12+
* django-elasticsearch-debug-toolbar 3.x is compatible with Django Debug Toolbar 3.x (elasticsearch <8.0.0)
1313
* django-elasticsearch-debug-toolbar 2.x is compatible with Django Debug Toolbar 2.x
1414
* django-elasticsearch-debug-toolbar 1.x is compatible with Django Debug Toolbar 1.x
1515

elastic_panel/panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from debug_toolbar.panels import Panel
66
from debug_toolbar.utils import ThreadCollector
77
from django.templatetags.static import static
8-
from django.utils.translation import ugettext_lazy as _
8+
from django.utils.translation import gettext_lazy as _
99
from elasticsearch.connection.base import Connection
1010

1111
# Patching og the orginal elasticsearch log_request

elastic_panel/test/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
django-debug-toolbar>=3.0
2-
elasticsearch
2+
elasticsearch<8.0.0
33

44
pytest
55
isort

0 commit comments

Comments
 (0)