File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,6 @@ def __str__(self) -> str:
34
34
patch = property (lambda self : self [2 ])
35
35
36
36
37
- vernum = Version (1 , 2 , 0 )
37
+ vernum = Version (1 , 2 , 1 )
38
38
ver = str (vernum )
39
39
rev = ''
Original file line number Diff line number Diff line change 10
10
11
11
assert len (sys .argv ) == 2 , 'Argument is required, usage: build.py pip/twine/gource'
12
12
mode = sys .argv [1 ].strip ()
13
- python = 'python3' if not sys .platform == 'win32' else 'py -3.8'
14
13
15
14
if mode == 'pip' :
16
15
if os .path .isdir ('dist/' ):
21
20
for k in os .listdir ('build' ):
22
21
if 'bdist.' in k or k == 'lib' :
23
22
os .system (f'rm -rf build/{ k } ' )
24
- os .system (f'{ python } setup.py sdist bdist_wheel' )
23
+ os .system (f'python setup.py sdist bdist_wheel' )
25
24
26
25
elif mode == 'twine' :
27
26
if os .path .isdir ('dist/' ):
28
- os .system (f'{ python } -m twine upload dist/*' )
27
+ os .system (f'python -m twine upload dist/*' )
29
28
else :
30
29
raise FileNotFoundError ('Not distribution been found, execute build.py pip' )
31
30
You can’t perform that action at this time.
0 commit comments