Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-stripe
|
|
|
|
#
|
2025-02-05 05:12:11 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-stripe
|
2025-02-05 05:12:11 +00:00
|
|
|
Version: 11.5.0
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
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
|
2025-02-05 05:12:11 +00:00
|
|
|
BuildRequires: %{python_module aiohttp >= 3.9.4}
|
|
|
|
BuildRequires: %{python_module anyio}
|
|
|
|
BuildRequires: %{python_module httpx}
|
- Update to 7.12.0:
* Add support for new resource `CustomerSession`
* Add support for `create` method on resource `CustomerSession`
* Remove support for values `obligation_inbound`,
`obligation_payout_failure`, `obligation_payout`, and
`obligation_reversal_outbound` from enum `BalanceTransaction.type`
* Remove support for value `obligation` from enum
`Reporting.ReportRunCreateParams.parameters.reporting_category`
* Mark defunct and internal methods as deprecated
* Do not raise a DeprecationWarning in `stripe.app_info`
* Fix __getattr__ to raise AttributeError rather than returning None.
* Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature`
* `stripe.api_version`, `stripe.multipart_data_generator`,
`stripe.request_metrics` are deprecated.
* Move resource type exports to stripe.
* Add support for new resources `Climate.Order`, `Climate.Product`, and
`Climate.Supplier`
* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve`
methods on resource `Order`
* Add support for `exemption_indicator` on resource class
`Charge.PaymentMethodDetails.Card.ThreeDSecure`
* Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions`
* Add support for Python 3.11/3.12
* Include `py.typed` and enable type annotations for the package
* Behavior change: nested json objects will now deserialize into
instances of specific classes that subclass `StripeObject`.
* Behavior change: `PromotionCode.restrictions.currency_options` will now
deserialize into `dict` and not `StripeObject`.
* This release changes the pinned API version to `2023-10-16`. Please read
https://stripe.com/docs/upgrades#2023-10-16 and carefully review the API
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=6
2024-01-17 03:19:43 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2021-08-13 09:28:40 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 6.0}
|
|
|
|
BuildRequires: %{python_module pytest-mock >= 2.0}
|
2025-02-05 05:12:11 +00:00
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
2021-08-13 09:28:40 +00:00
|
|
|
BuildRequires: %{python_module requests >= 2.20}
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-02-05 05:12:11 +00:00
|
|
|
BuildRequires: %{python_module trio}
|
- Update to 7.12.0:
* Add support for new resource `CustomerSession`
* Add support for `create` method on resource `CustomerSession`
* Remove support for values `obligation_inbound`,
`obligation_payout_failure`, `obligation_payout`, and
`obligation_reversal_outbound` from enum `BalanceTransaction.type`
* Remove support for value `obligation` from enum
`Reporting.ReportRunCreateParams.parameters.reporting_category`
* Mark defunct and internal methods as deprecated
* Do not raise a DeprecationWarning in `stripe.app_info`
* Fix __getattr__ to raise AttributeError rather than returning None.
* Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature`
* `stripe.api_version`, `stripe.multipart_data_generator`,
`stripe.request_metrics` are deprecated.
* Move resource type exports to stripe.
* Add support for new resources `Climate.Order`, `Climate.Product`, and
`Climate.Supplier`
* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve`
methods on resource `Order`
* Add support for `exemption_indicator` on resource class
`Charge.PaymentMethodDetails.Card.ThreeDSecure`
* Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions`
* Add support for Python 3.11/3.12
* Include `py.typed` and enable type annotations for the package
* Behavior change: nested json objects will now deserialize into
instances of specific classes that subclass `StripeObject`.
* Behavior change: `PromotionCode.restrictions.currency_options` will now
deserialize into `dict` and not `StripeObject`.
* This release changes the pinned API version to `2023-10-16`. Please read
https://stripe.com/docs/upgrades#2023-10-16 and carefully review the API
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=6
2024-01-17 03:19:43 +00:00
|
|
|
BuildRequires: %{python_module typing_extensions >= 4.5.0}
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-01-19 03:30:22 +00:00
|
|
|
BuildRequires: stripe-mock
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
Requires: python-requests >= 2.20
|
- Update to 7.12.0:
* Add support for new resource `CustomerSession`
* Add support for `create` method on resource `CustomerSession`
* Remove support for values `obligation_inbound`,
`obligation_payout_failure`, `obligation_payout`, and
`obligation_reversal_outbound` from enum `BalanceTransaction.type`
* Remove support for value `obligation` from enum
`Reporting.ReportRunCreateParams.parameters.reporting_category`
* Mark defunct and internal methods as deprecated
* Do not raise a DeprecationWarning in `stripe.app_info`
* Fix __getattr__ to raise AttributeError rather than returning None.
* Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature`
* `stripe.api_version`, `stripe.multipart_data_generator`,
`stripe.request_metrics` are deprecated.
* Move resource type exports to stripe.
* Add support for new resources `Climate.Order`, `Climate.Product`, and
`Climate.Supplier`
* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve`
methods on resource `Order`
* Add support for `exemption_indicator` on resource class
`Charge.PaymentMethodDetails.Card.ThreeDSecure`
* Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions`
* Add support for Python 3.11/3.12
* Include `py.typed` and enable type annotations for the package
* Behavior change: nested json objects will now deserialize into
instances of specific classes that subclass `StripeObject`.
* Behavior change: `PromotionCode.restrictions.currency_options` will now
deserialize into `dict` and not `StripeObject`.
* This release changes the pinned API version to `2023-10-16`. Please read
https://stripe.com/docs/upgrades#2023-10-16 and carefully review the API
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=6
2024-01-17 03:19:43 +00:00
|
|
|
Requires: python-typing_extensions >= 4.5.0
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
Conflicts: python-stripe-api
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python bindings for the Stripe API.
|
|
|
|
|
|
|
|
%prep
|
- Update to 7.12.0:
* Add support for new resource `CustomerSession`
* Add support for `create` method on resource `CustomerSession`
* Remove support for values `obligation_inbound`,
`obligation_payout_failure`, `obligation_payout`, and
`obligation_reversal_outbound` from enum `BalanceTransaction.type`
* Remove support for value `obligation` from enum
`Reporting.ReportRunCreateParams.parameters.reporting_category`
* Mark defunct and internal methods as deprecated
* Do not raise a DeprecationWarning in `stripe.app_info`
* Fix __getattr__ to raise AttributeError rather than returning None.
* Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature`
* `stripe.api_version`, `stripe.multipart_data_generator`,
`stripe.request_metrics` are deprecated.
* Move resource type exports to stripe.
* Add support for new resources `Climate.Order`, `Climate.Product`, and
`Climate.Supplier`
* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve`
methods on resource `Order`
* Add support for `exemption_indicator` on resource class
`Charge.PaymentMethodDetails.Card.ThreeDSecure`
* Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions`
* Add support for Python 3.11/3.12
* Include `py.typed` and enable type annotations for the package
* Behavior change: nested json objects will now deserialize into
instances of specific classes that subclass `StripeObject`.
* Behavior change: `PromotionCode.restrictions.currency_options` will now
deserialize into `dict` and not `StripeObject`.
* This release changes the pinned API version to `2023-10-16`. Please read
https://stripe.com/docs/upgrades#2023-10-16 and carefully review the API
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=6
2024-01-17 03:19:43 +00:00
|
|
|
%autosetup -p1 -n stripe-%{version}
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
|
|
|
|
%build
|
- Update to 7.12.0:
* Add support for new resource `CustomerSession`
* Add support for `create` method on resource `CustomerSession`
* Remove support for values `obligation_inbound`,
`obligation_payout_failure`, `obligation_payout`, and
`obligation_reversal_outbound` from enum `BalanceTransaction.type`
* Remove support for value `obligation` from enum
`Reporting.ReportRunCreateParams.parameters.reporting_category`
* Mark defunct and internal methods as deprecated
* Do not raise a DeprecationWarning in `stripe.app_info`
* Fix __getattr__ to raise AttributeError rather than returning None.
* Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature`
* `stripe.api_version`, `stripe.multipart_data_generator`,
`stripe.request_metrics` are deprecated.
* Move resource type exports to stripe.
* Add support for new resources `Climate.Order`, `Climate.Product`, and
`Climate.Supplier`
* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve`
methods on resource `Order`
* Add support for `exemption_indicator` on resource class
`Charge.PaymentMethodDetails.Card.ThreeDSecure`
* Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions`
* Add support for Python 3.11/3.12
* Include `py.typed` and enable type annotations for the package
* Behavior change: nested json objects will now deserialize into
instances of specific classes that subclass `StripeObject`.
* Behavior change: `PromotionCode.restrictions.currency_options` will now
deserialize into `dict` and not `StripeObject`.
* This release changes the pinned API version to `2023-10-16`. Please read
https://stripe.com/docs/upgrades#2023-10-16 and carefully review the API
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=6
2024-01-17 03:19:43 +00:00
|
|
|
%pyproject_wheel
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
|
|
|
|
%install
|
- Update to 7.12.0:
* Add support for new resource `CustomerSession`
* Add support for `create` method on resource `CustomerSession`
* Remove support for values `obligation_inbound`,
`obligation_payout_failure`, `obligation_payout`, and
`obligation_reversal_outbound` from enum `BalanceTransaction.type`
* Remove support for value `obligation` from enum
`Reporting.ReportRunCreateParams.parameters.reporting_category`
* Mark defunct and internal methods as deprecated
* Do not raise a DeprecationWarning in `stripe.app_info`
* Fix __getattr__ to raise AttributeError rather than returning None.
* Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature`
* `stripe.api_version`, `stripe.multipart_data_generator`,
`stripe.request_metrics` are deprecated.
* Move resource type exports to stripe.
* Add support for new resources `Climate.Order`, `Climate.Product`, and
`Climate.Supplier`
* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve`
methods on resource `Order`
* Add support for `exemption_indicator` on resource class
`Charge.PaymentMethodDetails.Card.ThreeDSecure`
* Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions`
* Add support for Python 3.11/3.12
* Include `py.typed` and enable type annotations for the package
* Behavior change: nested json objects will now deserialize into
instances of specific classes that subclass `StripeObject`.
* Behavior change: `PromotionCode.restrictions.currency_options` will now
deserialize into `dict` and not `StripeObject`.
* This release changes the pinned API version to `2023-10-16`. Please read
https://stripe.com/docs/upgrades#2023-10-16 and carefully review the API
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=6
2024-01-17 03:19:43 +00:00
|
|
|
%pyproject_install
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2025-02-05 05:12:11 +00:00
|
|
|
# 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)"
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2021-02-06 17:07:55 +00:00
|
|
|
%doc CHANGELOG.md README.md examples/
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
%license LICENSE
|
- Update to 7.12.0:
* Add support for new resource `CustomerSession`
* Add support for `create` method on resource `CustomerSession`
* Remove support for values `obligation_inbound`,
`obligation_payout_failure`, `obligation_payout`, and
`obligation_reversal_outbound` from enum `BalanceTransaction.type`
* Remove support for value `obligation` from enum
`Reporting.ReportRunCreateParams.parameters.reporting_category`
* Mark defunct and internal methods as deprecated
* Do not raise a DeprecationWarning in `stripe.app_info`
* Fix __getattr__ to raise AttributeError rather than returning None.
* Add missing explicit reexport for `OAuth`, `Webhook`, `WebhookSignature`
* `stripe.api_version`, `stripe.multipart_data_generator`,
`stripe.request_metrics` are deprecated.
* Move resource type exports to stripe.
* Add support for new resources `Climate.Order`, `Climate.Product`, and
`Climate.Supplier`
* Add support for `cancel`, `create`, `list`, `modify`, and `retrieve`
methods on resource `Order`
* Add support for `exemption_indicator` on resource class
`Charge.PaymentMethodDetails.Card.ThreeDSecure`
* Add support for `Paypal` on `Checkout.Session.PaymentMethodOptions`
* Add support for Python 3.11/3.12
* Include `py.typed` and enable type annotations for the package
* Behavior change: nested json objects will now deserialize into
instances of specific classes that subclass `StripeObject`.
* Behavior change: `PromotionCode.restrictions.currency_options` will now
deserialize into `dict` and not `StripeObject`.
* This release changes the pinned API version to `2023-10-16`. Please read
https://stripe.com/docs/upgrades#2023-10-16 and carefully review the API
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=6
2024-01-17 03:19:43 +00:00
|
|
|
%{python_sitelib}/stripe
|
|
|
|
%{python_sitelib}/stripe-%{version}.dist-info
|
Accepting request 850230 from home:jayvdb:py-submit
The official API and only one which is usable beyond trivial use of stripe.
~1k github stars
dep of dj-stripe (and lots of other django stripe apps), django-payment, django-payments, cartridge-stripe, tendenci, bluebottle, Cubane, and similar apps for most frameworks like Flask-Stripe, tornado-stripe, etc, etc
OBS-URL: https://build.opensuse.org/request/show/850230
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=1
2020-11-25 16:40:30 +00:00
|
|
|
|
|
|
|
%changelog
|