Skip to content

Commit

Permalink
Update Python and Django versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Nov 30, 2023
1 parent bf1b459 commit e352157
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
django-version: ['3.2', '4.0', '4.1', 'main']
python-version: ['3.8', '3.9', '3.10', '3.11']
django-version: ['3.2', '4.1', '4.2', 'main']
exclude:
- python-version: '3.7'
django-version: '4.0'
- python-version: '3.7'
django-version: '4.1'
- python-version: '3.7'
django-version: 'main'
- python-version: '3.8'
django-version: 'main'
- python-version: '3.9'
django-version: 'main'
- python-version: '3.11'
django-version: '3.2'
- python-version: '3.11'
django-version: '4.0'
steps:
- uses: actions/checkout@v2
- name: Setup python
Expand All @@ -54,7 +46,7 @@ jobs:
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.8
architecture: x64
- run: |
pip install wheel
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: black
args:
- "--target-version"
- "py37"
- "py38"
- repo: https://github.com/PyCQA/flake8
rev: "6.1.0"
hooks:
Expand All @@ -20,4 +20,4 @@ repos:
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

### Changed
- Drop Python 3.7 support
- Confirm Python 3.12 support
- Drop Django 4.1 support

## [6.0.1] - 2022-11-29
### Changed
- Add Django 4.1 support
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Usage
.. code:: shell
$ python manage.py shell
Python 3.7.0 (default, Nov 26 2018, 15:26:54)
Python 3.8.18 (default, Nov 26 2018, 15:26:54)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
Expand Down
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ author_email = [email protected]
keywords = django jalali
license = Python Software Foundation License
platforms = any
python_requires= ">=3.8"
long_description = file: README.rst
classifiers =
Development Status :: 5 - Production/Stable
Expand All @@ -17,15 +18,13 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: Implementation :: CPython
Framework :: Django
Framework :: Django :: 3.2
Framework :: Django :: 4.0
Framework :: Django :: 4.1
Framework :: Django :: 4.2

Expand Down
9 changes: 3 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
[tox]
envlist =
py{37,38,39,310}-dj32
py{38,39,310}-dj40
py{38,39,310}-dj32
py{38,39,310,311}-dj{41,42}
py{310,311}-djmain
py{310,311,312}-djmain
py38-lint

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[gh-actions:env]
DJANGO =
3.2: dj32
4.0: dj40
4.1: dj41
4.2: dj42
main: djmain
Expand All @@ -26,7 +24,6 @@ DJANGO =
deps =
-rrequirements-test.txt
dj32: Django==3.2.*
dj40: Django==4.0.*
dj41: Django==4.1.*
dj42: Django==4.2.*
djmain: https://github.com/django/django/archive/main.tar.gz
Expand Down

0 comments on commit e352157

Please sign in to comment.