Skip to content

Commit 0b58338

Browse files
moserauvipy
authored andcommitted
Remove pkg_resources usage.
1 parent 800e61e commit 0b58338

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

debug_toolbar/__init__.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
__all__ = ["VERSION"]
22

33

4-
try:
5-
import pkg_resources
6-
7-
VERSION = pkg_resources.get_distribution("django-debug-toolbar").version
8-
except Exception:
9-
VERSION = "unknown"
10-
4+
# Do not use pkg_resources to find the version but set it here directly!
5+
# see issue #1446
6+
VERSION = "3.2"
117

128
# Code that discovers files or modules in INSTALLED_APPS imports this module.
139

docs/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ The release itself requires the following steps:
141141
Commit.
142142

143143
#. Bump version numbers in ``docs/changes.rst``, ``docs/conf.py``,
144-
``README.rst`` and ``setup.py``. Add the release date to
145-
``docs/changes.rst``. Commit.
144+
``README.rst``, ``debug_toolbar/__init__.py`` and ``setup.py``.
145+
Add the release date to ``docs/changes.rst``. Commit.
146146

147147
#. Tag the new version.
148148

0 commit comments

Comments
 (0)