@@ -34,11 +34,6 @@ def run_tox():
34
34
run_no_venv ('tox -p all' , shell = True )
35
35
36
36
37
- def build ():
38
- run ('rm -rf dist/' , shell = True )
39
- run ('python -m build' , shell = True )
40
-
41
-
42
37
def path_sub (pattern , repl , path ):
43
38
with open (path ) as f :
44
39
text = f .read ()
@@ -112,10 +107,6 @@ def check_unpushed():
112
107
abort ("unpushed changes\n \n {}\n " , p .stdout .strip ('\n ' ))
113
108
114
109
115
- def upload_to_pypi ():
116
- run ('twine upload dist/*' , shell = True )
117
-
118
-
119
110
def add_and_push_tags (tags ):
120
111
for tag in tags :
121
112
run (['git' , 'tag' , '--force' , tag ])
@@ -150,10 +141,6 @@ def main(version, new_version, date, tox, changelog):
150
141
151
142
confirm ("Wait for GitHub Actions / Read the Docs builds to pass." )
152
143
153
- confirm ("Upload to PyPI?" )
154
- build ()
155
- upload_to_pypi ()
156
-
157
144
tags = [version ]
158
145
version_x = version .partition ('.' )[0 ] + '.x'
159
146
if new_version_is_final :
@@ -162,7 +149,15 @@ def main(version, new_version, date, tox, changelog):
162
149
confirm (f"Add and push tags ({ ', ' .join (tags )} )?" )
163
150
add_and_push_tags (tags )
164
151
165
- confirm ("Create release {} in GitHub (doesn't happen automatically)." , version )
152
+ confirm (
153
+ "Approve publish workflow to upload to PyPI.\n {}\n Done?" ,
154
+ "https://github.com/lemon24/reader/actions/workflows/publish.yaml" ,
155
+ )
156
+ confirm (
157
+ "Publish draft release {} in GitHub.\n {}\n Done?" ,
158
+ version ,
159
+ "https://github.com/lemon24/reader/releases" ,
160
+ )
166
161
167
162
new_version_full = f"{ new_version } .dev0"
168
163
update_init_version (new_version_full )
@@ -173,11 +168,6 @@ def main(version, new_version, date, tox, changelog):
173
168
confirm ("Push version {}?" , new_version_full )
174
169
push ()
175
170
176
- # TODO: I just enabled branch or tag creation/deletion for the RtD webhook in GitHub, this might not be needed next time.
177
- confirm (
178
- f"Trigger Read the Docs build for { version_x } (doesn't happen automatically)."
179
- )
180
-
181
171
182
172
if __name__ == '__main__' :
183
173
main ()
0 commit comments