Skip to content

update django and python version #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 7 additions & 31 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,39 +11,15 @@ on:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
matrix:
os: [ macos-latest, ubuntu-latest ]
python-version: [ 3.9, "3.10" ]
django-version: [ 3.2, 4.0, 4.1, 4.2 ]
python-version: [ "3.10", "3.11", "3.12" , "3.13"]
django-version: [ "5.0", "5.1" ]
include:
- os: macos-latest
python-version: "3.8"
django-version: "3.2"
- os: ubuntu-latest
python-version: "3.8"
django-version: "3.2"
- os: macos-latest
python-version: "3.8"
django-version: "4.0"
- os: ubuntu-latest
python-version: "3.8"
django-version: "4.0"
- os: macos-latest
python-version: "3.10"
django-version: "5.0"
- os: ubuntu-latest
python-version: "3.10"
django-version: "5.0"
- os: macos-latest
python-version: "3.10"
django-version: "5.0.3"
- os: ubuntu-latest
python-version: "3.10"
django-version: "5.0.3"

- python-version: "3.9"
django-version: "4.2"
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -55,8 +31,8 @@ jobs:

- name: Install dependencies
run: |
pip install -q Django==${{ matrix.django-version }}
python -m pip install --upgrade pip
pip install -U pip setuptools
pip install -q django==${{ matrix.django-version }}
python setup.py install

- name: Test with pytest
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
urllib3<2 ; python_version < '3.7' # urllib3 2.0 dropped support for Python 3.6
zipp<3.7 ; python_version < '3.7' # zipp 3.7.0 dropped support for Python 3.6
Django>=3.2
Markdown<3.6
urllib3
zipp
Django
Markdown
requests
bleach
tzdata
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ max-line-length = 120
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules

[mypy]
python_version = 3.7
python_version = 3.9
check_untyped_defs = True
ignore_missing_imports = True
warn_unused_ignores = True
Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ def get_requirements():
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: JavaScript",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
Expand Down