Skip to content

Commit

Permalink
Merge pull request #91 from transifex/3.0.2
Browse files Browse the repository at this point in the history
Fix lazyt escaping, exclude tests from package
  • Loading branch information
Nikos Vasileiou authored Nov 17, 2022
2 parents 75e76a4 + f1ae356 commit 103b6ac
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ code_quality:
--mount src="$$(pwd)",target=/src,type=bind \
transifex/txlint --files

shell_dj1.11_py3.6:
# Django 1.11 (3.6)
docker run --rm -it --entrypoint bash native:3.6-1.11-latest

shell_dj2.0_py3.6:
# Django 2.0 (Python 3.6)
docker run --rm -it --entrypoint bash native:3.6-2.0-latest

shell_dj2.2_py3.8:
# Django 2.2 (Python 3.8)
docker run --rm -it --entrypoint bash native:3.8-2.2-latest

shell_dj3.2_py3.9:
# Django 3.2 (Python 3.9)
docker run --rm -it --entrypoint bash native:3.9-3.2-latest

localtests:
# Django 1.11 (3.6)
docker run -v $(CUR_PATH):/usr/app \
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
description=("Transifex Python Toolkit"),
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
packages=find_packages(exclude=["tests"]),
classifiers=[
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: Apache Software License",
Expand Down
2 changes: 1 addition & 1 deletion transifex/native/django/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def lazy_translate(_string, _context=None, _escape=True, **params):
translate,
_string,
_context=_context,
escape=_escape,
_escape=_escape,
fallback_value=_string,
**params
)
Expand Down

0 comments on commit 103b6ac

Please sign in to comment.