Skip to content

Commit

Permalink
move some project metadata - issue #70
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelBender committed May 1, 2016
1 parent cd2246c commit d5c08c8
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
8 changes: 8 additions & 0 deletions py25/bacpypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = '[email protected]'

#
# Communications Core Modules
#
Expand Down
8 changes: 8 additions & 0 deletions py27/bacpypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = '[email protected]'

#
# Communications Core Modules
#
Expand Down
8 changes: 8 additions & 0 deletions py34/bacpypes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = '[email protected]'

#
# Communications Core Modules
#
Expand Down
15 changes: 10 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import os
import sys
import re

try:
from setuptools import setup
Expand All @@ -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
]
Expand All @@ -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="[email protected]",
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',
Expand Down

0 comments on commit d5c08c8

Please sign in to comment.