Skip to content

Commit

Permalink
add django 3.2 and 4.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Umar Asghar committed Sep 29, 2021
1 parent be2e781 commit 18c84b6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ master (unreleased)
- Dropped support for Python 2.7 and 3.5
- Added support for Python 3.9
- Dropped support for Django versions 2.1 and below
- Dropped support for Django 3.0
- Added suppport for Django 3.1
- Added suppport for Django 3.2
- Added support for Django 4.0

4.0 (2020-01-04)
-----------------
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ directory or on ReadTheDocs: https://django-robots.readthedocs.io/

Supported Django versions
-------------------------

* Django 4.0
* Django 3.2
* Django 3.1
* Django 3.0
* Django 2.2

For older Django versions (1.6-1.10) use ``django-robots==3.0``.
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def read(*parts):
'Programming Language :: Python :: 3.8',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
]
)
23 changes: 23 additions & 0 deletions src/robots/migrations/0002_alter_id_fields.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2 on 2021-09-23 12:14

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('robots', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='rule',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='url',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
]
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
envlist =
# list of supported Django/Python versions:
# https://docs.djangoproject.com/en/3.1/faq/install/#what-python-version-can-i-use-with-django
py{36,37,38,39}-dj{22,30,31}
py{36,37,38,39}-dj{22,31,32,40}
py{38,39}-djmain
py38-{lint,docs}

Expand All @@ -25,8 +25,9 @@ commands =
deps =
-r{toxinidir}/tests/requirements.txt
dj22: django>=2.2,<2.3
dj30: django>=3.0,<3.1
dj31: django>=3.1,<3.2
dj32: django>=3.2,<3.3
dj40: django>=4.0a1,<4.1
djmain: https://github.com/django/django/archive/main.tar.gz

[testenv:py38-lint]
Expand Down

0 comments on commit 18c84b6

Please sign in to comment.