diff --git a/docs/conf.py b/docs/conf.py index b60ac01..c699918 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,7 +20,7 @@ import os sys.path.append(os.path.join(os.path.dirname(__name__), '..')) -from pypozyx import VERSION as PYPOZYX_VERSION +from version import VERSION as PYPOZYX_VERSION # -- Project information ----------------------------------------------------- diff --git a/pypozyx/__init__.py b/pypozyx/__init__.py index 30c6e56..622a8e0 100755 --- a/pypozyx/__init__.py +++ b/pypozyx/__init__.py @@ -72,11 +72,6 @@ """ -__version__ = '1.3.0' - -VERSION = __version__ -version = __version__ - from pypozyx.definitions import * from pypozyx.pozyx_serial import * diff --git a/setup.py b/setup.py index c60dcd2..c4a2160 100755 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup from codecs import open -from pypozyx import VERSION as PYPOZYX_VERSION +from version import VERSION as PYPOZYX_VERSION here = path.abspath(path.dirname(__file__)) # Get the long description from the README file diff --git a/version.py b/version.py new file mode 100644 index 0000000..5db8997 --- /dev/null +++ b/version.py @@ -0,0 +1,4 @@ +__version__ = '1.3.0' + +VERSION = __version__ +version = __version__