Skip to content

Commit 3b26dc6

Browse files
author
Pamela McA'Nulty
committed
Merge branch 'master' into pm/remove_support_pre_dj18_and_support_dj111
# Conflicts: # django_coverage_plugin/plugin.py
2 parents e841827 + e469822 commit 3b26dc6

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,4 @@ kit:
2929
$(SDIST_CMD)
3030

3131
kit_upload:
32-
$(SDIST_CMD) upload
33-
34-
pypi:
35-
python setup.py register
32+
twine upload dist/*

README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,21 @@ plural text, so both are marked as used if the tag is used.
5959
Changes
6060
~~~~~~~
6161

62+
v1.4.2 --- 2017-02-06
63+
---------------------
64+
65+
Fixes another instance of `issue 32`_, which was the result of an initialization order problem.
66+
67+
.. _issue 32: https://github.com/nedbat/django_coverage_plugin/issues/32
68+
69+
70+
v1.4.1 --- 2017-01-25
71+
---------------------
72+
73+
Fixes `issue 32`_, which was the result of an initialization order problem.
74+
75+
.. _issue 32: https://github.com/nedbat/django_coverage_plugin/issues/32
76+
6277

6378
v1.4 --- 2017-01-16
6479
-------------------

django_coverage_plugin/plugin.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,18 @@ def check_debug():
4949
if not settings.configured:
5050
return False
5151

52+
# I _think_ this check is all that's needed and the 3 "hasattr" checks
53+
# below can be removed, but it's not clear how to verify that
54+
from django.apps import apps
55+
if not apps.ready:
56+
return False
57+
5258
# django.template.backends.django gets loaded lazily, so return false
5359
# until they've been loaded
5460
if not hasattr(django.template, "backends"):
5561
return False
5662
if not hasattr(django.template.backends, "django"):
5763
return False
58-
5964
if not hasattr(django.template.backends.django, "DjangoTemplates"):
6065
raise DjangoTemplatePluginException("Can't use non-Django templates.")
6166

howto.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
- Update README.rst with latest changes
77
- Kits:
88
$ make kit
9-
$ make pypi
109
$ make kit_upload

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# To run tests, we just need tox.
22
tox >= 1.8
3+
twine

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
setup(
2424
name='django_coverage_plugin',
25-
version='1.4',
25+
version='1.4.2',
2626
description='Django template coverage.py plugin',
2727
author='Ned Batchelder',
2828
author_email='[email protected]',

0 commit comments

Comments
 (0)