Skip to content

Commit

Permalink
Merge pull request #144 from Ensembl/update_dependencies
Browse files Browse the repository at this point in the history
Upgrade `ensembl-metadata-api` and other python dependencies
  • Loading branch information
bilalebi authored Apr 24, 2024
2 parents f342fbc + b9f9002 commit 151e84a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions common/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ def get_database_conn(self, grpc_model, uuid):
)

if grpc_response:
logger.debug("[get_database_conn] grpc_response: %s", grpc_response)
# replacing '.' with '_' to avoid
# "pymongo.errors.InvalidName: database names cannot contain the character '.'" error ¯\_(ツ)_/¯
release_version = str(grpc_response.release_version).replace(".", "_")
logger.debug("[get_database_conn] release_version: %s", release_version)
chosen_db = "release_" + release_version

logger.debug("[get_database_conn] Connected to '%s' MongoDB", chosen_db)
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-r requirements.txt
pytest==7.4.4
pytest==8.0.2
pytest-asyncio==0.18.3
snapshottest==0.6.0
pylint==2.14.3
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ aiodataloader==0.2.1
ariadne==0.19.1
python-dotenv==0.19.2
uvicorn==0.18.1
ensembl-metadata-api@git+https://github.com/Ensembl/ensembl-metadata-api.git@2.0.0.dev2
grpcio==1.60.0
grpcio-tools==1.60.0
ensembl-metadata-api@git+https://github.com/Ensembl/ensembl-metadata-api.git@2.1.0a3
grpcio==1.62.0
grpcio-tools==1.62.0

0 comments on commit 151e84a

Please sign in to comment.