Skip to content

Commit 6c1f411

Browse files
authored
Merge pull request #188 from tim-schilling/update-versions
Update supported versions to Django 3.2-4.1, python 3.6-3.10.
2 parents 75d7d7c + 7ba5914 commit 6c1f411

File tree

5 files changed

+13
-28
lines changed

5 files changed

+13
-28
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
os: [ macos-latest, ubuntu-latest ]
1717
python-version: [ 3.9, "3.10" ]
18-
django-version: [ 3.1, 3.2, 4.0 ]
18+
django-version: [ 3.2, 4.0, 4.1 ]
1919

2020
steps:
2121
- name: Install system dependencies (windows)

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
### Requirements
3333

34-
* `Django>=2.0`
34+
* `Django>=3.2`
3535
* `Markdown>=3.0`
3636
* `requests>=2.12.4`
3737

@@ -62,17 +62,10 @@ INSTALLED_APPS = [
6262

6363
```python
6464
# urls.py
65-
# django >= 2.0
6665
urlpatterns = [
6766
...
6867
path('martor/', include('martor.urls')),
6968
]
70-
71-
# django <= 1.9
72-
urlpatterns = [
73-
...
74-
url(r'^martor/', include('martor.urls')),
75-
]
7669
```
7770

7871

@@ -351,7 +344,7 @@ Checkout at http://127.0.0.1:8000/simple-form/ on your browser.
351344
[7]: https://img.shields.io/pypi/pyversions/martor.svg
352345
[8]: https://pypi.python.org/pypi/martor
353346

354-
[9]: https://img.shields.io/badge/Django-1.8%20%3E=%204.0-green.svg
347+
[9]: https://img.shields.io/badge/Django-3.2%20%3E=%204.1-green.svg
355348
[10]: https://www.djangoproject.com
356349

357350
[11]: https://travis-ci.org/agusmakmun/django-markdown-editor.svg?branch=master

martor_demo/martor_demo/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
# SECURITY WARNING: keep the secret key used in production secret!
2525
SECRET_KEY = '+1zhx_fpkkyj&z+3n!63fx0)og)@h5^7qyr8e0s%c@p8_&t&+l'
2626

27+
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
28+
2729
# SECURITY WARNING: don't run with debug turned on in production!
2830
DEBUG = True
2931
ALLOWED_HOSTS = ['*']

runtests.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,10 @@
5151
]
5252
)
5353

54-
try:
55-
# Django >= 1.8
56-
django.setup()
57-
from django.test.runner import DiscoverRunner
58-
test_runner = DiscoverRunner(verbosity=1)
59-
except (ImportError, ModuleNotFoundError):
60-
# Django <= 1.8
61-
from django.test.simple import DjangoTestSuiteRunner
62-
test_runner = DjangoTestSuiteRunner(verbosity=1)
54+
django.setup()
55+
from django.test.runner import DiscoverRunner
56+
test_runner = DiscoverRunner(verbosity=1)
57+
6358

6459
failures = test_runner.run_tests(['martor'])
6560
if failures:

setup.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,9 @@ def get_requirements():
2525
'Development Status :: 5 - Production/Stable',
2626
'Environment :: Web Environment',
2727
'Framework :: Django',
28-
'Framework :: Django :: 1.8',
29-
'Framework :: Django :: 1.9',
30-
'Framework :: Django :: 1.10',
31-
'Framework :: Django :: 1.11',
32-
'Framework :: Django :: 2.0',
33-
'Framework :: Django :: 2.1',
34-
'Framework :: Django :: 2.2',
35-
'Framework :: Django :: 3.0',
36-
'Framework :: Django :: 3.1',
28+
'Framework :: Django :: 3.2',
29+
'Framework :: Django :: 4.0',
30+
'Framework :: Django :: 4.1',
3731
'Intended Audience :: Developers',
3832
'Operating System :: OS Independent',
3933
'Programming Language :: JavaScript',
@@ -42,6 +36,7 @@ def get_requirements():
4236
'Programming Language :: Python :: 3.7',
4337
'Programming Language :: Python :: 3.8',
4438
'Programming Language :: Python :: 3.9',
39+
'Programming Language :: Python :: 3.10',
4540
'Topic :: Software Development :: Libraries :: Python Modules',
4641
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
4742
],

0 commit comments

Comments
 (0)