Skip to content

Commit 4380d1b

Browse files
authored
Merge pull request #3 from vchrisb/update_python_django
update django and python version
2 parents 8409df0 + 8c63ec9 commit 4380d1b

File tree

4 files changed

+17
-40
lines changed

4 files changed

+17
-40
lines changed

.github/workflows/run-tests.yml

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,39 +11,15 @@ on:
1111
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
1212
jobs:
1313
build:
14-
runs-on: ${{ matrix.os }}
14+
runs-on: ubuntu-latest
1515

1616
strategy:
1717
matrix:
18-
os: [ macos-latest, ubuntu-latest ]
19-
python-version: [ 3.9, "3.10" ]
20-
django-version: [ 3.2, 4.0, 4.1, 4.2 ]
18+
python-version: [ "3.10", "3.11", "3.12" , "3.13"]
19+
django-version: [ "5.0", "5.1" ]
2120
include:
22-
- os: macos-latest
23-
python-version: "3.8"
24-
django-version: "3.2"
25-
- os: ubuntu-latest
26-
python-version: "3.8"
27-
django-version: "3.2"
28-
- os: macos-latest
29-
python-version: "3.8"
30-
django-version: "4.0"
31-
- os: ubuntu-latest
32-
python-version: "3.8"
33-
django-version: "4.0"
34-
- os: macos-latest
35-
python-version: "3.10"
36-
django-version: "5.0"
37-
- os: ubuntu-latest
38-
python-version: "3.10"
39-
django-version: "5.0"
40-
- os: macos-latest
41-
python-version: "3.10"
42-
django-version: "5.0.3"
43-
- os: ubuntu-latest
44-
python-version: "3.10"
45-
django-version: "5.0.3"
46-
21+
- python-version: "3.9"
22+
django-version: "4.2"
4723
steps:
4824
- name: Checkout code
4925
uses: actions/checkout@v4
@@ -55,8 +31,8 @@ jobs:
5531

5632
- name: Install dependencies
5733
run: |
58-
pip install -q Django==${{ matrix.django-version }}
59-
python -m pip install --upgrade pip
34+
pip install -U pip setuptools
35+
pip install -q django==${{ matrix.django-version }}
6036
python setup.py install
6137
6238
- name: Test with pytest

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
urllib3<2 ; python_version < '3.7' # urllib3 2.0 dropped support for Python 3.6
2-
zipp<3.7 ; python_version < '3.7' # zipp 3.7.0 dropped support for Python 3.6
3-
Django>=3.2
4-
Markdown<3.6
1+
urllib3
2+
zipp
3+
Django
4+
Markdown
55
requests
66
bleach
77
tzdata

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ max-line-length = 120
1010
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
1111

1212
[mypy]
13-
python_version = 3.7
13+
python_version = 3.9
1414
check_untyped_defs = True
1515
ignore_missing_imports = True
1616
warn_unused_ignores = True

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,18 @@ def get_requirements():
2727
"Development Status :: 5 - Production/Stable",
2828
"Environment :: Web Environment",
2929
"Framework :: Django",
30-
"Framework :: Django :: 3.2",
31-
"Framework :: Django :: 4.0",
32-
"Framework :: Django :: 4.1",
3330
"Framework :: Django :: 4.2",
31+
"Framework :: Django :: 5.0",
32+
"Framework :: Django :: 5.1",
3433
"Intended Audience :: Developers",
3534
"Operating System :: OS Independent",
3635
"Programming Language :: JavaScript",
3736
"Programming Language :: Python",
38-
"Programming Language :: Python :: 3.8",
3937
"Programming Language :: Python :: 3.9",
4038
"Programming Language :: Python :: 3.10",
39+
"Programming Language :: Python :: 3.11",
40+
"Programming Language :: Python :: 3.12",
41+
"Programming Language :: Python :: 3.13",
4142
"Topic :: Software Development :: Libraries :: Python Modules",
4243
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
4344
],

0 commit comments

Comments
 (0)