From 73a73d41f23569f0d15648b0f95f65eca88cb72a Mon Sep 17 00:00:00 2001 From: Luis Moreno Date: Fri, 29 May 2020 11:36:11 -0400 Subject: [PATCH] Add Django2.2 and Django3.0 releases to the travis tests. Add Python 3.8 to the tests. --- .travis.yml | 16 +++++++++++++--- setup.py | 9 +++++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 74cef00..e876e9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,18 +5,20 @@ env: - DJANGO_VERSION=1.11 - DJANGO_VERSION=2.0 - DJANGO_VERSION=2.1 - - DJANGO_VERSION=2.2b + - DJANGO_VERSION=2.2 + - DJANGO_VERSION=3.0 - DJANGO_VERSION=master python: - "3.4" - "3.5" - "3.6" - "3.7" + - "3.8" - "pypy3.5" install: - if [[ $DJANGO_VERSION != master ]]; then pip install --pre -q "Django>=${DJANGO_VERSION},<${DJANGO_VERSION}.99"; fi - if [[ $DJANGO_VERSION == master ]]; then pip install https://github.com/django/django/archive/master.tar.gz; fi - - pip install django-redis==4.10.0 flake8 python3-memcached>=1.51 + - pip install django-redis>=4.10.0 flake8 python3-memcached>=1.51 script: - ./run.sh test - ./run.sh flake8 @@ -25,11 +27,17 @@ matrix: - python: "3.4" env: DJANGO_VERSION=2.1 - python: "3.4" - env: DJANGO_VERSION=2.2b + env: DJANGO_VERSION=2.2 + - python: "3.4" + env: DJANGO_VERSION=3.0 - python: "3.4" env: DJANGO_VERSION=master + - python: "3.5" + env: DJANGO_VERSION=3.0 - python: "3.5" env: DJANGO_VERSION=master + - python: "pypy3.5" + env: DJANGO_VERSION=3.0 - python: "pypy3.5" env: DJANGO_VERSION=master allow_failures: @@ -37,3 +45,5 @@ matrix: env: DJANGO_VERSION=master - python: "3.7" env: DJANGO_VERSION=master + - python: "3.8" + env: DJANGO_VERSION=master diff --git a/setup.py b/setup.py index 18c506b..41018ca 100644 --- a/setup.py +++ b/setup.py @@ -13,26 +13,27 @@ url='https://github.com/jsocol/django-ratelimit', license='Apache Software License', packages=find_packages(exclude=['test_settings']), - python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + python_requires='>=3.4', include_package_data=True, package_data={'': ['README.rst']}, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', - 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', 'Framework :: Django :: 2.1', + 'Framework :: Django :: 2.2', + 'Framework :: Django :: 3.0', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules',