From b5624c281ed7d04b5ac85c9aa4be84d2e9fc2c7b Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Tue, 31 Oct 2023 19:01:12 +0100 Subject: [PATCH] requirements --- requirements.txt | 38 +------------------------------------- varfish_cli/config.py | 7 ++++++- 2 files changed, 7 insertions(+), 38 deletions(-) mode change 100644 => 120000 requirements.txt diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 8d5ee51..0000000 --- a/requirements.txt +++ /dev/null @@ -1,37 +0,0 @@ -# Base requirements - -# Attrs, helpful for removing boilerplate, cattr is for serialization/deserializaton. -attrs >=21.2.0,<24.0 -cattrs >=1.7.1,<24.0 -# Easy date parsing (e.g., from API). -python-dateutil >=2.8.1,<3.0 - -# JSON Schema -jsonschema >=4.4,<4.5 - -# Easy logging. -logzero >=1.7.0,<2.0 - -# Compact, round-tripable configuration format. -toml >=0.10.2,<0.11 - -# simplejson has better encoders/decoders -simplejson >=3.17.2,<4.0 - -# HTTP requests for humans. -requests >=2.25.1,<3.0 - -# Useful progress display. -tqdm >=4.61.1,<5.0 - -# Tabular display. -tabulate >=0.8.9,<0.9 - -# Levenshtein distance. -polyleven >=0.8,<0.9 - -# JSON schema. -jsonschema >=4.4.0,<4.20 - -# Type checking -typeguard >=2.13.3,<3.0 diff --git a/requirements.txt b/requirements.txt new file mode 120000 index 0000000..2d8105f --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +requirements/base.txt \ No newline at end of file diff --git a/varfish_cli/config.py b/varfish_cli/config.py index c228f41..0a53ca5 100644 --- a/varfish_cli/config.py +++ b/varfish_cli/config.py @@ -1,7 +1,12 @@ """Common configuration code.""" import os -import tomllib + +try: + import tomllib +except ImportError: + import toml as tomllib + import typing from logzero import logger