Skip to content

Commit de030c7

Browse files
Add support of Python 3.7 and Django 2.1
1 parent 7002b08 commit de030c7

File tree

5 files changed

+47
-44
lines changed

5 files changed

+47
-44
lines changed

.travis.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,41 @@ language: python
22
matrix:
33
include:
44
- python: 2.7
5-
env: TOXENV=py27
5+
env: TOXENV=py27-core
66
- python: 3.5
7-
env: TOXENV=py35
7+
env: TOXENV=py35-core
88
- python: 3.6
9-
env: TOXENV=py36
9+
env: TOXENV=py36-core
10+
- python: 3.7
11+
dist: xenial
12+
sudo: true
13+
env: TOXENV=py37-core
1014
- python: 2.7
11-
env: TOXENV=py27-django8
15+
env: TOXENV=py27-django18
1216
- python: 3.5
13-
env: TOXENV=py35-django8
17+
env: TOXENV=py35-django18
1418
- python: 2.7
15-
env: TOXENV=py27-django9
19+
env: TOXENV=py27-django19
1620
- python: 3.5
17-
env: TOXENV=py35-django9
21+
env: TOXENV=py35-django19
1822
- python: 2.7
19-
env: TOXENV=py27-django10
23+
env: TOXENV=py27-django110
2024
- python: 3.6
21-
env: TOXENV=py36-django10
25+
env: TOXENV=py36-django110
2226
- python: 2.7
23-
env: TOXENV=py27-django11
27+
env: TOXENV=py27-django111
2428
- python: 3.6
25-
env: TOXENV=py36-django11
29+
env: TOXENV=py36-django111
30+
- python: 3.5
31+
env: TOXENV=py35-django20
32+
- python: 3.7
33+
dist: xenial
34+
sudo: true
35+
env: TOXENV=py37-django20
36+
- python: 3.7
37+
dist: xenial
38+
sudo: true
39+
env: TOXENV=py37-django21
2640
install:
2741
- pip install tox
2842
script:

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Please be aware that the package is used in a wide variety of environments and t
2525
- Make sure that your code works both with and without Django
2626
- The code should support:
2727
- Python >= 2.7
28-
- Django >= 1.4
28+
- Django >= 1.8
2929

3030
## Code contribution
3131

@@ -75,7 +75,7 @@ Make sure that your code works both with and without Django
7575
The code should support:
7676

7777
- Python >= 2.7
78-
- Django >= 1.4
78+
- Django >= 1.8
7979

8080
Make sure that tests completes without errors.
8181

@@ -93,7 +93,7 @@ This only runs the tests for the current environment.
9393
Travis-CI will run the full suite when you submit your pull request.
9494

9595
The full test suite takes a long time to run because it tests multiple combinations of Python and Django.
96-
You need to have Python 2.7, 3.3, 3.4, 3.5, 3.6 installed to run all of the environments. Then run::
96+
You need to have Python 2.7, 3.4, 3.5, 3.6, 3.7 installed to run all of the environments. Then run::
9797

9898
CLOUDINARY_URL=cloudinary://apikey:apisecret@cloudname tox
9999

@@ -147,4 +147,4 @@ It's likely that your change will not be merged and that the nitpicky maintainer
147147

148148
#### Thank You
149149

150-
Please do know that we really appreciate and value your time and work. We love you, really.
150+
Please do know that we really appreciate and value your time and work. We love you, really.

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,22 @@
1919
"Development Status :: 5 - Production/Stable",
2020
"Environment :: Web Environment",
2121
"Framework :: Django",
22-
"Framework :: Django :: 1.4",
23-
"Framework :: Django :: 1.5",
24-
"Framework :: Django :: 1.6",
25-
"Framework :: Django :: 1.7",
2622
"Framework :: Django :: 1.8",
2723
"Framework :: Django :: 1.9",
2824
"Framework :: Django :: 1.10",
2925
"Framework :: Django :: 1.11",
26+
"Framework :: Django :: 2.0",
27+
"Framework :: Django :: 2.1",
3028
"Intended Audience :: Developers",
3129
"License :: OSI Approved :: MIT License",
3230
"Programming Language :: Python",
3331
"Programming Language :: Python :: 2",
3432
"Programming Language :: Python :: 2.7",
3533
"Programming Language :: Python :: 3",
36-
"Programming Language :: Python :: 3.3",
3734
"Programming Language :: Python :: 3.4",
3835
"Programming Language :: Python :: 3.5",
3936
"Programming Language :: Python :: 3.6",
37+
"Programming Language :: Python :: 3.7",
4038
"Topic :: Internet :: WWW/HTTP",
4139
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
4240
"Topic :: Multimedia :: Graphics",

test/test_uploader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ def test_upload_file_io_without_filename(self):
134134
def test_upload_async(self, mocker):
135135
"""should pass async value """
136136
mocker.return_value = MOCK_RESPONSE
137-
uploader.upload(TEST_IMAGE, tags=[UNIQUE_TAG], async=True)
137+
async_option = {"async": True}
138+
uploader.upload(TEST_IMAGE, tags=[UNIQUE_TAG], **async_option)
138139
params = mocker.call_args[0][2]
139140
self.assertTrue(params['async'])
140141

tox.ini

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
11
[tox]
22
envlist =
3-
py{27,33,34,35,36}
4-
py{27}-django{4}
5-
py{27,33}-django{5,6}
6-
py{27,33,34}-django{7}
7-
py{27,33,34,35}-django{8}
8-
py{27,34,35}-django{9,10}
9-
py{27,34,35,36}-django{11}
3+
py{27,34,35,36,37}-core
4+
py{27,34,35}-django{18,19,110}
5+
py{27,34,35,36}-django{111}
6+
py{36,37}-django{20,21}
107
[testenv]
118
usedevelop = True
129
commands =
13-
py{27,33,34,35,36}: python setup.py test {env:P_ARGS:}
14-
py{27}-django{4}: django-admin.py test -v2 django_tests {env:D_ARGS:}
15-
py{27,33}-django{5,6}: django-admin.py test -v2 django_tests {env:D_ARGS:}
16-
py{27,33,34}-django{7}: django-admin.py test -v2 django_tests {env:D_ARGS:}
17-
py{27,33,34,35}-django{8}: django-admin.py test -v2 django_tests {env:D_ARGS:}
18-
py{27,34,35}-django{9,10}: django-admin.py test -v2 django_tests {env:D_ARGS:}
19-
py{27,34,35,36}-django{11}: django-admin.py test -v2 django_tests {env:D_ARGS:}
20-
passenv = *
10+
py{27,34,35,36,37}-core: python setup.py test {env:P_ARGS:}
11+
py{27,34,35,36,37}-django{18,19,110,111,20,21}: django-admin.py test -v2 django_tests {env:D_ARGS:}
12+
passenv = *
2113
deps =
22-
django4: Django>=1.4,<1.5
23-
django5: Django>=1.5,<1.6
24-
django6: Django>=1.6,<1.7
25-
django7: Django>=1.7,<1.8
26-
django8: Django>=1.8,<1.9
27-
django9: Django>=1.9,<1.10
28-
django10: Django>=1.10,<1.11
29-
django11: Django>=1.11,<1.12
14+
django18: Django>=1.8,<1.9
15+
django19: Django>=1.9,<1.10
16+
django110: Django>=1.10,<1.11
17+
django111: Django>=1.11,<1.12
18+
django20: Django>=2.0,<2.1
19+
django21: Django>=2.1,<2.2
3020
setenv =
3121
DJANGO_SETTINGS_MODULE=django_tests.settings

0 commit comments

Comments
 (0)