From ee82b4b15401c27c86d839b810baa94b4a72ae60 Mon Sep 17 00:00:00 2001 From: Nikolaus Korfhage Date: Wed, 25 Oct 2023 14:58:20 +0200 Subject: [PATCH] fixed key error in tests, typo metadata for package --- setup.cfg | 14 +++++++------- tests/helpers.py | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/setup.cfg b/setup.cfg index 5c60a58..af08ad2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,7 +1,7 @@ [metadata] name = elastichash -version = 0.1.2 -author = Nikolaus Korfage +version = 0.1.3 +author = Nikolaus Korfhage author_email = nko+py@posteo.ru description = ElasticHash enables efficient similarity search for binary hash codes using Elasticsearch long_description = file: README.md @@ -23,11 +23,11 @@ packages = find: python_requires = >=3.7 install_requires = - elasticsearch>=8.10.1 - numpy>=1.24.3 - networkx>=3.1 - bitstring>=4.1.1 - urllib3>=1.26.16 + elasticsearch>=8.10.1 + numpy>=1.24.3 + networkx>=3.1 + bitstring>=4.1.1 + urllib3>=1.26.16 [options.packages.find] where = src \ No newline at end of file diff --git a/tests/helpers.py b/tests/helpers.py index d881b34..50f8039 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -5,12 +5,12 @@ def get_es_url_from_env(): - if environ["ES_HTTPS"] is not None and environ["ES_HTTPS"]: + if "ES_HTTPS" in environ and environ["ES_HTTPS"]: protocol = "https" else: protocol = "http" return "%s://%s:%s@%s:%s" % ( - protocol, environ["ES_USER"], environ["ES_PASS"], environ["ES_HOST"], environ["ES_PORT"]) + protocol, environ["ES_USER"], environ["ES_PASS"], environ["ES_HOST"], environ["ES_PORT"]) def search_id(es: Elasticsearch, eh: ElasticHash, query: Dict = {'match_all': {}}):