diff --git a/.github/workflows/run_tox.yml b/.github/workflows/run_tox.yml index 62a89e1..077266f 100644 --- a/.github/workflows/run_tox.yml +++ b/.github/workflows/run_tox.yml @@ -16,12 +16,10 @@ jobs: strategy: matrix: python-version: - - 3.5 - - 3.6 - - 3.7 - - 3.8 # includes tox env about code coverage - - 3.9 - - '3.10' + - 3.7 # oldest supported version + # - 3.8 # no particial need + # - 3.9 # no particial need + - '3.10' # includes tox env about code coverage steps: - uses: actions/checkout@v2.4.0 diff --git a/README.rst b/README.rst index fd6012d..c75c099 100644 --- a/README.rst +++ b/README.rst @@ -6,11 +6,14 @@ in admin. |python| |pypi| |github-actions| |coveralls| |license| -Project aims to support 3.4+ and Django 2.0+. +Project aims to support Python 3.7+ and Django 2.2+. For **Django < 2.0** version support or **python-2.x** compatibility, please use version **1.3.4** which is the last version to support **python-2.x** compatibility. +For **Django 2.0/2.1** version support or **Python 3.5/3.6** compatibility, please use version **1.5.7** which is +the last version to support **Django 2.0/2.1** and **Python 3.5/3.6** compatibility. + This django library is just a lightweight wrapper on `Select2` library and provides easy-to-use basic select2 functionality in a django project. If you need feature-rich solution, i recommend you to look at the latest diff --git a/setup.py b/setup.py index df6f929..8b47d25 100644 --- a/setup.py +++ b/setup.py @@ -51,6 +51,12 @@ def run_tests(self): keywords="django select2", url='https://github.com/asyncee/django-easy-select2', download_url='https://pypi.python.org/pypi/django-easy-select2/', + + python_requires='>=3.7', + install_requires=[ + 'Django>=2.2', + ], + classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', diff --git a/tox.ini b/tox.ini index cd07b1e..0df233a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,8 @@ [tox] +# No particular need for Python 3.8 and 3.9 envlist = - py35-{django20,django21,django22}, - py36-{django20,django21,django22,django30}, - py37-{django20,django21,django22,django30}, - py38-{django20,django21,django22,django30,coverage}, - py39-{django30,django32,django40}, - py310-{django32,django40}, + py37-django22, + py310-{django32,django40,coverage}, [base] deps = @@ -19,19 +16,16 @@ setenv = [testenv] deps = {[base]deps} - django20: django>=2.0,<2.1 - django21: django>=2.1,<2.2 django22: django>=2.2,<2.3 - django30: django>=3.0,<3.1 django32: django>=3.2,<3.3 django40: django>=4.0,<4.1 commands = py.test tests setenv = {[base]setenv} -[testenv:py38-coverage] +[testenv:py310-coverage] deps = {[base]deps} - django==3.0 + django coverage coveralls commands =