From a91a04af6b95fa600a0b3ce74b5fffc07ecf590e Mon Sep 17 00:00:00 2001 From: Jerome Leclanche Date: Mon, 22 May 2017 14:05:55 +0300 Subject: [PATCH] Set polymorphic.__version__ from setuptools metadata --- polymorphic/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polymorphic/__init__.py b/polymorphic/__init__.py index 77d7fe2..a1219bf 100644 --- a/polymorphic/__init__.py +++ b/polymorphic/__init__.py @@ -7,5 +7,7 @@ This code and affiliated files are (C) by Bert Constantin and individual contrib Please see LICENSE and AUTHORS for more information. """ -# See PEP 440 (https://www.python.org/dev/peps/pep-0440/) -__version__ = "1.3" +import pkg_resources + + +__version__ = pkg_resources.require("django-polymorphic")[0].version