@@ -96,21 +96,21 @@ def release(
96
96
)
97
97
tag_content = _render_log ()
98
98
if dry_run :
99
- ctx .run ("towncrier --draft > CHANGELOG.draft.rst " )
99
+ ctx .run ("towncrier --draft > CHANGELOG.draft.md " )
100
100
log ("would remove: news/*" )
101
- log ("would remove: CHANGELOG.draft.rst " )
101
+ log ("would remove: CHANGELOG.draft.md " )
102
102
log ("would update: pipenv/pipenv.1" )
103
103
log (f'Would commit with message: "Release v{ version } "' )
104
104
else :
105
105
if pre :
106
106
log ("generating towncrier draft..." )
107
- ctx .run ("towncrier --draft > CHANGELOG.draft.rst " )
107
+ ctx .run ("towncrier --draft > CHANGELOG.draft.md " )
108
108
ctx .run (f"git add { get_version_file (ctx ).as_posix ()} " )
109
109
else :
110
110
ctx .run ("towncrier" )
111
- ctx .run (f"git add CHANGELOG.rst news/ { get_version_file (ctx ).as_posix ()} " )
111
+ ctx .run (f"git add CHANGELOG.md news/ { get_version_file (ctx ).as_posix ()} " )
112
112
log ("removing changelog draft if present" )
113
- draft_changelog = pathlib .Path ("CHANGELOG.draft.rst " )
113
+ draft_changelog = pathlib .Path ("CHANGELOG.draft.md " )
114
114
if draft_changelog .exists ():
115
115
draft_changelog .unlink ()
116
116
log ("generating man files..." )
@@ -188,7 +188,7 @@ def upload_dists(ctx, repo="pypi"):
188
188
def generate_markdown (ctx , source_rstfile = None ):
189
189
log ("Generating markdown from changelog..." )
190
190
if source_rstfile is None :
191
- source_rstfile = "CHANGELOG.rst "
191
+ source_rstfile = "CHANGELOG.md "
192
192
source_file = pathlib .Path (source_rstfile )
193
193
dest_file = source_file .with_suffix (".md" )
194
194
ctx .run (
@@ -223,13 +223,13 @@ def generate_changelog(ctx, commit=False, draft=False):
223
223
if draft :
224
224
commit = False
225
225
log ("Writing draft to file..." )
226
- ctx .run ("towncrier --draft > CHANGELOG.draft.rst " )
226
+ ctx .run ("towncrier --draft > CHANGELOG.draft.md " )
227
227
else :
228
228
ctx .run ("towncrier" )
229
229
if commit :
230
230
log ("Committing..." )
231
- ctx .run ("git add CHANGELOG.rst " )
232
- ctx .run ("git rm CHANGELOG.draft.rst " )
231
+ ctx .run ("git add CHANGELOG.md " )
232
+ ctx .run ("git rm CHANGELOG.draft.md " )
233
233
ctx .run ('git commit -m "Update changelog."' )
234
234
235
235
0 commit comments