Declare public API in __init__.py and add __main__.py
This commit is contained in:
parent
d9b369864d
commit
f3c25fd27a
5 changed files with 21 additions and 2 deletions
2
setup.py
2
setup.py
|
|
@ -33,7 +33,7 @@ Authors:
|
|||
- Tobias Oberstein (maintainer)
|
||||
"""
|
||||
|
||||
VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "__init__.py")
|
||||
VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "version.py")
|
||||
verstrline = open(VERSIONFILE, "rt").read()
|
||||
VSRE = r"^__version__ = u['\"]([^'\"]*)['\"]"
|
||||
mo = re.search(VSRE, verstrline, re.M)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue