Skip to content

Commit

Permalink
Merge pull request #1583 from p-l-/fix-elastic-tmp
Browse files Browse the repository at this point in the history
DB/elastic: lock elasticsearch < 8.9.0
  • Loading branch information
p-l- committed Sep 20, 2023
2 parents 5a2e645 + 7d98e34 commit 5ab8fcf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions ivre/tools/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ def get_version(module: str) -> Optional[str]:
return None
for attr in ["__version__", "VERSION", "version"]:
try:
return str(getattr(mod, attr))
data = getattr(mod, attr)
except AttributeError:
pass
continue
if isinstance(data, tuple):
return ".".join(str(value) for value in data)
return str(data)
return "[unknown version]"


Expand Down Expand Up @@ -95,6 +98,8 @@ def main() -> None:
"pymongo",
"sqlalchemy",
"tinydb",
"elasticsearch",
"elasticsearch_dsl",
]:
version = get_version(module)
if version is None:
Expand Down
2 changes: 1 addition & 1 deletion requirements-all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ bottle
codespell
cryptography
docutils!=0.18
elasticsearch
elasticsearch<8
elasticsearch-dsl
flake8
mypy
Expand Down
2 changes: 1 addition & 1 deletion requirements-elastic.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
elasticsearch
elasticsearch<8
elasticsearch-dsl
cryptography
pyOpenSSL>=16.1.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _write_pkg_file(self, file):
"MongoDB mongo+srv URIs": ["pymongo[srv]"],
"TinyDB (experimental)": ["tinydb"],
"PostgreSQL (experimental)": ["sqlalchemy", "psycopg2"],
"Elasticsearch (experimental)": ["elasticsearch", "elasticsearch-dsl"],
"Elasticsearch (experimental)": ["elasticsearch<8", "elasticsearch-dsl"],
"GSSAPI authentication for MongoDB": ["python-krbV"],
"GSSAPI authentication for HTTP": ["pycurl"],
"Screenshots": ["PIL"],
Expand Down

0 comments on commit 5ab8fcf

Please sign in to comment.