forked from pool/python-stripe
- Update to 11.5.0:
* Fix regression when using httpx HTTP client * Change the pinned API version to 2024-12-18.acacia. * Deserialize into correct v2 EventData types * update object tags for meter-related classes * Update the class for ThinEvent to include livemode * Add method to list invoice line items * Bump aiohttp from 3.9.0 to 3.9.4 * Use stdlib AsyncMock when available * Add TaxIds API * Remove http client base * Testing: unify http client mock * Remove broken child methods * Move StripeClient usage collection onto StripeService * Measure StripeClient usage * Introduce StripeClient and a service-based call pattern. - Do not run stripe-mock during check, the testsuite handles it for us. - Drop patch use-sys-executable.patch, included upstream. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 5 05:11:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 11.5.0:
|
||||
* Fix regression when using httpx HTTP client
|
||||
* Change the pinned API version to 2024-12-18.acacia.
|
||||
* Deserialize into correct v2 EventData types
|
||||
* update object tags for meter-related classes
|
||||
* Update the class for ThinEvent to include livemode
|
||||
* Add method to list invoice line items
|
||||
* Bump aiohttp from 3.9.0 to 3.9.4
|
||||
* Use stdlib AsyncMock when available
|
||||
* Add TaxIds API
|
||||
* Remove http client base
|
||||
* Testing: unify http client mock
|
||||
* Remove broken child methods
|
||||
* Move StripeClient usage collection onto StripeService
|
||||
* Measure StripeClient usage
|
||||
* Introduce StripeClient and a service-based call pattern.
|
||||
- Do not run stripe-mock during check, the testsuite handles it for us.
|
||||
- Drop patch use-sys-executable.patch, included upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 19 03:23:20 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-stripe
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,21 +17,23 @@
|
||||
|
||||
|
||||
Name: python-stripe
|
||||
Version: 7.12.0
|
||||
Version: 11.5.0
|
||||
Release: 0
|
||||
Summary: Python bindings for the Stripe API
|
||||
License: MIT
|
||||
URL: https://github.com/stripe/stripe-python
|
||||
Source: https://files.pythonhosted.org/packages/source/s/stripe/stripe-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#stripe/stripe-python#1195
|
||||
Patch0: use-sys-executable.patch
|
||||
BuildRequires: %{python_module aiohttp >= 3.9.4}
|
||||
BuildRequires: %{python_module anyio}
|
||||
BuildRequires: %{python_module httpx}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest >= 6.0}
|
||||
BuildRequires: %{python_module pytest-mock >= 2.0}
|
||||
BuildRequires: %{python_module pytest-xdist}
|
||||
BuildRequires: %{python_module requests >= 2.20}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module trio}
|
||||
BuildRequires: %{python_module typing_extensions >= 4.5.0}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: stripe-mock
|
||||
@@ -55,10 +57,11 @@ Python bindings for the Stripe API.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
stripe-mock &
|
||||
pid=$!
|
||||
%pytest
|
||||
kill $pid
|
||||
# Raises invalid request
|
||||
donttest="test_terminal_readers_process_setup_intent_post "
|
||||
# Requires network
|
||||
donttest+="or TestLiveHTTPClients or test_async_raw_request_timeout"
|
||||
%pytest -k "not ($donttest)"
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.md README.md examples/
|
||||
|
3
stripe-11.5.0.tar.gz
Normal file
3
stripe-11.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bc3e0358ffc23d5ecfa8aafec1fa4f048ee8107c3237bcb00003e68c8c96fa02
|
||||
size 1386601
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:121971bef27a79a20c3f0676f4d4ccf1207d04b7758327b3725e694bf53106b6
|
||||
size 783948
|
@@ -1,31 +0,0 @@
|
||||
From 46b7f4b2facac4a73828a736d69101828dda71e0 Mon Sep 17 00:00:00 2001
|
||||
From: Steve Kowalik <steven@wedontsleep.org>
|
||||
Date: Wed, 17 Jan 2024 11:52:06 +1100
|
||||
Subject: [PATCH] Use sys.executable in test_exports
|
||||
|
||||
Not all systems will have 'python' in the path to execute to check
|
||||
exports -- and indeed, it may not even be the interpreter that is under
|
||||
test and can import the module. Since we are already running under the
|
||||
test suite, use sys.executable to check.
|
||||
---
|
||||
tests/test_exports.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_exports.py b/tests/test_exports.py
|
||||
index 9c7d9b980..149032109 100644
|
||||
--- a/tests/test_exports.py
|
||||
+++ b/tests/test_exports.py
|
||||
@@ -3,11 +3,12 @@
|
||||
from typing import Any
|
||||
import stripe
|
||||
import subprocess
|
||||
+import sys
|
||||
|
||||
|
||||
def assert_output(code: str, expected: str) -> None:
|
||||
process = subprocess.Popen(
|
||||
- ["python", "-c", f"import stripe; print({code})"],
|
||||
+ [sys.executable, "-c", f"import stripe; print({code})"],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
)
|
Reference in New Issue
Block a user