We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f938646 commit eb410bfCopy full SHA for eb410bf
cve_bin_tool/egg_updater.py
@@ -1,12 +1,19 @@
1
# Copyright (C) 2021 Intel Corporation
2
# SPDX-License-Identifier: GPL-3.0-or-later
3
4
+import ast
5
import os
6
import sys
7
from io import StringIO
8
9
from setuptools.dist import Distribution
10
11
+with open(os.path.join("cve_bin_tool", "version.py")) as f:
12
+ for line in f:
13
+ if line.startswith("VERSION"):
14
+ VERSION = ast.literal_eval(line.strip().split("=")[-1].strip())
15
+ break
16
+
17
18
def IS_DEVELOP() -> bool:
19
return any(
@@ -35,7 +42,7 @@ def update_egg() -> None:
35
42
script_name="setup.py",
36
43
script_args=["egg_info"],
37
44
name="cve-bin-tool",
38
- version="3.0",
45
+ version=VERSION,
39
46
entry_points={
40
47
"console_scripts": [
41
48
"cve-bin-tool = cve_bin_tool.cli:main",
0 commit comments