Skip to content

Commit 51fcdf5

Browse files
fonnesbecktwiecki
authored andcommitted
Removed get_version from setup.py
1 parent 8f55fc0 commit 51fcdf5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

setup.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,6 @@
5353

5454
test_reqs = ["pytest", "pytest-cov"]
5555

56-
57-
def get_version():
58-
version_file = join("pymc", "__init__.py")
59-
lines = open(version_file).readlines()
60-
version_regex = r"^__version__ = ['\"]([^'\"]*)['\"]"
61-
for line in lines:
62-
mo = re.search(version_regex, line, re.M)
63-
if mo:
64-
version = mo.group(1)
65-
66-
return version
67-
68-
raise RuntimeError(f"Unable to find version in {version_file}.")
69-
70-
7156
if __name__ == "__main__":
7257
setup(
7358
name="pymc",

0 commit comments

Comments
 (0)