mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-03-16 21:40:23 +00:00
Drop Python 2 support
This commit is contained in:
parent
176be2fdcf
commit
f967eb643b
20 changed files with 4 additions and 56 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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/).
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
This is a Django_ integration of Select2_.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
__author__ = 'johannes'
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
# -*- coding:utf-8 -*-
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
import random
|
||||
import string
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
# -*- coding:utf-8 -*-
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
|
||||
def test_default_cache():
|
||||
from django_select2.cache import cache
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
import collections
|
||||
import json
|
||||
import os
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
import json
|
||||
|
||||
from django.core import signing
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# -*- conding:utf-8 -*-
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django.conf.urls import include, url
|
||||
|
||||
from .forms import (
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import json
|
||||
|
||||
from django.http import HttpResponse
|
||||
|
|
|
|||
2
tox.ini
2
tox.ini
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue