Skip to content

Commit

Permalink
Added django 3.2 and 4.0 support (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarmughal824 authored Oct 6, 2021
1 parent be2e781 commit 70da760
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 4 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
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,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'),
),
]
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
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}
py{38,39}-dj{40}
py{38,39}-djmain
py38-{lint,docs}

Expand All @@ -25,8 +26,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 70da760

Please sign in to comment.