Skip to content

Commit ea29cce

Browse files
authored
Merge pull request gusdan#6 from uncovertruth/fix/env_name
Fix wrong env name
2 parents 2268a33 + feda455 commit ea29cce

File tree

5 files changed

+52
-46
lines changed

5 files changed

+52
-46
lines changed

.travis.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,52 @@ matrix:
55
fast_finish: true
66
include:
77
- python: 2.7
8-
env: TOXENV=py27-dj18
8+
env: TOX_ENV=py27-dj18
99
- python: 3.3
10-
env: TOXENV=py33-dj18
10+
env: TOX_ENV=py33-dj18
1111
- python: 3.4
12-
env: TOXENV=py34-dj18
12+
env: TOX_ENV=py34-dj18
1313
- python: 3.5
14-
env: TOXENV=py34-dj18
14+
env: TOX_ENV=py34-dj18
1515
- python: 2.7
16-
env: TOXENV=py27-dj19
16+
env: TOX_ENV=py27-dj19
1717
- python: 3.4
18-
env: TOXENV=py34-dj19
18+
env: TOX_ENV=py34-dj19
1919
- python: 3.5
20-
env: TOXENV=py35-dj19
20+
env: TOX_ENV=py35-dj19
2121
- python: 2.7
22-
env: TOXENV=py27-dj110
22+
env: TOX_ENV=py27-dj110
2323
- python: 3.4
24-
env: TOXENV=py34-dj110
24+
env: TOX_ENV=py34-dj110
2525
- python: 3.5
26-
env: TOXENV=py35-dj110
26+
env: TOX_ENV=py35-dj110
2727
- python: 2.7
28-
env: TOXENV=py27-dj111
28+
env: TOX_ENV=py27-dj111
2929
- python: 3.4
30-
env: TOXENV=py34-dj111
30+
env: TOX_ENV=py34-dj111
3131
- python: 3.5
32-
env: TOXENV=py35-dj111
32+
env: TOX_ENV=py35-dj111
3333
- python: 3.6
34-
env: TOXENV=py36-dj111
34+
env: TOX_ENV=py36-dj111
3535
- python: 3.5
36-
env: TOXENV=py35-djdev
36+
env: TOX_ENV=py35-djdev
3737
- python: 3.6
38-
env: TOXENV=py36-djdev
38+
env: TOX_ENV=py36-djdev
3939
- python: 3.6
40-
env: TOXENV=flake8
40+
env: TOX_ENV=flake8
4141
- python: 3.6
42-
env: TOXENV=isort
42+
env: TOX_ENV=isort
4343
- python: 3.6
44-
env: TOXENV=readme
44+
env: TOX_ENV=readme
4545
- python: 3.6
46-
env: TOXENV=check-manifest
46+
env: TOX_ENV=check-manifest
4747
allow_failures:
4848
- env: TOX_ENV=py35-djdev
4949
- env: TOX_ENV=py36-djdev
5050
install:
51-
- pip install tox codecov
51+
- pip install tox
5252
script:
53-
- tox -v
54-
after_success:
55-
- codecov
53+
- tox -e "$TOX_ENV"
5654
deploy:
5755
provider: pypi
5856
user: uncovertruth

django_elastipymemcache/memcached.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def __init__(self, server, params):
4444
raise InvalidCacheBackendError(
4545
'Server configuration should be in format IP:port')
4646

47+
# Patch for django<1.11
48+
self._options = self._options or dict()
4749
self._ignore_cluster_errors = self._options.get(
4850
'ignore_exc', False)
4951

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
nose
1+
check-manifest
22
coverage
33
flake8
44
isort
5+
mock
6+
nose
7+
pymemcache
58
readme_renderer
6-
check-manifest

tests/test_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_no_configuration_protocol_support_with_errors_ignored(Telnet):
113113
call(b'version\n'),
114114
call(b'config get cluster\n'),
115115
])
116-
eq_(info['version'], '1.4.34')
116+
eq_(info['version'], b'1.4.34')
117117
eq_(info['nodes'], [('test', 0)])
118118

119119

tox.ini

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,33 @@
11
[tox]
22
envlist =
3-
py{27,33,34,35,36}-dj{18,19,110,111,dev}
4-
flake8,
5-
isort,
6-
readme
7-
check-manifest
3+
py{27,33,34,35,36}-dj{18,19,110,111,dev}
4+
flake8,
5+
isort,
6+
readme
7+
check-manifest
88

99
[testenv]
1010
basepython =
11-
py27: python2.7
12-
py33: python3.3
13-
py34: python3.4
14-
py35: python3.5
15-
py36: python3.6
11+
py27: python2.7
12+
py33: python3.3
13+
py34: python3.4
14+
py35: python3.5
15+
py36: python3.6
1616
deps =
17-
dj18: Django>=1.8,<1.9
18-
dj19: Django>=1.9,<1.10
19-
dj110: Django>=1.10,<1.11
20-
dj111: Django>=1.11,<2.0
21-
djdev: https://github.com/django/django/archive/master.tar.gz
22-
nose
23-
coverage
17+
dj18: Django>=1.8,<1.9
18+
dj19: Django>=1.9,<1.10
19+
dj110: Django>=1.10,<1.11
20+
dj111: Django>=1.11,<2.0
21+
djdev: https://github.com/django/django/archive/master.tar.gz
22+
-r{toxinidir}/requirements.txt
23+
py36-dj111: codecov
2424
setenv =
25-
PYTHONPATH = {toxinidir}
26-
commands = coverage run --source=django_elastipymemcache -a setup.py test
25+
PYTHONPATH = {toxinidir}
26+
commands =
27+
coverage run --source=django_elastipymemcache -m nose
28+
py36-dj111: coverage report
29+
py36-dj111: coverage xml
30+
py36-dj111: codecov
2731

2832
[testenv:flake8]
2933
basepython = python3.6

0 commit comments

Comments
 (0)