File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Metadata-Version: 1.1
22Name: eth-heimdall
3- Version: 1.0.3rc3
3+ Version: 1.0.3rc4
44Summary: Heimdall is an advanced and modular smart-contract toolkit which aims to make dealing with smart contracts on EVM based chains easier.
55Home-page: https://github.com/Jon-Becker/heimdall
66Author: Jonathan Becker (jon-becker)
Original file line number Diff line number Diff line change 11{
22 "build" : {
3- "version" : " 1.0.3rc3 "
3+ "version" : " 1.0.3rc4 "
44 },
55 "autoupdate" : false ,
66 "defaults" : {
Original file line number Diff line number Diff line change 1111
1212# purge old log files
1313def purgeOldLogfiles ():
14- files = os .listdir (f'{ pathlib .Path (__file__ ).parent .parent .parent .resolve ()} /logs' )
15- files .remove ('__init__.py' )
16- for file in files :
17- if int (file .split ('-' )[1 ].replace ('.log' , '' )) < int (datetime .datetime .now ().strftime ("%Y%m%d%H%M%S" )) - 100000 :
18- os .remove (f'{ pathlib .Path (__file__ ).parent .parent .parent .resolve ()} /logs/{ file } ' )
19- # if timestamp is over 1 day old
14+ try :
15+ files = os .listdir (f'{ pathlib .Path (__file__ ).parent .parent .parent .resolve ()} /logs' )
16+ files .remove ('__init__.py' )
17+ for file in files :
18+ if int (file .split ('-' )[1 ].replace ('.log' , '' )) < int (datetime .datetime .now ().strftime ("%Y%m%d%H%M%S" )) - 100000 :
19+ os .remove (f'{ pathlib .Path (__file__ ).parent .parent .parent .resolve ()} /logs/{ file } ' )
20+ # if timestamp is over 1 day old
21+ except : pass
2022
2123# log to file, removing color codes
2224def logStripColor (file , type , log ):
Original file line number Diff line number Diff line change 22from setuptools import setup
33
44setup (name = 'eth_heimdall' ,
5- version = '1.0.3rc3 ' ,
5+ version = '1.0.3rc4 ' ,
66 description = 'Heimdall is an advanced and modular smart-contract toolkit which aims to make dealing with smart contracts on EVM based chains easier.' ,
77 url = 'https://github.com/Jon-Becker/heimdall' ,
88 entry_points = {'console_scripts' : ['heimdall=heimdall.__main__:main' ]},
You can’t perform that action at this time.
0 commit comments