File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import re
12from setuptools import setup , find_packages
23
4+ # Auto detect the library version from the __init__.py file
5+ with open ('xbee/__init__.py' , 'r' ) as fd :
6+ version = re .search (r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]' ,
7+ fd .read (), re .MULTILINE ).group (1 )
8+ if not version :
9+ raise RuntimeError ('Cannot find version information' )
10+
311setup (
412 name = 'XBee' ,
5- version = '2.2.4' ,
13+ version = version ,
614 description = 'Python tools for working with XBee radios' ,
715 long_description = open ('README.rst' ).read (),
816 url = 'https://github.com/nioinnovation/python-xbee' ,
9- author = 'Paul Malmsten ' ,
10- author_email = 'pmalmsten@gmail.com ' ,
17+ author = 'n.io ' ,
18+ author_email = 'info@n.io ' ,
1119 license = 'MIT' ,
1220 classifiers = [
1321 'Development Status :: 5 - Production/Stable' ,
Original file line number Diff line number Diff line change 11"""
22XBee package initalization file
33
4- By Paul Malmsten, 2010
5- pmalmsten@gmail.com
4+ info@n.io
65"""
76
7+ __title__ = 'xbee'
8+ __version__ = '2.2.4'
9+ __author__ = 'n.io'
10+ __license__ = 'MIT'
11+
812from xbee .ieee import XBee
913from xbee .zigbee import ZigBee
1014from xbee .digimesh import DigiMesh
You can’t perform that action at this time.
0 commit comments