Skip to content

Commit b2cf1d5

Browse files
authored
fixed Version incompatibility
It is now possible to install the library with a Python version below 3.8.
1 parent 20198ad commit b2cf1d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: setup.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
v = fp.read()
1717

1818
if version and not v:
19-
version = i if (i := input(f'are you sure to use version {version}>> ')) else version
19+
i = input(f'are you sure to use version {version}>> ')
20+
version = i if i else version
2021
with open('version.txt', 'w') as fp:
2122
fp.write(i)
2223

2324
if not (version or v):
24-
if not (version := input('please set an version>> ')):
25+
version = input('please set an version>> ')
26+
if not version:
2527
raise RuntimeError('version is not set')
2628

2729
if version.endswith(('a', 'b', 'rc')):

0 commit comments

Comments
 (0)