From d70c281a92d5c2a0422b1f27654e23baff4d5a9b Mon Sep 17 00:00:00 2001 From: Fabio Del Bene Date: Tue, 27 Sep 2022 23:08:30 +0200 Subject: [PATCH 1/2] updated PyYAML deps to fix installation on archlinux os --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 59a30af..e371058 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -PyYAML==5.4 +PyYAML==6.0 py-trello==0.15.0 click==7.0 prompt_toolkit==3.0.3 From 38d150320f3c8628773ebb8dc8473af498bb402e Mon Sep 17 00:00:00 2001 From: Fabio Del Bene Date: Tue, 27 Sep 2022 23:10:00 +0200 Subject: [PATCH 2/2] enable to override configuration file via environment variable --- gtd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtd.py b/gtd.py index 226bcb6..7b2e2b2 100755 --- a/gtd.py +++ b/gtd.py @@ -227,8 +227,9 @@ def tsv_option(f): @click.pass_context def cli(top_level_context, board, color, banner): '''gtd.py''' + filename= os.getenv('GTDPYRC') try: - config = Configuration.from_file() + config = Configuration.from_file(filename) except GTDException: click.echo('Could not find a valid config file for gtd.') if click.confirm('Would you like to create it interactively?'):