From 56094c0de7abb3bc2bee7e07bf9e4bf3c9cbf3e7 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 15 Feb 2015 11:20:01 +0100 Subject: add requirements.txt --- imdb-lookup/README.md | 4 ++++ imdb-lookup/imdblookup.py | 9 ++------- imdb-lookup/requirements.txt | 5 +++++ 3 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 imdb-lookup/requirements.txt diff --git a/imdb-lookup/README.md b/imdb-lookup/README.md index 2512418..edfe09b 100644 --- a/imdb-lookup/README.md +++ b/imdb-lookup/README.md @@ -7,6 +7,10 @@ imdblookup.py Rename with Text gui imdbinfo.py general tools +# install + pip install -r requirements.txt + pip install --user -r requirements.txt + # TMDB: for tmdb you need a Api-Key diff --git a/imdb-lookup/imdblookup.py b/imdb-lookup/imdblookup.py index 788350c..372f4dc 100755 --- a/imdb-lookup/imdblookup.py +++ b/imdb-lookup/imdblookup.py @@ -7,13 +7,8 @@ import re import shutil from threading import Thread from functools import wraps -try: - import urwid - import tmdbsimple as tmdb -except ImportError as e: - print(u"Missing dependency: {0}".format(str(e))) - print(u"Install using system package manager or `pip install --user `") - sys.exit(1) +import urwid +import tmdbsimple as tmdb def run_async(func): @wraps(func) diff --git a/imdb-lookup/requirements.txt b/imdb-lookup/requirements.txt new file mode 100644 index 0000000..811301a --- /dev/null +++ b/imdb-lookup/requirements.txt @@ -0,0 +1,5 @@ +guessit +requests +tmdbsimple +Pillow +urwid -- cgit v1.2.1