File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -117,18 +117,22 @@ def release(ctx, notest=True):
117117 ctx .run ("pytest maml" )
118118 with open ("CHANGES.rst" ) as f :
119119 contents = f .read ()
120- toks = re .split (r"\# +" , contents )
120+ toks = re .split (r"\- +" , contents )
121121 desc = toks [1 ].strip ()
122+ toks = desc .split ("\n " )
123+ desc = "\n " .join (toks [:- 1 ]).strip ()
122124 payload = {
123125 "tag_name" : "v" + NEW_VER ,
124126 "target_commitish" : "master" ,
125127 "name" : "v" + NEW_VER ,
126128 "body" : desc ,
127129 "draft" : False ,
128- "prerelease" : False
130+ "prerelease" : False ,
129131 }
130132 response = requests .post (
131- "https://api.github.com/repos/materialsvirtuallab/maml /releases" ,
133+ "https://api.github.com/repos/materialsproject/pymatgen /releases" ,
132134 data = json .dumps (payload ),
133- headers = {"Authorization" : "token " + os .environ ["GITHUB_RELEASES_TOKEN" ]})
135+ headers = {"Authorization" : "token " + os .environ ["GITHUB_RELEASES_TOKEN" ]},
136+ )
134137 print (response .text )
138+
You can’t perform that action at this time.
0 commit comments