15
0
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:
2025-02-05 05:12:11 +00:00
committed by Git OBS Bridge
commit ca3bd9f1db
7 changed files with 281 additions and 0 deletions

31
use-sys-executable.patch Normal file
View File

@@ -0,0 +1,31 @@
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,
)