Skip to content

Commit 6efa1ab

Browse files
unkcpzdependabot[bot]The AiiDA Team
authored
Update optimade[mongo] requirement from ~=0.18.0 to ~=0.19.2 (#375) (#383)
* Update optimade[mongo] requirement from ~=0.18.0 to ~=0.19.1 Updates the requirements on [optimade[mongo]](https://github.com/Materials-Consortia/optimade-python-tools) to permit the latest version. - [Release notes](https://github.com/Materials-Consortia/optimade-python-tools/releases) - [Changelog](https://github.com/Materials-Consortia/optimade-python-tools/blob/master/CHANGELOG.md) - [Commits](Materials-Consortia/optimade-python-tools@v0.18.0...v0.19.1) --- updated-dependencies: - dependency-name: optimade[mongo] dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Update AiiDA/OPTIMADE * Update pylint requirement from ~=2.14 to ~=2.15 (#376) Updates the requirements on [pylint](https://github.com/PyCQA/pylint) to permit the latest version. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](pylint-dev/pylint@v2.14.0...v2.15.0) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update uvicorn requirement from ~=0.18.2 to ~=0.18.3 (#377) Updates the requirements on [uvicorn](https://github.com/encode/uvicorn) to permit the latest version. - [Release notes](https://github.com/encode/uvicorn/releases) - [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md) - [Commits](Kludex/uvicorn@0.18.2...0.18.3) --- updated-dependencies: - dependency-name: uvicorn dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix tests and drop py3.7 Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: The AiiDA Team <[email protected]> Co-authored-by: Jusong Yu <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: The AiiDA Team <[email protected]>
1 parent 9db9780 commit 6efa1ab

File tree

9 files changed

+16
-9
lines changed

9 files changed

+16
-9
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM python:3.9
33
WORKDIR /app
44

55
# Install specific optimade and aiida-core versions
6-
ARG OPTIMADE_TOOLS_VERSION=0.18.0
6+
ARG OPTIMADE_TOOLS_VERSION=0.19.2
77
ARG AIIDA_VERSION=2.0.3
88

99
# Copy repo contents

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The compatibility matrix below assumes the user always install the latest patch
99

1010
| Latest release | Build status | Activity |
1111
|:--------------:|:------------:|:--------:|
12-
| [![AiiDA](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/aiidateam/aiida-optimade/develop/.ci/aiida-version.json)](https://github.com/aiidateam/aiida-core/)<br>[![PyPI](https://img.shields.io/pypi/v/aiida-optimade)](https://pypi.org/project/aiida-optimade/)<br>[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aiida-optimade)](https://pypi.org/project/aiida-optimade/)<br>[![OPTIMADE](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Materials-Consortia/optimade-python-tools/v0.18.0/optimade-version.json)](https://github.com/Materials-Consortia/OPTIMADE/) | [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/aiidateam/aiida-optimade/aiida-optimade)](https://github.com/aiidateam/aiida-optimade/actions/)<br>[![Codecov](https://img.shields.io/codecov/c/gh/aiidateam/aiida-optimade)](https://codecov.io/gh/aiidateam/aiida-optimade) | [![GitHub last commit](https://img.shields.io/github/last-commit/aiidateam/aiida-optimade)](https://github.com/aiidateam/aiida-optimade) |
12+
| [![AiiDA](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/aiidateam/aiida-optimade/develop/.ci/aiida-version.json)](https://github.com/aiidateam/aiida-core/)<br>[![PyPI](https://img.shields.io/pypi/v/aiida-optimade)](https://pypi.org/project/aiida-optimade/)<br>[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aiida-optimade)](https://pypi.org/project/aiida-optimade/)<br>[![OPTIMADE](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Materials-Consortia/optimade-python-tools/v0.19.2/optimade-version.json)](https://github.com/Materials-Consortia/OPTIMADE/) | [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/aiidateam/aiida-optimade/aiida-optimade)](https://github.com/aiidateam/aiida-optimade/actions/)<br>[![Codecov](https://img.shields.io/codecov/c/gh/aiidateam/aiida-optimade)](https://codecov.io/gh/aiidateam/aiida-optimade) | [![GitHub last commit](https://img.shields.io/github/last-commit/aiidateam/aiida-optimade)](https://github.com/aiidateam/aiida-optimade) |
1313

1414
This is a RESTful API server created with [FastAPI](https://fastapi.tiangolo.com/) that exposes an AiiDA database according to the [OPTIMADE specification](https://github.com/Materials-Consortia/OPTIMADE/blob/develop/optimade.rst).
1515

aiida_optimade/routers/info.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
EntryInfoResponse,
1212
)
1313
from optimade.server.routers.utils import meta_values
14+
from optimade.server.config import CONFIG
1415

1516
from aiida_optimade.models import StructureResource
1617
from aiida_optimade.utils import retrieve_queryable_properties
@@ -36,7 +37,9 @@ def get_info(request: Request):
3637
base_url = get_base_url(parse_result)
3738

3839
return InfoResponse(
39-
meta=meta_values(str(request.url), 1, 1, more_data_available=False),
40+
meta=meta_values(
41+
str(request.url), 1, 1, more_data_available=False, schema=CONFIG.schema_url
42+
),
4043
data=BaseInfoResource(
4144
id=BaseInfoResource.schema()["properties"]["id"]["default"],
4245
type=BaseInfoResource.schema()["properties"]["type"]["default"],
@@ -89,7 +92,9 @@ def get_info_entry(request: Request, entry: str):
8992
output_fields_by_format = {"json": list(properties.keys())}
9093

9194
return EntryInfoResponse(
92-
meta=meta_values(str(request.url), 1, 1, more_data_available=False),
95+
meta=meta_values(
96+
str(request.url), 1, 1, more_data_available=False, schema=CONFIG.schema_url
97+
),
9398
data=EntryInfoResource(
9499
formats=list(output_fields_by_format.keys()),
95100
description=schema.get(

aiida_optimade/routers/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def get_entries(
9595
data_returned=data_returned,
9696
data_available=len(collection),
9797
more_data_available=more_data_available,
98+
schema=CONFIG.schema_url,
9899
),
99100
)
100101

@@ -136,6 +137,7 @@ def get_single_entry(
136137
data_returned=data_returned,
137138
data_available=len(collection),
138139
more_data_available=more_data_available,
140+
schema=CONFIG.schema_url,
139141
),
140142
)
141143

profiles/docker-compose-mongo.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
context: ..
1111
dockerfile: Dockerfile
1212
args:
13-
OPTIMADE_TOOLS_VERSION: 0.18.0
13+
OPTIMADE_TOOLS_VERSION: 0.19.2
1414
AIIDA_VERSION: 2.0.3
1515
CONFIG_FILE: aiida_optimade/config.json
1616
environment:

profiles/docker-compose-mongo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
context: ..
1111
dockerfile: Dockerfile
1212
args:
13-
OPTIMADE_TOOLS_VERSION: 0.18.0
13+
OPTIMADE_TOOLS_VERSION: 0.19.2
1414
AIIDA_VERSION: 2.0.3
1515
CONFIG_FILE: aiida_optimade/config.json
1616
environment:

profiles/docker-compose.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
context: ..
99
dockerfile: Dockerfile
1010
args:
11-
OPTIMADE_TOOLS_VERSION: 0.18.0
11+
OPTIMADE_TOOLS_VERSION: 0.19.2
1212
AIIDA_VERSION: 2.0.3
1313
CONFIG_FILE: aiida_optimade/config.json
1414
environment:

profiles/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
context: ..
99
dockerfile: Dockerfile
1010
args:
11-
OPTIMADE_TOOLS_VERSION: 0.18.0
11+
OPTIMADE_TOOLS_VERSION: 0.19.2
1212
AIIDA_VERSION: 2.0.3
1313
CONFIG_FILE: aiida_optimade/config.json
1414
environment:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
optimade[mongo]~=0.19.2
12
aiida-core~=2.0.3
2-
optimade[mongo]~=0.18.0
33
pymatgen>=2019.7.2,<=2022.1.9,!=2019.9.7
44
uvicorn~=0.18.3
55

0 commit comments

Comments
 (0)