* Switch to pydantic v2, including pydantic-settings. * Use tenacity rather than retrying. - Drop patch continue-to-use-pydantic-1.patch, no longer required. - Refresh switch-to-pyrfc3339.patch, make it smaller and easier to rebase. - Add patches: * switch-to-poetry-core.patch * support-new-pydantic-settings.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-qcs-api-client?expand=0&rev=9
144 lines
6.0 KiB
Diff
144 lines
6.0 KiB
Diff
Index: qcs-api-client-python-0.26.5/qcs_api_client/api/reservations/find_available_reservations.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/api/reservations/find_available_reservations.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/api/reservations/find_available_reservations.py
|
|
@@ -3,7 +3,7 @@ from typing import Any, Dict, Union
|
|
|
|
import httpx
|
|
from tenacity import retry
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ...types import Response, UNSET
|
|
from ...util.errors import raise_for_status
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/announcement.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/announcement.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/announcement.py
|
|
@@ -5,7 +5,7 @@ from typing import List
|
|
|
|
from attrs import define as _attrs_define
|
|
from attrs import field as _attrs_field
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/available_reservation.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/available_reservation.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/available_reservation.py
|
|
@@ -5,7 +5,7 @@ from typing import List
|
|
|
|
from attrs import define as _attrs_define
|
|
from attrs import field as _attrs_field
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/billing_invoice.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/billing_invoice.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/billing_invoice.py
|
|
@@ -5,7 +5,7 @@ from typing import List
|
|
|
|
from attrs import define as _attrs_define
|
|
from attrs import field as _attrs_field
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/billing_upcoming_invoice.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/billing_upcoming_invoice.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/billing_upcoming_invoice.py
|
|
@@ -5,7 +5,7 @@ from typing import List
|
|
|
|
from attrs import define as _attrs_define
|
|
from attrs import field as _attrs_field
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/characteristic.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/characteristic.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/characteristic.py
|
|
@@ -2,7 +2,7 @@ from typing import Any, Callable, Dict,
|
|
|
|
|
|
from attrs import define as _attrs_define
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET, Unset
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/create_reservation_request.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/create_reservation_request.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/create_reservation_request.py
|
|
@@ -5,7 +5,7 @@ from typing import List
|
|
|
|
from attrs import define as _attrs_define
|
|
from attrs import field as _attrs_field
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET, Unset
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/group.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/group.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/group.py
|
|
@@ -5,7 +5,7 @@ from typing import List
|
|
|
|
from attrs import define as _attrs_define
|
|
from attrs import field as _attrs_field
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/reservation.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/reservation.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/reservation.py
|
|
@@ -5,7 +5,7 @@ from typing import List
|
|
|
|
from attrs import define as _attrs_define
|
|
from attrs import field as _attrs_field
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET, Unset
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/qcs_api_client/models/user.py
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/qcs_api_client/models/user.py
|
|
+++ qcs-api-client-python-0.26.5/qcs_api_client/models/user.py
|
|
@@ -5,7 +5,7 @@ from typing import List
|
|
|
|
from attrs import define as _attrs_define
|
|
from attrs import field as _attrs_field
|
|
-from rfc3339 import rfc3339
|
|
+from pyrfc3339 import generate as rfc3339
|
|
|
|
from ..types import UNSET, Unset
|
|
from ..util.serialization import is_not_none
|
|
Index: qcs-api-client-python-0.26.5/pyproject.toml
|
|
===================================================================
|
|
--- qcs-api-client-python-0.26.5.orig/pyproject.toml
|
|
+++ qcs-api-client-python-0.26.5/pyproject.toml
|
|
@@ -20,7 +20,7 @@ iso8601 = "^1.0.2"
|
|
pydantic = "^2.6.3"
|
|
python = ">=3.8,<4.0"
|
|
python-dateutil = "^2.8.1"
|
|
-rfc3339 = "^6.2"
|
|
+pyRFC3339 = "^1.1"
|
|
toml = "^0.10.2"
|
|
PyJWT = "^2.4.0"
|
|
pydantic-settings = ">=2.2.1,<2.9"
|