From 483ba1299dc79384d1af12a9ee28c4952edcfc19 Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 12 Jan 2020 02:42:19 +0100 Subject: [PATCH] FIX deps + multiple file publish --- requirements.txt | 7 ------- rscli/cli.py | 2 +- setup.py | 10 ++++++++++ 3 files changed, 11 insertions(+), 8 deletions(-) delete mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 8914523..0000000 --- a/requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -ansicolors==1.1.8 -certifi==2019.11.28 -chardet==3.0.4 -idna==2.8 -pkg-resources==0.0.0 -requests==2.22.0 -urllib3==1.25.7 diff --git a/rscli/cli.py b/rscli/cli.py index 57c43ff..efa9bcf 100644 --- a/rscli/cli.py +++ b/rscli/cli.py @@ -224,7 +224,7 @@ def get_parser(): files = p_sub.add_parser("file") files_sub = files.add_subparsers() files_list = files_sub.add_parser("publish") - files_list.add_argument("--fname", nargs="+", required=True, dest="fnames") + files_list.add_argument("fnames", nargs="+", metavar='fname' ) files_list.set_defaults(mainfunc=main_file_publish) # TODO: channel rss -> read and convert to rss diff --git a/setup.py b/setup.py index 1e15380..7a45b1a 100644 --- a/setup.py +++ b/setup.py @@ -9,6 +9,16 @@ setup(name='rscli', license='AGPL3', packages=['rscli'], + install_requires=[ + 'ansicolors==1.1.8', + 'certifi==2019.11.28', + 'chardet==3.0.4', + 'idna==2.8', + 'pkg-resources==0.0.0', + 'requests==2.22.0', + 'urllib3==1.25.7', + 'Fsdb==1.2.2', + ], entry_points = { 'console_scripts': ['rscli=rscli.cli:main'], },