Skip to content

Commit 14cfaa3

Browse files
committed
Pull oauth2_provider.__version__ from pkg_resources
1 parent a86ecce commit 14cfaa3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

oauth2_provider/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
__version__ = '0.12.0'
1+
import pkg_resources
22

3-
__author__ = "Massimiliano Pippi & Federico Frenguelli"
43

5-
default_app_config = 'oauth2_provider.apps.DOTConfig'
4+
__version__ = pkg_resources.require("django-oauth-toolkit")[0].version
65

7-
VERSION = __version__ # synonym
6+
default_app_config = "oauth2_provider.apps.DOTConfig"

0 commit comments

Comments
 (0)