From aabe9eb512c9e5d5454e2f4dcf9e4e5bfd86865b Mon Sep 17 00:00:00 2001 From: "David D. Riddle" Date: Wed, 6 May 2015 09:29:35 -0500 Subject: [PATCH] Fix Issue #6 -- added __version__ string Added __version__ string that is PEP 396 compliant. --- linecache2/__init__.py | 2 ++ setup.cfg | 1 - setup.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/linecache2/__init__.py b/linecache2/__init__.py index 3b93b01..ef9b6c2 100644 --- a/linecache2/__init__.py +++ b/linecache2/__init__.py @@ -13,6 +13,8 @@ __all__ = ["getline", "clearcache", "checkcache"] +__version__ = '1.0.0' + def getline(filename, lineno, module_globals=None): lines = getlines(filename, module_globals) if 1 <= lineno <= len(lines): diff --git a/setup.cfg b/setup.cfg index b73611f..9b67fc0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,5 @@ [metadata] name = linecache2 -version = 1.0.0 summary = Backports of the linecache module description-file = README.rst diff --git a/setup.py b/setup.py index 4ccd4d2..97b4795 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,8 @@ import setuptools +import linecache2 setuptools.setup( + version=linecache2.__version__, setup_requires=['pbr'], pbr=True)