File python-dj-stripe.spec of Package python-dj-stripe
#
# spec file for package python-dj-stripe
#
# Copyright (c) 2023 SUSE LLC
#
# 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-dj-stripe
Version: 2.8.1
Release: 0
Summary: Django + Stripe made easy
License: MIT
URL: https://dj-stripe.dev
Source: https://files.pythonhosted.org/packages/source/d/dj-stripe/dj_stripe-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core >= 1.1.0}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
# dj-stripe - Django + Stripe Made Easy
[](https://stripe.com/docs/libraries#community-libraries)
<br>
[](https://github.com/dj-stripe/dj-stripe/actions/workflows/ci.yml)
[](https://pypi.org/project/dj-stripe/)
[](https://dj-stripe.github.io/dj-stripe/)
[](https://github.com/sponsors/dj-stripe)
[](https://github.com/sponsors/dj-stripe)
Stripe Models for Django.
## Introduction
dj-stripe implements all of the Stripe models, for Django. Set up your
webhook endpoint and start receiving model updates. You will then have
a copy of all the Stripe models available in Django models, as soon as
they are updated!
The full documentation is available [on Read the Docs](https://dj-stripe.github.io/dj-stripe/).
## Features
- Stripe Core
- Stripe Billing
- Stripe Cards (JS v2) and Sources (JS v3)
- Payment Methods and Payment Intents (SCA support)
- Support for multiple accounts and API keys
- Stripe Connect (partial support)
- Tested with Stripe API `2020-08-27` (see [API versions](api_versions.md#dj-stripe_latest_tested_version))
## Requirements
- Django >=3.2
- Python >=3.8
- PostgreSQL engine (recommended) >=9.6
- MySQL engine: MariaDB >=10.2 or MySQL >=5.7
- SQLite: Not recommended in production. Version >=3.26 required.
## Installation
See [installation](https://dj-stripe.dev/dj-stripe/2.7/installation/) instructions.
## Changelog
[See release notes on Read the Docs](history/2_7_0/).
<!-- This link *will* get stale again eventually. There should be an index page for the
changelog that can be linked to.
For example:
https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#section-index-pages -->
## Funding and Support
<a href="https://stripe.com">
<img alt="Stripe Logo" src="./logos/stripe_blurple.svg" width="250px" />
</a>
You can now become a sponsor to dj-stripe with [GitHub Sponsors](https://github.com/sponsors/dj-stripe).
We've been bringing dj-stripe to the world for over 10 years and are excited to be able to start
dedicating some real resources to the project.
Your sponsorship helps us keep a team of maintainers actively working to improve dj-stripe and
ensure it stays up-to-date with the latest Stripe changes. If you use dj-stripe commercially, we would encourage you to invest in its continued
development by [signing up for a paid plan](https://github.com/sponsors/dj-stripe).
Corporate sponsors [receive priority support and development time](project/support.md).
All contributions through GitHub sponsors flow into our [Open Collective](https://opencollective.com/dj-stripe), which holds our funds and keeps
an open ledger on how donations are spent.
## Our Gold sponsors
<a href="https://stripe.com">
<img alt="Stripe Logo" src="./logos/stripe_blurple.svg" width="250px" />
</a>
## Similar libraries
- [dj-paypal](https://github.com/HearthSim/dj-paypal)
([PayPal](https://www.paypal.com/))
- [dj-paddle](https://github.com/paddle-python/dj-paddle)
([Paddle](https://paddle.com/))
%prep
%autosetup -p1 -n dj_stripe-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license %{python_sitelib}/LICENSE
%{python_sitelib}/djstripe
%{python_sitelib}/dj_stripe-%{version}.dist-info
%changelog