Skip to content

Commit

Permalink
Replace setup.cfg with pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed Oct 19, 2023
1 parent 8455648 commit 01c5447
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 73 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.py[co]
*~
*\.egg*
dist
docs/_build
payments/version.py
.coverage
Expand Down
56 changes: 56 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,59 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]

[project]
name = "django-payments"
authors = [
{name = "Mirumee Software", email = "[email protected]"},
]
description = "Universal payment handling for Django"
readme = "README.rst"
requires-python = ">=3.7"
keywords = ["payments"]
license = {text = "BSD"}
classifiers = [
"Environment :: Web Environment",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Framework :: Django",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"Django>=2.2",
"requests>=1.2.0",
"django-phonenumber-field[phonenumberslite]>=5.0.0",
]
dynamic = ["version"]

[project.optional-dependencies]
braintree = ["braintree>=3.14.0"]
cybersource = ["suds-community>=0.6"]
docs = ["sphinx_rtd_theme"]
mercadopago = ["mercadopago>=2.0.0,<3.0.0"]
sagepay = ["cryptography>=1.1.0"]
sofort = ["xmltodict>=0.9.2"]
stripe = ["stripe>=2.6.0"]

[project.urls]
homepage = "https://github.com/jazzband/django-payments"
documentation = "https://django-payments.readthedocs.io/"
changelog = "https://django-payments.readthedocs.io/en/latest/changelog.html"
issues = "https://github.com/jazzband/django-payments/issues"

[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
Expand Down Expand Up @@ -69,3 +122,6 @@ required-imports = ["from __future__ import annotations"]
[tool.setuptools_scm]
write_to = "payments/version.py"
version_scheme = "post-release"

[tool.setuptools.packages.find]
include = ["payments*"]
73 changes: 0 additions & 73 deletions setup.py

This file was deleted.

0 comments on commit 01c5447

Please sign in to comment.