Skip to content

Commit 71d7fe3

Browse files
CzarekCzarek
authored andcommitted
Updated the "make_installer.py" and "create-setup.py" scripts,
it is now allowed to pass two kinds of version strings "v56" or "0.56".
1 parent 33e8e53 commit 71d7fe3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

cefpython/cef1/linux/installer/create-setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def main():
2323
parser.add_argument("-v", "--version", help="cefpython version",
2424
required=True)
2525
args = parser.parse_args()
26-
assert re.search(r"^v\d+$", args.version), "Invalid version string"
26+
assert re.search(r"^(v\d+)|(\d+\.\d+)$", args.version), (
27+
"Invalid version string")
2728

2829
vars = {}
2930
vars["APP_VERSION"] = args.version

cefpython/cef1/windows/installer/make_installer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def main():
1616
parser.add_argument("-v", "--version", help="cefpython version",
1717
required=True)
1818
args = parser.parse_args()
19-
assert re.search(r"^v\d+$", args.version), "Invalid version string"
19+
assert re.search(r"^(v\d+)|(\d+\.\d+)$", args.version), (
20+
"Invalid version string")
2021

2122
vars = {}
2223
vars["PACKAGE_NAME"] = "cefpython1"

0 commit comments

Comments
 (0)