Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
Print version during runtime
Browse files Browse the repository at this point in the history
Version is specified in ulozto_downloader package.
  • Loading branch information
setnicka committed Nov 17, 2020
1 parent 7d63317 commit d6ae9de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
from distutils.core import setup
import setuptools # noqa

from ulozto_downloader import __version__

with open("README.md", "r") as fh:
long_description = fh.read()

setup(
name='ulozto-downloader',
version='1.6',
version=__version__,
license='MIT',
description='Uloz.to quick multiple sessions downloader.',
long_description=long_description,
Expand Down
3 changes: 2 additions & 1 deletion ulozto-downloader
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import argparse
import sys
import signal

from ulozto_downloader import downloader, captcha
from ulozto_downloader import downloader, captcha, __version__


def main():
Expand All @@ -20,6 +20,7 @@ def main():
parser.add_argument('--output', metavar='DIRECTORY', type=str, default="./", help='Target directory')
parser.add_argument('--auto-captcha', default=False, action="store_true",
help='Try to solve captchas automatically using TensorFlow')
parser.add_argument('--version', action='version', version=__version__)

args = parser.parse_args()

Expand Down
1 change: 1 addition & 0 deletions ulozto_downloader/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.6.1"

0 comments on commit d6ae9de

Please sign in to comment.