From 6c4491fc74ec45d5399cbd9f32a97c58d2b00116 Mon Sep 17 00:00:00 2001 From: Francisco Troncoso Date: Mon, 9 Dec 2019 13:57:47 +0100 Subject: [PATCH] Fixed automatic installation of dependencies. --- docs/conf.py | 2 +- pypozyx/__init__.py | 5 ----- setup.py | 2 +- version.py | 4 ++++ 4 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 version.py 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__