mirror of https://github.com/cool-RR/PySnooper.git
Move version into __init__.py
This commit is contained in:
parent
64bc472b7c
commit
5c31dfc28c
|
@ -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
|
||||
|
|
4
setup.py
4
setup.py
|
@ -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.",
|
||||
|
|
Loading…
Reference in New Issue