Move version into __init__.py

This commit is contained in:
Ram Rachum 2019-04-24 19:05:33 +03:00
parent 64bc472b7c
commit 5c31dfc28c
2 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,13 @@
# Copyright 2019 Ram Rachum and collaborators.
# This program is distributed under the MIT license.
from .pysnooper import snoop
from .pysnooper import snoop
import collections
__VersionInfo = collections.namedtuple('VersionInfo',
('major', 'minor', 'micro'))
__version_info__ = __VersionInfo(0, 0, 16)
__version__ = '.'.join(map(str, __version_info__))
del collections, __VersionInfo # Avoid polluting the namespace

View File

@ -6,6 +6,8 @@ This program is distributed under the MIT license.
"""
import setuptools
import pysnooper
def read_file(filename):
"""Return the contents of a file"""
@ -15,7 +17,7 @@ def read_file(filename):
setuptools.setup(
name='PySnooper',
version='0.0.15',
version=pysnooper.__version__,
author='Ram Rachum',
author_email='ram@rachum.com',
description="A poor man's debugger for Python.",