Skip to content

Commit ed30845

Browse files
committed
Update gitignore and release task
Signed-off-by: Dan Ryan <[email protected]>
1 parent 3bbdb74 commit ed30845

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,4 @@ snap/
167167
prime/
168168
stage/
169169
pip-wheel-metadata/
170+
.vim/

tasks/release.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def release(ctx, manual=False, local=False, dry_run=False, pre=False, tag=None,
114114
"git add CHANGELOG.rst news/ {0}".format(get_version_file(ctx).as_posix())
115115
)
116116
log("removing changelog draft if present")
117-
ctx.run("git rm CHANGELOG.draft.rst")
117+
draft_changelog = pathlib.Path("CHANGELOG.draft.rst")
118+
if draft_changelog.exists():
119+
draft_changelog.unlink()
118120
log("generating man files...")
119121
generate_manual(ctx)
120122
ctx.run("git add pipenv/pipenv.1")

0 commit comments

Comments
 (0)