Skip to content

Commit

Permalink
Version
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed May 1, 2019
1 parent 0fa4752 commit f2a1d3b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions NissePackage.py
@@ -1,6 +1,11 @@
from setuptools import find_packages

from nisse.version import get_version
import os
import re

with open(os.path.join(os.path.dirname(__file__), "nisse/version.py"), "r") as f:
# get version string from module
version = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M).group(1)


class NissePackage:
Expand Down Expand Up @@ -139,4 +144,4 @@ def classifiers(self):

@property
def version(self):
return get_version()
return version

0 comments on commit f2a1d3b

Please sign in to comment.