Commits

Jeffrey Goettsch  committed a138955

Moved version number into pushnotify/__init__.py where it belongs.

  • Participants
  • Parent commits 20ffc89

Comments (0)

Files changed (2)

File pushnotify/__init__.py

 import pushover
 
 
+__version__ = '0.5p'
+
 logger = logging.getLogger(__package__)
 
 
 import re
 from setuptools import setup
 
+from pushnotify import __version__
+
 
 def parse_requirements(file_name):
 
     return dependency_links
 
 
-version = '0.5p'
-
 with open('README.rst') as fh:
     long_description = fh.read()
 
 setup(
     name='pushnotify',
     packages=['pushnotify', 'pushnotify.tests'],
-    version=version,
+    version=__version__,
     install_requires=parse_requirements('requirements.txt'),
     dependency_links=parse_dependency_links('requirements.txt'),
 
     description=('A package for sending push notifications to Android and '
                  'iOS devices.'),
     download_url=('https://bitbucket.org/jgoettsch/py-pushnotify/get/'
-                  '{0}.tar.gz').format(version),
+                  '{0}.tar.gz').format(__version__),
     long_description=long_description,
     url='https://bitbucket.org/jgoettsch/py-pushnotify/',)