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)