Skip to content

Commit 74378c6

Browse files
hugovkPeter Bengtsson
authored andcommitted
Add support for Python 3.7, drop 2.7 (#26)
* Remove branch restriction to test feature branches before PR * Drop support for legacy Python 2.7 * Add support for Python 3.7 * Add python_requires to help pip
1 parent b4d9dfb commit 74378c6

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.travis.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
sudo: false
21
language: python
3-
branches:
4-
only:
5-
- master
6-
python:
7-
- "2.7"
8-
- "3.5"
9-
- "3.6"
10-
- pypy3
2+
matrix:
3+
include:
4+
- python: "3.5"
5+
- python: "3.6"
6+
- python: "3.7"
7+
dist: xenial
8+
- python: pypy3
119
cache: pip
1210
install:
1311
- pip install tox-travis

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ certain pattern.
284284
Compatibility
285285
=============
286286

287-
* Python 2.7, 3.4, 3.5, 3.6
287+
* Python 3.4, 3.5, 3.6, 3.7
288288

289289
* Django 1.8, 1.9, 1.10, 1.11, 2.0, 2.1
290290

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@
1818
url="https://github.com/peterbe/django-cache-memoize",
1919
packages=find_packages(where="src"),
2020
package_dir={"": "src"},
21+
python_requires=">=3.4",
2122
classifiers=[
2223
"Development Status :: 5 - Production/Stable",
2324
"Environment :: Web Environment :: Mozilla",
2425
"Framework :: Django",
2526
"Intended Audience :: Developers",
2627
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
2728
"License :: OSI Approved :: MIT License",
28-
"Programming Language :: Python :: 2.7",
2929
"Programming Language :: Python :: 3",
30+
"Programming Language :: Python :: 3.4",
31+
"Programming Language :: Python :: 3.5",
32+
"Programming Language :: Python :: 3.6",
33+
"Programming Language :: Python :: 3.7",
34+
"Programming Language :: Python :: 3 :: Only",
3035
"Topic :: Internet :: WWW/HTTP",
3136
],
3237
keywords=["django", "memoize", "cache", "decorator"],

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ envlist =
66
lint-py36,
77
readme-py36,
88
docs-py36,
9-
py27-django{18,19,110,111},
109
py35-django{18,19,110,111,20,21},
1110
py36-django{18,19,110,111,20,21},
11+
py37-django{18,19,110,111,20,21},
1212
pypy3-django{18,19,110,111,20,21},
1313

1414
[testenv]
1515
basepython =
16-
py27: python2.7
1716
py35: python3.5
1817
py36: python3.6
18+
py37: python3.7
1919
pypy3: pypy3
2020
usedevelop = true
2121
setenv =

0 commit comments

Comments
 (0)