forked from pool/python-stripe
- update to 14.2.0:
* Update generated code
* Add support for event notifications
`V2CoreAccountClosedEvent`, `V2CoreAccountCreatedEvent`, `V2C
oreAccountIncludingConfigurationCustomerCapabilityStatusUpdat
edEvent`,
`V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V
2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpd
atedEvent`,
`V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V
2CoreAccountIncludingConfigurationRecipientCapabilityStatusUp
datedEvent`,
`V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`,
`V2CoreAccountIncludingDefaultsUpdatedEvent`,
`V2CoreAccountIncludingFutureRequirementsUpdatedEvent`,
`V2CoreAccountIncludingIdentityUpdatedEvent`,
`V2CoreAccountIncludingRequirementsUpdatedEvent`, and
`V2CoreAccountUpdatedEvent` with related object
`v2.core.Account`
* Add support for event notification
`V2CoreAccountLinkReturnedEvent`
* Add support for event notifications
`V2CoreAccountPersonCreatedEvent`,
`V2CoreAccountPersonDeletedEvent`, and
`V2CoreAccountPersonUpdatedEvent` with related object
`v2.core.AccountPerson`
* Fix DeprecationWarning when encoding StripeObject
metadata (fixes #1651)
* Update ci to run on Python 3.14 as well
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=21
This commit is contained in:
78
python-stripe.spec
Normal file
78
python-stripe.spec
Normal file
@@ -0,0 +1,78 @@
|
||||
#
|
||||
# spec file for package python-stripe
|
||||
#
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-stripe
|
||||
Version: 14.2.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
|
||||
BuildRequires: %{python_module aiohttp >= 3.9.4}
|
||||
BuildRequires: %{python_module anyio}
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module flit-core}
|
||||
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 trio}
|
||||
BuildRequires: %{python_module typing_extensions >= 4.5.0}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: stripe-mock
|
||||
Requires: python-requests >= 2.20
|
||||
Requires: python-typing_extensions >= 4.5.0
|
||||
Conflicts: python-stripe-api
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Python bindings for the Stripe API.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n stripe-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
stripe-mock &
|
||||
pid=$!
|
||||
# Raises invalid request
|
||||
donttest="test_terminal_readers_process_setup_intent_post "
|
||||
donttest+="or test_promotion_codes_post "
|
||||
# Requires network
|
||||
donttest+="or TestLiveHTTPClients or test_async_raw_request_timeout"
|
||||
%pytest -k "not ($donttest)"
|
||||
kill $pid
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/stripe
|
||||
%{python_sitelib}/stripe-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user