Skip to content

Commit a3ca655

Browse files
authored
Merge pull request #512 from redhat-performance/development
Development->Master
2 parents ad74996 + c606d4b commit a3ca655

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

setup.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
import setuptools
2+
import re
3+
import os
4+
5+
here = os.path.abspath(os.path.dirname(__file__))
6+
version_file = os.path.join(here, "src", "badfish", "__init__.py")
7+
8+
with open(version_file, "r", encoding="utf-8") as f:
9+
content = f.read()
10+
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", content, re.M)
11+
if match:
12+
current_version = match.group(1)
13+
else:
14+
raise RuntimeError("Unable to find version string in src/badfish/__init__.py")
215

316
setuptools.setup(
4-
version="1.0.7"
17+
version=current_version
518
)

src/badfish/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.1.1"
1+
__version__ = "1.0.7"

0 commit comments

Comments
 (0)