Skip to content

Commit 9b74455

Browse files
authored
Merge pull request #39 from mahmoud/chameleon-upgrade
Chameleon upgrade
2 parents a68e036 + f061165 commit 9b74455

File tree

6 files changed

+17
-6
lines changed

6 files changed

+17
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ htmlcov/
33
tmp.py
44
examples/cline/todo.db
55
*.py[cod]
6+
venv*
67

78
# emacs
89
*~

clastic/tests/test_chameleon_render.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def test_chameleon_mixed():
5858

5959
c = app.get_local_client()
6060
resp = c.get('/')
61-
assert resp.status_code == 200
61+
assert resp.status_code == 200, resp.data
6262
assert b'clasty' in resp.data
6363

6464
resp = c.get('/json/')
65-
assert resp.status_code == 200
65+
assert resp.status_code == 200, resp.data

requirements.in

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
ashes
22
boltons
3-
chameleon<3.10 # 4.0 dropped 2.7 support, 3.10 made scopes dict-like in a way that breaks tests
4-
coverage
3+
# 4.3.0 fixed the long-running dict iterability issue, see chameleon #390
4+
chameleon>=4.4.1;python_version >= '3.8'
5+
chameleon<=3.9.1;python_version < '3.8'
6+
coverage<=7.2.7
57
face
68
mako
79
pip-tools

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ ashes==19.2.0 # via -r requirements.in
88
boltons==23.1.1 # via -r requirements.in, face
99
build==1.0.3 # via pip-tools
1010
cachetools==5.3.2 # via tox
11-
chameleon==3.9.1 # via -r requirements.in
11+
chameleon==3.9.1 ; python_version < "3.8" # via -r requirements.in
12+
chameleon==4.4.1 ; python_version >= "3.8" # via -r requirements.in
1213
chardet==5.2.0 # via tox
1314
click==8.1.7 # via pip-tools
1415
colorama==0.4.6 # via tox

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def import_path(module_name, path):
5555
license=__license__,
5656
platforms='any',
5757
tests_require=[
58-
'chameleon==3.9.1',
58+
'chameleon>=4.4.1',
5959
'Mako',
6060
'pytest',
6161
'psutil'],

tox.ini

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ changedir = .tox
66
deps = -rrequirements.txt
77
commands = coverage run --parallel --rcfile {toxinidir}/.tox-coveragerc -m pytest {envsitepackagesdir}/clastic {posargs}
88

9+
[testenv:py311]
10+
# chameleon 4.3.0 is broken on windows, and 4.4.0 dropped py3.7
11+
# when dropping py3.7, can remove this
12+
deps =
13+
-rrequirements.txt
14+
chameleon>=4.4.1
15+
916
[testenv:coverage-report]
1017
depends = py37,py38,py39,py310,py311,pypy3
1118
changedir = .tox

0 commit comments

Comments
 (0)