From 8a5e1b68b7e01051aa1295cedd0b45dce5c92da6 Mon Sep 17 00:00:00 2001 From: Yoshihiro OKUMURA Date: Tue, 21 Jan 2025 18:30:22 +0900 Subject: [PATCH] follow-up fixes due to recent User API specification changes. --- .cspell.json | 6 +++++- mdrsclient/api/users.py | 4 +++- pyproject.toml | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.cspell.json b/.cspell.json index 32bec29..27d7f98 100644 --- a/.cspell.json +++ b/.cspell.json @@ -16,7 +16,11 @@ "mdrsclient", "neurodata", "Neuroinformatics", + "orcid", "RIKEN" ], - "ignorePaths": [".env", "__pycache__"] + "ignorePaths": [ + ".env", + "__pycache__" + ] } diff --git a/mdrsclient/api/users.py b/mdrsclient/api/users.py index 0d5653f..3958e78 100644 --- a/mdrsclient/api/users.py +++ b/mdrsclient/api/users.py @@ -20,8 +20,10 @@ class UsersCurrentResponseLaboratory: class UsersApiCurrentResponse: id: int username: str - full_name: str + first_name: str + last_name: str email: str + orcid_id: str laboratories: list[UsersCurrentResponseLaboratory] is_staff: bool is_active: bool diff --git a/pyproject.toml b/pyproject.toml index 34b4838..9b0dc9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mdrs-client-python" -version = "1.3.10" +version = "1.3.11" description = "The mdrs-client-python is python library and a command-line client for up- and downloading files to and from MDRS based repository." authors = ["Yoshihiro OKUMURA "] license = "MIT" @@ -26,8 +26,8 @@ python = "^3.10" requests = "^2.32.3" requests-toolbelt = "^1.0.0" python-dotenv = "^1.0.1" -pydantic = "^2.10.4" -pydantic-settings = "^2.7.0" +pydantic = "^2.10.5" +pydantic-settings = "^2.7.1" PyJWT = "^2.10.1" validators = "^0.34.0" @@ -36,7 +36,7 @@ black = "^24.10.0" flake8 = "^7.1.1" Flake8-pyproject = "^1.2.3" isort = "^5.13.2" -pyright = "^1.1.386" +pyright = "^1.1.391" [tool.poetry.scripts] mdrs = 'mdrsclient.__main__:main'