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 20198ad commit b2cf1d5Copy full SHA for b2cf1d5
setup.py
@@ -16,12 +16,14 @@
16
v = fp.read()
17
18
if version and not v:
19
- version = i if (i := input(f'are you sure to use version {version}>> ')) else version
+ i = input(f'are you sure to use version {version}>> ')
20
+ version = i if i else version
21
with open('version.txt', 'w') as fp:
22
fp.write(i)
23
24
if not (version or v):
- if not (version := input('please set an version>> ')):
25
+ version = input('please set an version>> ')
26
+ if not version:
27
raise RuntimeError('version is not set')
28
29
if version.endswith(('a', 'b', 'rc')):
0 commit comments