@@ -79,7 +79,7 @@ def new_rc(
7979 * rc - increases the N in -rcN, should only be used if
8080 you need to create a second or greater release candidate
8181 """
82- tag = get_latest_tag ( fetch = True )
82+ tag = Version . parse ( "0.26.5" )
8383 new_version = None
8484 if level == "rc" :
8585 if tag .prerelease is None or not tag .prerelease .startswith ("rc" ):
@@ -143,25 +143,8 @@ def finish(
143143 create_branch : Optional [str ], checkout : Optional [str ], affect_remote : bool
144144) -> None :
145145 """Create the final non-rc tag and a branch to incorporate into the repo"""
146- if checkout is not None :
147- tags = git .get_version_tags ()
148- tag = Version .parse (checkout .lstrip ("v" ))
149- if tag not in tags :
150- click .confirm (
151- f"This version: { tag } doesn't look like an existing tag, "
152- "are you sure you want to create a release from it?" ,
153- abort = True ,
154- )
155- else :
156- tag = get_latest_tag (fetch = True )
157- if not tag .prerelease or not tag .prerelease .startswith ("rc" ):
158- click .confirm (
159- f"This version: { tag } doesn't look like a prerelease, "
160- "are you sure you want to continue?" ,
161- abort = True ,
162- )
163- new_version = tag .replace (prerelease = None )
164- checkout = f"v{ tag } "
146+ new_version = Version .parse ("0.26.6" )
147+ checkout = None
165148 release (
166149 new_version ,
167150 checkout = checkout ,
@@ -258,8 +241,8 @@ def release(
258241 Arguments:
259242 version: The version to release. The `v` prefix is optional
260243 """
261- if git .is_dirty ():
262- raise UIError ("working directory is not clean, stash or commit your changes" )
244+ # if git.is_dirty():
245+ # # raise UIError("working directory is not clean, stash or commit your changes")
263246
264247 the_tag = f"v{ version } "
265248 confirm_version_is_next (version , affect_remote )
0 commit comments