#8 Update to version 1.0.8, resolves rhbz#2182477
Merged 10 months ago by zlopez. Opened a year ago by carlwgeorge.
rpms/ carlwgeorge/python-fasjson-client update_1.0.8  into  rawhide

file modified
+1
@@ -7,3 +7,4 @@ 

  /fasjson-client-1.0.5.tar.gz

  /fasjson-client-1.0.6.tar.gz

  /fasjson-client-1.0.7.tar.gz

+ /fasjson-client-1.0.8.tar.gz

@@ -1,29 +0,0 @@ 

- From ec53450377eaa765e84e87b3cbe6fe152b900aaf Mon Sep 17 00:00:00 2001

- From: Carl George <carl@george.computer>

- Date: Tue, 14 Feb 2023 16:27:37 -0600

- Subject: [PATCH 1/2] Use poetry-core as the build backend

- 

- poetry-core has far fewer dependencies than poetry.  It's maintained by

- the same people and poetry itself uses poetry-core.  Switching to this

- makes packaging easier.  See rhbz#2049649 for more details.

- 

- Signed-off-by: Carl George <carl@george.computer>

- ---

-  pyproject.toml | 4 ++--

-  1 file changed, 2 insertions(+), 2 deletions(-)

- 

- diff --git a/pyproject.toml b/pyproject.toml

- index 3f3be6c..3aee2a6 100644

- --- a/pyproject.toml

- +++ b/pyproject.toml

- @@ -95,5 +95,5 @@ authorized_licenses = [

-  ]

-  

-  [build-system]

- -requires = ["poetry>=1.0.0"]

- -build-backend = "poetry.masonry.api"

- +requires = ["poetry-core"]

- +build-backend = "poetry.core.masonry.api"

- -- 

- 2.39.1

- 

@@ -1,39 +0,0 @@ 

- From 7a611f4a140eb743281692cd296cb7256b4f2f7b Mon Sep 17 00:00:00 2001

- From: Carl George <carl@george.computer>

- Date: Wed, 15 Feb 2023 02:53:28 -0600

- Subject: [PATCH 2/2] Restore compatibility with requests < 2.26.0

- 

- InvalidJSONError was added in requests 2.26.0.  RHEL 9 only has requests

- 2.25.1.  If we can't import it, define it ourselves.

- 

- https://github.com/psf/requests/commit/05a1a21593c9c8e79393d35fae12c9c27a6f7605

- 

- Signed-off-by: Carl George <carl@george.computer>

- ---

-  fasjson_client/client.py | 10 +++++++++-

-  1 file changed, 9 insertions(+), 1 deletion(-)

- 

- diff --git a/fasjson_client/client.py b/fasjson_client/client.py

- index a5e16f1..15f76c1 100644

- --- a/fasjson_client/client.py

- +++ b/fasjson_client/client.py

- @@ -1,7 +1,15 @@

-  import errno

-  from urllib.parse import urljoin, urlsplit

-  

- -from requests.exceptions import InvalidJSONError, RequestException

- +from requests.exceptions import RequestException

- +# InvalidJSONError was added in requests 2.26.0.  RHEL 9 only has requests

- +# 2.25.1.  If we can't import it, define it ourselves.

- +try:

- +    from requests.exceptions import InvalidJSONError

- +except ImportError:

- +    class InvalidJSONError(RequestException):

- +        pass

- +

-  from bravado import requests_client

-  from bravado.client import SwaggerClient, CallableOperation

-  from bravado.exception import HTTPError

- -- 

- 2.39.1

- 

file modified
+1 -5
@@ -1,17 +1,13 @@ 

  %bcond_without tests

  

  Name:           python-fasjson-client

- Version:        1.0.7

+ Version:        1.0.8

  Release:        %autorelease

  Summary:        An OpenAPI client for FASJSON

  

  License:        LGPL-3.0-or-later

  URL:            https://github.com/fedora-infra/fasjson-client

  Source:         %{pypi_source fasjson-client}

- # https://github.com/fedora-infra/fasjson-client/pull/304

- Patch:          0001-Use-poetry-core-as-the-build-backend.patch

- # https://github.com/fedora-infra/fasjson-client/pull/305

- Patch:          0002-Restore-compatibility-with-requests-2.26.0.patch

  BuildArch:      noarch

  

  BuildRequires:  python3-devel

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (fasjson-client-1.0.7.tar.gz) = 64a6b53614278bf78e7c2a9760ffc17dbc9bdb22e0bd8c2782dc9cc02f4d2e85b14af83ec7dac2206cf0b0cf821f0080e2fa6989e334862b359761fc31026511

+ SHA512 (fasjson-client-1.0.8.tar.gz) = 561137ed760ae0d9a67032bfd52abf1fbc181456683a799bbb633acce1cbec817b70275354b20b3cdd38cf55aab75e8273dfd02694f89a49f446e54428d52f86