Drop Python 2 support

This commit is contained in:
Johannes Hoppe 2017-11-25 16:24:19 +01:00
parent 176be2fdcf
commit f967eb643b
20 changed files with 4 additions and 56 deletions

View file

@ -14,7 +14,6 @@ addons:
- python-enchant
- graphviz
python:
- "2.7"
- "3.5"
- "3.6"
env:
@ -30,14 +29,8 @@ matrix:
allow_failures:
- env: DJANGO=master
exclude:
- env: DJANGO=master
python: "2.7"
- env: TOXENV=qa
python: "2.7"
- env: TOXENV=qa
python: "3.5"
- env: TOXENV=docs
python: "2.7"
- env: TOXENV=docs
python: "3.5"
install:

View file

@ -1,6 +1,8 @@
Changelog Summary
=================
* Drop Python 2 support
### v5.10.0
* Add support for dependent select fields [321](github.com/applegrew/django-select2/pull/321/).

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
This is a Django_ integration of Select2_.

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Shared memory across multiple machines to the heavy AJAX lookups.
@ -12,8 +11,6 @@ It is advised to always setup a separate cache server for Select2.
.. _django.core.cache: https://docs.djangoproject.com/en/dev/topics/cache/
"""
from __future__ import absolute_import, unicode_literals
from django.core.cache import caches
from .conf import settings

View file

@ -1,7 +1,4 @@
# -*- coding: utf-8 -*-
"""Settings for Django-Select2."""
from __future__ import absolute_import, unicode_literals
from appconf import AppConf
from django.conf import settings # NOQA

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Django-Select2 Widgets.
@ -46,8 +45,6 @@ Light widgets are normally named, i.e. there is no
:parts: 1
"""
from __future__ import absolute_import, unicode_literals
from functools import reduce
from itertools import chain
from pickle import PicklingError

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Django-Select2 URL configuration.
@ -7,8 +6,6 @@ Add `django_select` to your ``urlconf`` **if** you use any 'Model' fields::
url(r'^select2/', include('django_select2.urls')),
"""
from __future__ import absolute_import, unicode_literals
from django.conf.urls import url
from .views import AutoResponseView

View file

@ -1,7 +1,4 @@
# -*- coding: utf-8 -*-
"""JSONResponse views for model widgets."""
from __future__ import absolute_import, unicode_literals
from django.core import signing
from django.core.signing import BadSignature
from django.http import Http404, JsonResponse

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Django-Select2 documentation build configuration file, created by
# sphinx-quickstart on Sat Aug 25 10:23:46 2012.

View file

@ -1,11 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
import os
from setuptools import Command, find_packages, setup
from setuptools import find_packages, setup
def read(file_name):
@ -40,7 +37,6 @@ setup(
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Framework :: Django",
"Framework :: Django :: 1.8",

View file

@ -1 +0,0 @@
__author__ = 'johannes'

View file

@ -1,6 +1,3 @@
# -*- coding:utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import random
import string

View file

@ -1,7 +1,3 @@
# -*- coding:utf-8 -*-
from __future__ import absolute_import, unicode_literals
def test_default_cache():
from django_select2.cache import cache

View file

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import collections
import json
import os

View file

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import json
from django.core import signing

View file

@ -1,6 +1,3 @@
# -*- coding:utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django import forms
from django.utils.encoding import force_text

View file

@ -1,6 +1,3 @@
# -*- coding:utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.db import models
from django.utils.encoding import python_2_unicode_compatible

View file

@ -1,6 +1,3 @@
# -*- conding:utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import include, url
from .forms import (

View file

@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import json
from django.http import HttpResponse

View file

@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36}-dj{18,110,111,master},qa,docs
envlist = py{35,36}-dj{18,110,111,master},qa,docs
[testenv]
setenv=
PYTHONPATH = {toxinidir}