Skip to content

Commit

Permalink
support python3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedaljawahiry committed Oct 24, 2023
1 parent 6f7b954 commit 2e48d9f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Lint ${{ matrix.hook }}
uses: pre-commit/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: Install dependencies
run: pip install build twine
- name: Build package
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -44,13 +44,13 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: pip install tox
- name: Setup server
run: |
tox --devenv venv-py311 -e py311-dj42
source venv-py311/bin/activate
tox --devenv venv-py312 -e py312-dj42
source venv-py312/bin/activate
python dev/manage.py migrate
python dev/manage.py testdata
python dev/manage.py runserver &
Expand All @@ -66,7 +66,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: python -m pip install --upgrade coverage
- name: Download coverage
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A global/site search modal for the Django admin.

## Requirements

- Python 3.7 - 3.11.
- Python 3.7 - 3.12.
- Django 3.2 - 4.2.

## Setup
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
keywords = Django
project_urls =
Maintainer = https://ahmedaljawahiry.com
Expand Down
9 changes: 5 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist =
{py37,py38,py39,py310,py311}-dj32
{py38,py39,py310,py311}-dj40
{py38,py39,py310,py311}-dj41
{py38,py39,py310,py311}-dj42
{py37,py38,py39,py310,py311,py312}-dj32
{py38,py39,py310,py311,py312}-dj40
{py38,py39,py310,py311,py312}-dj41
{py38,py39,py310,py311,py312}-dj42
playwright

[testenv]
Expand All @@ -13,6 +13,7 @@ basepython =
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
deps =
pytest
pytest-django
Expand Down

0 comments on commit 2e48d9f

Please sign in to comment.