From cd335faf4bfcfca879daa4303c576480becd8c97 Mon Sep 17 00:00:00 2001 From: Khoroshevskyi Date: Wed, 21 Aug 2024 14:14:00 -0400 Subject: [PATCH] fixed projectAnnotationModel --- docs/changelog.md | 7 ++++++- pephubclient/__init__.py | 2 +- pephubclient/models.py | 2 +- requirements/requirements-all.txt | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 66ddebb..5237b03 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -3,9 +3,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) format. +## [0.4.4] - 2024-08-21 +### Fixed +- Project annotation model + + ## [0.4.3] - 2024-07-19 ### Updated -- Updated models for new pephub API +- Updated models for new PEPhub API ## [0.4.2] - 2024-04-16 diff --git a/pephubclient/__init__.py b/pephubclient/__init__.py index eb0dba7..f950988 100644 --- a/pephubclient/__init__.py +++ b/pephubclient/__init__.py @@ -4,7 +4,7 @@ import coloredlogs __app_name__ = "pephubclient" -__version__ = "0.4.3" +__version__ = "0.4.4" __author__ = "Oleksandr Khoroshevskyi, Rafal Stepien" diff --git a/pephubclient/models.py b/pephubclient/models.py index 55a12c6..473dd0b 100644 --- a/pephubclient/models.py +++ b/pephubclient/models.py @@ -42,7 +42,7 @@ class ProjectAnnotationModel(BaseModel): last_update_date: datetime.datetime submission_date: datetime.datetime digest: str - pep_schema: str + pep_schema: Union[str, int, None] = None pop: bool = False stars_number: Optional[int] = 0 forked_from: Optional[Union[str, None]] = None diff --git a/requirements/requirements-all.txt b/requirements/requirements-all.txt index 3dd6043..803ef23 100644 --- a/requirements/requirements-all.txt +++ b/requirements/requirements-all.txt @@ -1,5 +1,5 @@ typer>=0.7.0 -peppy>=0.40.1 +peppy>=0.40.5 requests>=2.28.2 pydantic>2.5.0 pandas>=2.0.0