Skip to content

Commit

Permalink
Fix Issue testing-cabal#6 -- added __version__ string
Browse files Browse the repository at this point in the history
Added __version__ string that is PEP 396 compliant.
  • Loading branch information
ddriddle committed May 6, 2015
1 parent bf7c1f5 commit aabe9eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions linecache2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[metadata]
name = linecache2
version = 1.0.0
summary = Backports of the linecache module
description-file =
README.rst
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import setuptools
import linecache2

setuptools.setup(
version=linecache2.__version__,
setup_requires=['pbr'],
pbr=True)

Expand Down

0 comments on commit aabe9eb

Please sign in to comment.