Skip to content

Commit

Permalink
Merge pull request #39 from mahmoud/chameleon-upgrade
Browse files Browse the repository at this point in the history
Chameleon upgrade
  • Loading branch information
mahmoud authored Dec 18, 2023
2 parents a68e036 + f061165 commit 9b74455
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ htmlcov/
tmp.py
examples/cline/todo.db
*.py[cod]
venv*

# emacs
*~
Expand Down
4 changes: 2 additions & 2 deletions clastic/tests/test_chameleon_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def test_chameleon_mixed():

c = app.get_local_client()
resp = c.get('/')
assert resp.status_code == 200
assert resp.status_code == 200, resp.data
assert b'clasty' in resp.data

resp = c.get('/json/')
assert resp.status_code == 200
assert resp.status_code == 200, resp.data
6 changes: 4 additions & 2 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
ashes
boltons
chameleon<3.10 # 4.0 dropped 2.7 support, 3.10 made scopes dict-like in a way that breaks tests
coverage
# 4.3.0 fixed the long-running dict iterability issue, see chameleon #390
chameleon>=4.4.1;python_version >= '3.8'
chameleon<=3.9.1;python_version < '3.8'
coverage<=7.2.7
face
mako
pip-tools
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ ashes==19.2.0 # via -r requirements.in
boltons==23.1.1 # via -r requirements.in, face
build==1.0.3 # via pip-tools
cachetools==5.3.2 # via tox
chameleon==3.9.1 # via -r requirements.in
chameleon==3.9.1 ; python_version < "3.8" # via -r requirements.in
chameleon==4.4.1 ; python_version >= "3.8" # via -r requirements.in
chardet==5.2.0 # via tox
click==8.1.7 # via pip-tools
colorama==0.4.6 # via tox
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def import_path(module_name, path):
license=__license__,
platforms='any',
tests_require=[
'chameleon==3.9.1',
'chameleon>=4.4.1',
'Mako',
'pytest',
'psutil'],
Expand Down
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ changedir = .tox
deps = -rrequirements.txt
commands = coverage run --parallel --rcfile {toxinidir}/.tox-coveragerc -m pytest {envsitepackagesdir}/clastic {posargs}

[testenv:py311]
# chameleon 4.3.0 is broken on windows, and 4.4.0 dropped py3.7
# when dropping py3.7, can remove this
deps =
-rrequirements.txt
chameleon>=4.4.1

[testenv:coverage-report]
depends = py37,py38,py39,py310,py311,pypy3
changedir = .tox
Expand Down

0 comments on commit 9b74455

Please sign in to comment.