Skip to content

Commit

Permalink
0.1.2 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr authored Jul 3, 2023
1 parent 4ae7a26 commit 592fe4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='zipline-cli',
version='0.1.1',
version='0.1.2',
description='Python 3 CLI for Zipline',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
11 changes: 6 additions & 5 deletions zipline.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ def setup(env_file: Path) -> None:
if not embed or embed.lower() not in ['n', 'o', 'no', 'noo']:
output += 'ZIPLINE_EMBED=true\n'
expire = input('Default Expire? [Blank for None]: ').strip().lower()
match = re.search(r'^(\d+)(?:ms|s|m|h|d|w|y)$', expire)
if not match:
print(f'Warning: invalid expire format: {expire} skipping. See --help')
else:
output += f'ZIPLINE_EXPIRE={expire}\n'
if expire:
match = re.search(r'^(\d+)(?:ms|s|m|h|d|w|y)$', expire)
if not match:
print(f'Warning: invalid expire format: {expire}. See --help')
else:
output += f'ZIPLINE_EXPIRE={expire}\n'
with open(env_file, 'w') as f:
f.write(output)
print(f'Setup Complete. Variables Saved to: {env_file}')
Expand Down

0 comments on commit 592fe4e

Please sign in to comment.