Skip to content

Commit 47ff598

Browse files
more
1 parent 510a530 commit 47ff598

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ matrix:
2020
exclude:
2121
- python: "2.7"
2222
env: DJANGO_VERSION=master
23-
- python: "pypy"
24-
env: DJANGO_VERSION=master
2523
- python: "2.7"
2624
env: DJANGO_VERSION=2.2.x
25+
- python: "3.4"
26+
env: DJANGO_VERSION=master
2727
- python: "3.4"
2828
env: DJANGO_VERSION=2.2.x
29-
- python: "pypy"
30-
env: DJANGO_VERSION=2.2.x
31-
include:
3229
- python: "3.5"
30+
env: DJANGO_VERSION=master
31+
- python: "pypy"
3332
env: DJANGO_VERSION=2.2.x
33+
- python: "pypy"
34+
env: DJANGO_VERSION=master

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,8 @@ def read(*parts):
8383
'Programming Language :: Python :: 3',
8484
'Programming Language :: Python :: 3.3',
8585
'Programming Language :: Python :: 3.4',
86+
'Programming Language :: Python :: 3.5',
87+
'Programming Language :: Python :: 3.6',
88+
'Programming Language :: Python :: 3.7',
8689
],
8790
)

src/django_babel_underscore/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# -*- coding: utf-8 -*-
22
import django
33

4-
if django.VERSION[:2] >= (1, 8):
5-
from django.template.base import Lexer, TOKEN_TEXT
4+
from django.template.base import Lexer
5+
try:
6+
from django.template.base import TokenType
7+
except ImportError: # django < 2.1
8+
from django.template.base import TOKEN_TEXT
69
else:
7-
from django.template import Lexer, TOKEN_TEXT
10+
TOKEN_TEXT = TokenType.TEXT
811

912
from django.utils.encoding import force_text
1013
from django_babel.extract import extract_django

tox.ini

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ deps = {[testenv]deps110}
9595
basepython = pypy
9696
deps = {[testenv]deps111}
9797

98-
[testenv:pypy-2.2.x]
99-
basepython = pypy
100-
deps = {[testenv]deps22}
101-
10298
[docs]
10399
commands =
104100
pip install -e {toxinidir}

0 commit comments

Comments
 (0)