mirror of
https://github.com/Hopiu/django-rosetta.git
synced 2026-03-16 21:30:24 +00:00
initial tests against Django 3.1
This commit is contained in:
parent
efdc0a649d
commit
b02ad3ad1d
6 changed files with 14 additions and 17 deletions
11
.travis.yml
11
.travis.yml
|
|
@ -9,22 +9,17 @@ matrix:
|
|||
env: TOX_ENV=py36-django21
|
||||
- python: "3.6"
|
||||
env: TOX_ENV=py36-django22
|
||||
dist: xenial
|
||||
- python: "3.7"
|
||||
env: TOX_ENV=py37-django111
|
||||
dist: xenial
|
||||
- python: "3.7"
|
||||
env: TOX_ENV=py37-django20
|
||||
dist: xenial
|
||||
- python: "3.7"
|
||||
env: TOX_ENV=py37-django21
|
||||
dist: xenial
|
||||
- python: "3.7"
|
||||
env: TOX_ENV=py37-django22
|
||||
dist: xenial
|
||||
- python: "3.7"
|
||||
env: TOX_ENV=py37-django30
|
||||
dist: xenial
|
||||
- python: "3.7"
|
||||
env: TOX_ENV=py37-django31
|
||||
|
||||
|
||||
before_install:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install memcached; brew services start memcached; fi
|
||||
|
|
|
|||
1
CHANGES
1
CHANGES
|
|
@ -11,6 +11,7 @@ Version 0.9.5 (unreleased)
|
|||
* Uncheck fuzzy on translation keyup instead of change (#235 @mondeja)
|
||||
* Allow passing a function itself to the setting ROSETTA_ACCESS_CONTROL (#227, thanks @alvra)
|
||||
* Dropped support for Django 1.11 and Python 2
|
||||
* Test against Django 3.1a
|
||||
|
||||
|
||||
Version 0.9.4
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@
|
|||
<h1> </h1>
|
||||
<ul class="object-tools">
|
||||
<li class="nobubble">{% trans "Filter" %}:</li>
|
||||
<li{% ifequal po_filter 'project' %} class="active"{% endifequal %}><a href="{% url 'rosetta-file-list' po_filter='project' %}">{% trans "Project" %}</a></li>
|
||||
<li{% ifequal po_filter 'third-party' %} class="active"{% endifequal %}><a href="{% url 'rosetta-file-list' po_filter='third-party' %}">{% trans "Third party" %}</a></li>
|
||||
<li{% ifequal po_filter 'django' %} class="active"{% endifequal %}><a href="{% url 'rosetta-file-list' po_filter='django' %}">Django</a></li>
|
||||
<li{% ifequal po_filter 'all' %} class="active"{% endifequal %}><a href="{% url 'rosetta-file-list' po_filter='all' %}">{% trans "All" %}</a></li>
|
||||
<li{% if po_filter == 'project' %} class="active"{% endif %}><a href="{% url 'rosetta-file-list' po_filter='project' %}">{% trans "Project" %}</a></li>
|
||||
<li{% if po_filter == 'third-party' %} class="active"{% endif %}><a href="{% url 'rosetta-file-list' po_filter='third-party' %}">{% trans "Third party" %}</a></li>
|
||||
<li{% if po_filter == 'django' %} class="active"{% endif %}><a href="{% url 'rosetta-file-list' po_filter='django' %}">Django</a></li>
|
||||
<li{% if po_filter == 'all' %} class="active"{% endif %}><a href="{% url 'rosetta-file-list' po_filter='all' %}">{% trans "All" %}</a></li>
|
||||
</ul>
|
||||
|
||||
{% if has_pos %}
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
<label for="ref-language-selector">{% trans "Reference language" %}:</label>
|
||||
<select class="select-across" id="ref-language-selector" onchange="javascript:window.location.href = this.value;">
|
||||
{% for langid, langname in LANGUAGES %}
|
||||
<option{% ifequal ref_lang langid %} selected="selected"{% endifequal %} value="?ref_lang={{ langid }}">{{langname}}</option>
|
||||
<option{% if ref_lang == langid %} selected="selected"{% endif %} value="?ref_lang={{ langid }}">{{langname}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ TEMPLATES = [
|
|||
"django.template.context_processors.static",
|
||||
"django.template.context_processors.tz",
|
||||
"django.contrib.messages.context_processors.messages",
|
||||
"django.template.context_processors.request",
|
||||
),
|
||||
},
|
||||
}
|
||||
|
|
|
|||
8
tox.ini
8
tox.ini
|
|
@ -2,7 +2,7 @@
|
|||
envlist =
|
||||
flake8,
|
||||
py{36,37}-django{20,21},
|
||||
py{36,37,38}-django{22,30},
|
||||
py{36,37,38}-django{22,30,31},
|
||||
gettext,
|
||||
docs
|
||||
|
||||
|
|
@ -19,12 +19,12 @@ setenv =
|
|||
|
||||
deps =
|
||||
django20: Django==2.0.*
|
||||
django21: Django>=2.1a1,<=2.1.99
|
||||
django21: Django>=2.1,<=2.1.99
|
||||
django22: Django>=2.2.8,<=2.2.99
|
||||
django30: Django>=3.0,<=3.0.99
|
||||
django31: Django>=3.1a,<=3.1.99
|
||||
|
||||
py{36,37,38}-django{20,21,22,30}: python3-memcached
|
||||
|
||||
python-memcached
|
||||
requests
|
||||
polib>=1.1.0
|
||||
six
|
||||
|
|
|
|||
Loading…
Reference in a new issue