We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83601b9 commit 4711968Copy full SHA for 4711968
polymorphic/__init__.py
@@ -6,9 +6,7 @@
6
Please see LICENSE and AUTHORS for more information.
7
"""
8
9
-import pkg_resources
+VERSION = "3.1.0"
10
11
-try:
12
- __version__ = pkg_resources.require("django-polymorphic")[0].version
13
-except pkg_resources.DistributionNotFound:
14
- __version__ = None # for RTD among others
+# version synonym for backwards compatibility
+__version__ = VERSION
setup.cfg
@@ -1,6 +1,6 @@
1
[metadata]
2
name = django-polymorphic
3
-version = 3.1.0
+version = attr: polymorphic.VERSION
4
description = Seamless polymorphic inheritance for Django models
5
long_description = file:README.rst
author = Bert Constantin
0 commit comments