Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #1017

Merged
merged 10 commits into from
Dec 8, 2021
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/ambv/black
rev: 21.11b1
rev: 21.12b0
hooks:
- id: black
name: Blacken
Expand Down
8 changes: 7 additions & 1 deletion optimade/server/entry_collections/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@


if CONFIG.database_backend.value == "mongodb":
from pymongo import MongoClient
from pymongo import MongoClient, version_tuple

if version_tuple[0] < 4:
LOGGER.warning(
"Support for pymongo<=3 (and thus MongoDB v3) is deprecated and will be "
"removed in the next minor release."
)

LOGGER.info("Using: Real MongoDB (pymongo)")

Expand Down
2 changes: 1 addition & 1 deletion requirements-client.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiida-core==1.6.5
ase==3.22.0
ase==3.22.1
jarvis-tools==2021.10.3
numpy==1.21.4
pymatgen==2021.3.9
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
codecov==2.1.12
invoke==1.6.0
jsondiff==1.3.0
pre-commit==2.15.0
pylint==2.12.1
pre-commit==2.16.0
pylint==2.12.2
pytest==6.2.5
pytest-cov==3.0.0
2 changes: 1 addition & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mike==1.1.2
mkdocs==1.2.3
mkdocs-awesome-pages-plugin==2.6.1
mkdocs-material==8.0.1
mkdocs-material==8.0.4
mkdocstrings==0.16.2
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Jinja2==3.0.3
lark-parser==0.12.0
mongomock==3.23.0
pydantic==1.8.2
pymongo==3.12.1
pymongo==4.0
pyyaml==5.4
requests==2.26.0
typing-extensions==4.0.0;python_version<'3.8'
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Dependencies
# Server minded
elastic_deps = ["elasticsearch-dsl~=6.4,<7.0"]
mongo_deps = ["pymongo~=3.12", "mongomock~=3.23"]
mongo_deps = ["pymongo>=3.12.1,<5", "mongomock~=3.23"]
server_deps = [
"uvicorn~=0.15",
"Jinja2>=2.10,<4.0",
Expand Down Expand Up @@ -49,7 +49,7 @@
"jsondiff~=1.3",
] + server_deps
dev_deps = (
["pylint~=2.12", "pre-commit~=2.15", "invoke~=1.6"]
["pylint~=2.12", "pre-commit~=2.16", "invoke~=1.6"]
+ docs_deps
+ testing_deps
+ client_deps
Expand Down