From c8ba64e3539f22ab8c457a8c93aca0ae09da80b8 Mon Sep 17 00:00:00 2001 From: Alexei Chetroi Date: Sun, 5 May 2019 01:13:49 -0400 Subject: [PATCH] Version bump 0.2.1 (#44) --- setup.py | 4 ++-- tests/test_const.py | 6 ------ zigpy_xbee/__init__.py | 5 +++++ zigpy_xbee/const.py | 6 ------ 4 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 tests/test_const.py delete mode 100644 zigpy_xbee/const.py diff --git a/setup.py b/setup.py index 50c705e..62a1625 100644 --- a/setup.py +++ b/setup.py @@ -2,11 +2,11 @@ from setuptools import find_packages, setup -import zigpy_xbee.const as xbee_const +import zigpy_xbee setup( name="zigpy-xbee-homeassistant", - version=xbee_const.__version__, + version=zigpy_xbee.__version__, description="A library which communicates with XBee radios for zigpy", url="http://github.com/zigpy/zigpy-xbee", author="Russell Cloran", diff --git a/tests/test_const.py b/tests/test_const.py deleted file mode 100644 index 2ec6a1a..0000000 --- a/tests/test_const.py +++ /dev/null @@ -1,6 +0,0 @@ -import zigpy_xbee.const - - -def test_version(): - assert isinstance(zigpy_xbee.const.__short_version__, str) - assert isinstance(zigpy_xbee.const.__version__, str) diff --git a/zigpy_xbee/__init__.py b/zigpy_xbee/__init__.py index e69de29..ee47b92 100644 --- a/zigpy_xbee/__init__.py +++ b/zigpy_xbee/__init__.py @@ -0,0 +1,5 @@ +MAJOR_VERSION = 0 +MINOR_VERSION = 2 +PATCH_VERSION = '1' +__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) +__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION) diff --git a/zigpy_xbee/const.py b/zigpy_xbee/const.py deleted file mode 100644 index a0058a7..0000000 --- a/zigpy_xbee/const.py +++ /dev/null @@ -1,6 +0,0 @@ -"""Constants used by zigpy-xbee.""" -MAJOR_VERSION = 0 -MINOR_VERSION = 2 -PATCH_VERSION = '1.dev0' -__short_version__ = '{}.{}'.format(MAJOR_VERSION, MINOR_VERSION) -__version__ = '{}.{}'.format(__short_version__, PATCH_VERSION)