Skip to content

Commit f967eb6

Browse files
committed
Drop Python 2 support
1 parent 176be2f commit f967eb6

File tree

20 files changed

+4
-56
lines changed

20 files changed

+4
-56
lines changed

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ addons:
1414
- python-enchant
1515
- graphviz
1616
python:
17-
- "2.7"
1817
- "3.5"
1918
- "3.6"
2019
env:
@@ -30,14 +29,8 @@ matrix:
3029
allow_failures:
3130
- env: DJANGO=master
3231
exclude:
33-
- env: DJANGO=master
34-
python: "2.7"
35-
- env: TOXENV=qa
36-
python: "2.7"
3732
- env: TOXENV=qa
3833
python: "3.5"
39-
- env: TOXENV=docs
40-
python: "2.7"
4134
- env: TOXENV=docs
4235
python: "3.5"
4336
install:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Changelog Summary
22
=================
33

4+
* Drop Python 2 support
5+
46
### v5.10.0
57
* Add support for dependent select fields [321](github.com/applegrew/django-select2/pull/321/).
68

django_select2/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
This is a Django_ integration of Select2_.
43

django_select2/cache.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Shared memory across multiple machines to the heavy AJAX lookups.
43
@@ -12,8 +11,6 @@
1211
1312
.. _django.core.cache: https://docs.djangoproject.com/en/dev/topics/cache/
1413
"""
15-
from __future__ import absolute_import, unicode_literals
16-
1714
from django.core.cache import caches
1815

1916
from .conf import settings

django_select2/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# -*- coding: utf-8 -*-
21
"""Settings for Django-Select2."""
3-
from __future__ import absolute_import, unicode_literals
4-
52
from appconf import AppConf
63
from django.conf import settings # NOQA
74

django_select2/forms.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Django-Select2 Widgets.
43
@@ -46,8 +45,6 @@
4645
:parts: 1
4746
4847
"""
49-
from __future__ import absolute_import, unicode_literals
50-
5148
from functools import reduce
5249
from itertools import chain
5350
from pickle import PicklingError

django_select2/urls.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""
32
Django-Select2 URL configuration.
43
@@ -7,8 +6,6 @@
76
url(r'^select2/', include('django_select2.urls')),
87
98
"""
10-
from __future__ import absolute_import, unicode_literals
11-
129
from django.conf.urls import url
1310

1411
from .views import AutoResponseView

django_select2/views.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# -*- coding: utf-8 -*-
21
"""JSONResponse views for model widgets."""
3-
from __future__ import absolute_import, unicode_literals
4-
52
from django.core import signing
63
from django.core.signing import BadSignature
74
from django.http import Http404, JsonResponse

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# Django-Select2 documentation build configuration file, created by
43
# sphinx-quickstart on Sat Aug 25 10:23:46 2012.

setup.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
from __future__ import unicode_literals
4-
52
import codecs
63
import os
74

8-
from setuptools import Command, find_packages, setup
5+
from setuptools import find_packages, setup
96

107

118
def read(file_name):
@@ -40,7 +37,6 @@ def read(file_name):
4037
"License :: OSI Approved :: Apache Software License",
4138
"Operating System :: OS Independent",
4239
"Programming Language :: Python",
43-
"Programming Language :: Python :: 2",
4440
"Programming Language :: Python :: 3",
4541
"Framework :: Django",
4642
"Framework :: Django :: 1.8",

0 commit comments

Comments
 (0)