Skip to content

Commit

Permalink
fixed key error in tests, typo metadata for package
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-ko committed Oct 25, 2023
1 parent 21c2778 commit ee82b4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': {}}):
Expand Down

0 comments on commit ee82b4b

Please sign in to comment.