@@ -34,11 +34,6 @@ def run_tox():
3434 run_no_venv ('tox -p all' , shell = True )
3535
3636
37- def build ():
38- run ('rm -rf dist/' , shell = True )
39- run ('python -m build' , shell = True )
40-
41-
4237def path_sub (pattern , repl , path ):
4338 with open (path ) as f :
4439 text = f .read ()
@@ -112,10 +107,6 @@ def check_unpushed():
112107 abort ("unpushed changes\n \n {}\n " , p .stdout .strip ('\n ' ))
113108
114109
115- def upload_to_pypi ():
116- run ('twine upload dist/*' , shell = True )
117-
118-
119110def add_and_push_tags (tags ):
120111 for tag in tags :
121112 run (['git' , 'tag' , '--force' , tag ])
@@ -150,10 +141,6 @@ def main(version, new_version, date, tox, changelog):
150141
151142 confirm ("Wait for GitHub Actions / Read the Docs builds to pass." )
152143
153- confirm ("Upload to PyPI?" )
154- build ()
155- upload_to_pypi ()
156-
157144 tags = [version ]
158145 version_x = version .partition ('.' )[0 ] + '.x'
159146 if new_version_is_final :
@@ -162,7 +149,15 @@ def main(version, new_version, date, tox, changelog):
162149 confirm (f"Add and push tags ({ ', ' .join (tags )} )?" )
163150 add_and_push_tags (tags )
164151
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+ )
166161
167162 new_version_full = f"{ new_version } .dev0"
168163 update_init_version (new_version_full )
@@ -173,11 +168,6 @@ def main(version, new_version, date, tox, changelog):
173168 confirm ("Push version {}?" , new_version_full )
174169 push ()
175170
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-
181171
182172if __name__ == '__main__' :
183173 main ()
0 commit comments