diff --git a/py25/bacpypes/__init__.py b/py25/bacpypes/__init__.py index fdd8fa89..23616d3e 100755 --- a/py25/bacpypes/__init__.py +++ b/py25/bacpypes/__init__.py @@ -14,6 +14,14 @@ if _sys.platform not in _supported_platforms: _warnings.warn("unsupported platform", RuntimeWarning) +# +# Project Metadata +# + +__version__ = '0.13.8' +__author__ = 'Joel Bender' +__email__ = 'joel@carrickbender.com' + # # Communications Core Modules # diff --git a/py27/bacpypes/__init__.py b/py27/bacpypes/__init__.py index fdd8fa89..23616d3e 100755 --- a/py27/bacpypes/__init__.py +++ b/py27/bacpypes/__init__.py @@ -14,6 +14,14 @@ if _sys.platform not in _supported_platforms: _warnings.warn("unsupported platform", RuntimeWarning) +# +# Project Metadata +# + +__version__ = '0.13.8' +__author__ = 'Joel Bender' +__email__ = 'joel@carrickbender.com' + # # Communications Core Modules # diff --git a/py34/bacpypes/__init__.py b/py34/bacpypes/__init__.py index a81c5971..bd570fbd 100755 --- a/py34/bacpypes/__init__.py +++ b/py34/bacpypes/__init__.py @@ -14,6 +14,14 @@ if _sys.platform not in _supported_platforms: _warnings.warn("unsupported platform", RuntimeWarning) +# +# Project Metadata +# + +__version__ = '0.13.8' +__author__ = 'Joel Bender' +__email__ = 'joel@carrickbender.com' + # # Communications Core Modules # diff --git a/setup.py b/setup.py index 8e88d042..30ea6deb 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,7 @@ import os import sys +import re try: from setuptools import setup @@ -15,6 +16,10 @@ if not os.path.exists(source_folder): raise EnvironmentError("unsupported version of Python, looking for " + repr(source_folder)) +# load in the project metadata +init_py = open(os.path.join(source_folder, 'bacpypes', '__init__.py')).read() +metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_py)) + requirements = [ # no external requirements ] @@ -25,11 +30,11 @@ setup( name="bacpypes", - version="0.13.8", - description="Testing multiple versions of python", - long_description="This is a long line of text", - author="Joel Bender", - author_email="joel@carrickbender.com", + version=metadata['version'], + description="BACnet Communications Library", + long_description="BACpypes provides a BACnet application layer and network layer written in Python for daemons, scripting, and graphical interfaces.", + author=metadata['author'], + author_email=metadata['email'], url="https://github.com/JoelBender/bacpypes", packages=[ 'bacpypes',