Skip to content

Commit f8dffdd

Browse files
felixxmqcoumes
authored andcommitted
ci: Update supported versions
* Confirm support for Python 3.13. * Drop Support for Django 3.2. * Confirm support for Django 5.1 and 5.2.
1 parent 9064f33 commit f8dffdd

File tree

8 files changed

+36
-21
lines changed

8 files changed

+36
-21
lines changed

.github/workflows/tests_and_publish.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Python
2525
uses: actions/setup-python@master
2626
with:
27-
python-version: '3.12'
27+
python-version: '3.13'
2828

2929
- name: Install packages
3030
run: pip install -r requirements_dev.txt
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Python
4242
uses: actions/setup-python@master
4343
with:
44-
python-version: '3.12'
44+
python-version: '3.13'
4545

4646
- name: Install packages
4747
run: pip install -r requirements_dev.txt
@@ -58,7 +58,7 @@ jobs:
5858
- name: Setup Python
5959
uses: actions/setup-python@master
6060
with:
61-
python-version: '3.12'
61+
python-version: '3.13'
6262

6363
- name: Install packages
6464
run: pip install -r requirements_dev.txt
@@ -75,7 +75,7 @@ jobs:
7575
- name: Setup Python
7676
uses: actions/setup-python@master
7777
with:
78-
python-version: '3.12'
78+
python-version: '3.13'
7979

8080
- name: Install packages
8181
run: pip install -r requirements_dev.txt
@@ -92,7 +92,7 @@ jobs:
9292
- name: Setup Python
9393
uses: actions/setup-python@master
9494
with:
95-
python-version: '3.12'
95+
python-version: '3.13'
9696

9797
- name: Install packages
9898
run: pip install -r requirements_dev.txt
@@ -107,12 +107,20 @@ jobs:
107107
runs-on: ubuntu-latest
108108
strategy:
109109
matrix:
110-
python-version: [ 3.9, '3.10', '3.11', '3.12']
111-
django-version: [ 32, 42, 50 ]
110+
python-version: [ 3.9, '3.10', '3.11', '3.12', '3.13']
111+
django-version: [ 42, 50, 51, 52 ]
112112
opensearch-version: [ 10, 20 ]
113113
exclude:
114114
- python-version: 3.9
115115
django-version: 50
116+
- python-version: 3.9
117+
django-version: 51
118+
- python-version: 3.9
119+
django-version: 52
120+
- python-version: 3.13
121+
django-version: 42
122+
- python-version: 3.13
123+
django-version: 50
116124

117125
steps:
118126
- uses: actions/checkout@v4
@@ -135,7 +143,7 @@ jobs:
135143
run: tox -e py-django${{ matrix.django-version }}-opensearch${{ matrix.opensearch-version }}
136144

137145
- name: Upload coverage to Codecov
138-
if: matrix.python-version == 3.12 && matrix.django-version == 50
146+
if: matrix.python-version == 3.13 && matrix.django-version == 52
139147
uses: codecov/codecov-action@v1
140148
with:
141149
file: ./coverage.xml
@@ -149,10 +157,10 @@ jobs:
149157
steps:
150158
- uses: actions/checkout@master
151159

152-
- name: Set up Python 3.12
160+
- name: Set up Python 3.13
153161
uses: actions/setup-python@v4
154162
with:
155-
python-version: '3.12'
163+
python-version: '3.13'
156164

157165
- name: Creating Built Distributions
158166
run: |

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 2
55
build:
66
os: ubuntu-22.04
77
tools:
8-
python: "3.12"
8+
python: "3.13"
99

1010
mkdocs:
1111
configuration: mkdocs.yml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Django Opensearch DSL
55
[![Documentation Status](https://readthedocs.org/projects/django-opensearch-dsl/badge/?version=latest)](https://django-opensearch-dsl.readthedocs.io/en/latest/?badge=latest)
66
![Tests](https://github.com/Codoc-os/django-opensearch-dsl/workflows/Tests/badge.svg)
77
[![Python 3.9+](https://img.shields.io/badge/Python-3.9+-brightgreen.svg)](#)
8-
[![Django 3.2+](https://img.shields.io/badge/Django-3.2+-brightgreen.svg)](#)
8+
[![Django 4.2+](https://img.shields.io/badge/Django-4.2+-brightgreen.svg)](#)
99
[![OpenSearch 1.3+, 2.7+](https://img.shields.io/badge/OpenSearch-1.3+-brightgreen.svg)](#)
1010
[![License Apache 2](https://img.shields.io/badge/license-Apache%202-brightgreen.svg)](https://github.com/Codoc-os/django-opensearch-dsl/blob/master/LICENSE)
1111
[![codecov](https://codecov.io/gh/Codoc-os/django-opensearch-dsl/branch/master/graph/badge.svg)](https://codecov.io/gh/Codoc-os/django-opensearch-dsl)

docs/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
### 0.7.0 (2025-XX-XX)
4+
5+
* Confirm support for Python 3.13.
6+
* Confirm support for Django 5.1 and 5.2.
7+
* Drop support for Django 3.2.
8+
39
### 0.6.2 (2024-04-23)
410

511
* Fix `CelerySignalProcessor` previously using `RealTimeSignalProcessor`'s method due to wrong indentation ([#66](https://github.com/Codoc-os/django-opensearch-dsl/pull/66)),

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
django>=2.1
1+
django>=4.2
22
opensearch-py>=2.2.0
33
python-dateutil~=2.8.2

setup.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
########################
44
[tox:tox]
55
distshare = {homedir}/.tox/distshare
6-
envlist = py{39,310,311,312}-django{32,42,50}-opensearch{10,20}
6+
envlist = py{39,310,311,312,313}-django{42,50,51,52}-opensearch{10,20}
77
skipsdist = true
88
skip_missing_interpreters = true
99
indexserver =
@@ -18,9 +18,10 @@ setenv =
1818
deps =
1919
-rrequirements.txt
2020
-rrequirements_dev.txt
21-
django32: django>=3.2.0,<3.3.0
2221
django42: django>=4.2.0,<4.3.0
2322
django50: django>=5.0.0,<5.1.0
23+
django51: django>=5.1.0,<5.2.0
24+
django52: django>=5.2.0,<6.0.0
2425
opensearch10: opensearch-py>=2.2.0
2526
opensearch20: opensearch-py>=2.2.0
2627
commands =

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
'Programming Language :: Python :: 3.10',
1313
'Programming Language :: Python :: 3.11',
1414
'Programming Language :: Python :: 3.12',
15+
'Programming Language :: Python :: 3.13',
1516
'Framework :: Django',
16-
'Framework :: Django :: 3.2',
1717
'Framework :: Django :: 4.2',
1818
'Framework :: Django :: 5.0',
19+
'Framework :: Django :: 5.1',
20+
'Framework :: Django :: 5.2',
1921
"Environment :: Web Environment",
2022
'Intended Audience :: Developers',
2123
'License :: OSI Approved :: Apache Software License',

tests/tests/management/test_index.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
from django_opensearch_dsl import fields
99
from django_opensearch_dsl.registries import registry
1010

11+
devnull = open(os.devnull, "w")
12+
call_command = functools.partial(call_command, stdout=devnull, stderr=devnull)
13+
1114

1215
class IndexTestCase(SimpleTestCase):
13-
@classmethod
14-
def setUpClass(cls):
15-
super().setUpClass()
16-
devnull = open(os.devnull, "w")
17-
cls.call_command = functools.partial(call_command, stdout=devnull, stderr=devnull)
1816

1917
def setUp(self) -> None:
2018
indices = registry.get_indices()

0 commit comments

Comments
 (0)