Commit 5c530ad 1 parent 9b768c6 commit 5c530ad Copy full SHA for 5c530ad
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
5
5
def bump_version ():
6
- with open ("setup.py " ) as f :
6
+ with open ("pyproject.toml " ) as f :
7
7
s = f .read ()
8
- m = re .search (r'version= "(.*)\.(.*)\.(.*)",' , s )
8
+ m = re .search (r'version = "(.*)\.(.*)\.(.*)",' , s )
9
9
v1 , v2 , v3 = m .groups ()
10
10
oldv = "{0}.{1}.{2}" .format (v1 , v2 , v3 )
11
11
newv = "{0}.{1}.{2}" .format (v1 , v2 , str (int (v3 ) + 1 ))
@@ -14,7 +14,7 @@ def bump_version():
14
14
if ans :
15
15
newv = ans
16
16
s = s .replace (oldv , newv )
17
- with open ("setup.py " , "w" ) as f :
17
+ with open ("pyproject.toml " , "w" ) as f :
18
18
f .write (s )
19
19
return newv
20
20
@@ -33,8 +33,8 @@ def release():
33
33
ans = input ("upload to pip?(Y/n)" )
34
34
if ans in ("" , "y" , "yes" ):
35
35
os .system ("rm -rf dist/*" )
36
- os .system ("python3 setup.py sdist bdist_wheel " )
37
- os .system ("twine upload dist/* " )
36
+ os .system ("uv build " )
37
+ os .system ("uv publish " )
38
38
os .system ("git log -s --format=oneline" )
39
39
40
40
You can’t perform that action at this time.
0 commit comments