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)