-
Notifications
You must be signed in to change notification settings - Fork 77
Updates for latest Django supported versions #129
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -9,24 +9,20 @@ on: | |||||||||||||||
jobs: | ||||||||||||||||
tests: | ||||||||||||||||
name: Python ${{ matrix.python-version }} | ||||||||||||||||
runs-on: ubuntu-20.04 | ||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||
|
||||||||||||||||
strategy: | ||||||||||||||||
matrix: | ||||||||||||||||
python-version: | ||||||||||||||||
- 3.6 | ||||||||||||||||
- 3.7 | ||||||||||||||||
- 3.8 | ||||||||||||||||
- 3.9 | ||||||||||||||||
python-version: ["3.10", "3.11", "3.12", "3.13"] | ||||||||||||||||
|
||||||||||||||||
steps: | ||||||||||||||||
- uses: actions/checkout@v2 | ||||||||||||||||
- uses: actions/checkout@v4 | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
|
||||||||||||||||
- uses: actions/setup-python@v2 | ||||||||||||||||
- uses: actions/setup-python@v5 | ||||||||||||||||
with: | ||||||||||||||||
python-version: ${{ matrix.python-version }} | ||||||||||||||||
Comment on lines
+21
to
23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||||||||||
|
||||||||||||||||
- uses: actions/cache@v2 | ||||||||||||||||
- uses: actions/cache@v4 | ||||||||||||||||
with: | ||||||||||||||||
path: ~/.cache/pip | ||||||||||||||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }} | ||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -8,15 +8,15 @@ on: | |||||||||
|
||||||||||
jobs: | ||||||||||
pre-commit: | ||||||||||
runs-on: ubuntu-20.04 | ||||||||||
runs-on: ubuntu-latest | ||||||||||
|
||||||||||
steps: | ||||||||||
- uses: actions/checkout@v2 | ||||||||||
- uses: actions/checkout@v4 | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
with: | ||||||||||
fetch-depth: 0 | ||||||||||
|
||||||||||
- uses: actions/setup-python@v2 | ||||||||||
- uses: actions/setup-python@v5 | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
- uses: pre-commit/action@v2.0.0 | ||||||||||
- uses: pre-commit/action@v3.0.1 | ||||||||||
with: | ||||||||||
token: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ html/ | |
htmlcov/ | ||
*.egg-info/ | ||
.tox/ | ||
/temp | ||
/venv |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -90,8 +90,8 @@ Writing the same code with `django-vanilla-views`, you'd instead arrive at a sim | |||||
|
||||||
## Requirements | ||||||
|
||||||
* **Django**: 2.2, 3.0, 3.1, 3.2 | ||||||
* **Python**: 3.6, 3.7, 3.8, 3.9 | ||||||
* **Django**: 4.2, 5.0, 5.1, 5.2 | ||||||
* **Python**: 3.10, 3.11, 3.12, 3.13 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
## Installation | ||||||
|
||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
#!/usr/bin/env python | ||
"""Django's command-line utility for administrative tasks.""" | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
|
||
def main(): | ||
"""Run administrative tasks.""" | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings") | ||
try: | ||
from django.core.management import execute_from_command_line | ||
except ImportError as exc: | ||
raise ImportError( | ||
"Couldn't import Django. Are you sure it's installed and " | ||
"available on your PYTHONPATH environment variable? Did you " | ||
"forget to activate a virtual environment?" | ||
) from exc | ||
execute_from_command_line(sys.argv) | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
execute_from_command_line(sys.argv) | ||
if __name__ == "__main__": | ||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Django>=1.8 | ||
django-vanilla-views==1.0.4 | ||
Django>=4.2 | ||
django-vanilla-views>=3.1.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
#!/usr/bin/env python | ||
"""Django's command-line utility for administrative tasks.""" | ||
import os | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
|
||
def main(): | ||
"""Run administrative tasks.""" | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testsettings") | ||
try: | ||
from django.core.management import execute_from_command_line | ||
except ImportError as exc: | ||
raise ImportError( | ||
"Couldn't import Django. Are you sure it's installed and " | ||
"available on your PYTHONPATH environment variable? Did you " | ||
"forget to activate a virtual environment?" | ||
) from exc | ||
execute_from_command_line(sys.argv) | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
execute_from_command_line(sys.argv) | ||
if __name__ == "__main__": | ||
main() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
[tox] | ||
isolated_build = True | ||
envlist = | ||
py36-django{22,30,31,32} | ||
py37-django{22,30,31,32} | ||
py38-django{30,31,32} | ||
py39-django{30,31,32} | ||
py{310,311,312}-django{42,50,51,52} | ||
py313-django{51,52} | ||
|
||
[testenv] | ||
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning manage.py test | ||
deps = | ||
django22: django>=2.2,<3.0 | ||
django30: django>=3.0,<3.1 | ||
django31: django>=3.1,<3.2 | ||
django32: django>=3.2,<4.0 | ||
django42: django>=4.2,<5.0 | ||
django50: django>=5.0,<5.1 | ||
django51: django>=5.1,<5.2 | ||
django52: django>=5.2b1,<6.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.