@@ -42,7 +42,7 @@ $ACTIVITIES = [
42
42
'test_tarball36' ,
43
43
'test_tarball37' ,
44
44
'print_authors' ,
45
- 'md5 ' ,
45
+ 'sha256 ' ,
46
46
# 'tag',
47
47
]
48
48
@@ -201,17 +201,17 @@ Thanks to everyone who contributed to this release!
201
201
print ()
202
202
203
203
@activity (deps = {'source_tarball' , 'build_docs' })
204
- def md5 ():
204
+ def sha256 ():
205
205
"""
206
- Print the md5 sums of the release files
206
+ Print the sha256 sums of the release files
207
207
"""
208
- _md5 (print_ = True )
208
+ _sha256 (print_ = True )
209
209
210
- def _md5 (print_ = True , local = False ):
210
+ def _sha256 (print_ = True , local = False ):
211
211
if local :
212
- out = $(md5sum @(release_files ()))
212
+ out = $(shasum - a 256 @(release_files ()))
213
213
else :
214
- out = $(md5sum / root / release / * )
214
+ out = $(shasum - a 256 / root / release / * )
215
215
# Remove the release/ part for printing. Useful for copy-pasting into the
216
216
# release notes.
217
217
out = [i .split () for i in out .strip ().split ('\n ' )]
@@ -220,7 +220,7 @@ def _md5(print_=True, local=False):
220
220
print (out )
221
221
return out
222
222
223
- @activity (deps = {'mailmap_update' , 'md5 ' , 'print_authors' , 'source_tarball' , 'build_docs' , 'compare_tar_against_git' , 'test_tarball27' , 'test_tarball34' , 'test_tarball35' , 'test_tarball36' , 'test_sympy' })
223
+ @activity (deps = {'mailmap_update' , 'sha256 ' , 'print_authors' , 'source_tarball' , 'build_docs' , 'compare_tar_against_git' , 'test_tarball27' , 'test_tarball34' , 'test_tarball35' , 'test_tarball36' , 'test_sympy' })
224
224
def release ():
225
225
pass
226
226
@@ -541,7 +541,7 @@ def _GitHub_release(username=None, user='sympy', token=None,
541
541
542
542
print (green ("Done" ))
543
543
544
- # TODO: download the files and check that they have the right md5 sum
544
+ # TODO: download the files and check that they have the right sha256 sum
545
545
546
546
def _size (print_ = True ):
547
547
"""
@@ -565,8 +565,8 @@ def table():
565
565
566
566
tarball_formatter_dict ['version' ] = shortversion
567
567
568
- md5s = [i .split ('\t ' ) for i in _md5 (print_ = False , local = True ).split ('\n ' )]
569
- md5s_dict = {name : md5 for md5 , name in md5s }
568
+ sha256s = [i .split ('\t ' ) for i in _sha256 (print_ = False , local = True ).split ('\n ' )]
569
+ sha256s_dict = {name : sha256 for sha256 , name in sha256s }
570
570
571
571
sizes = [i .split ('\t ' ) for i in _size (print_ = False ).split ('\n ' )]
572
572
sizes_dict = {name : size for size , name in sizes }
@@ -589,7 +589,7 @@ def table():
589
589
590
590
with tag ('table' ):
591
591
with tag ('tr' ):
592
- for headname in ["Filename" , "Description" , "size" , "md5 " ]:
592
+ for headname in ["Filename" , "Description" , "size" , "sha256 " ]:
593
593
with tag ("th" ):
594
594
table .append (headname )
595
595
@@ -605,7 +605,7 @@ def table():
605
605
with tag ('td' ):
606
606
table .append (sizes_dict [name ])
607
607
with tag ('td' ):
608
- table .append (md5s_dict [name ])
608
+ table .append (sha256s_dict [name ])
609
609
610
610
out = ' ' .join (table )
611
611
return out
0 commit comments