File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 22
33from setuptools import find_packages , setup
44
5+ import zigpy_xbee .const as xbee_const
6+
57setup (
68 name = "zigpy-xbee-homeassistant" ,
7- version = "0.1.3" ,
9+ version = xbee_const . __version__ ,
810 description = "A library which communicates with XBee radios for zigpy" ,
911 url = "http://github.com/zigpy/zigpy-xbee" ,
1012 author = "Russell Cloran" ,
Original file line number Diff line number Diff line change 1+ import zigpy_xbee .const
2+
3+
4+ def test_version ():
5+ assert isinstance (zigpy_xbee .const .__short_version__ , str )
6+ assert isinstance (zigpy_xbee .const .__version__ , str )
Original file line number Diff line number Diff line change 1+ """Constants used by zigpy-xbee."""
2+ MAJOR_VERSION = 0
3+ MINOR_VERSION = 1
4+ PATCH_VERSION = "4.dev0"
5+ __short_version__ = '{}.{}' .format (MAJOR_VERSION , MINOR_VERSION )
6+ __version__ = '{}.{}' .format (__short_version__ , PATCH_VERSION )
You can’t perform that action at this time.
0 commit comments