forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
120 lines (103 loc) · 2.83 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[tool.poetry]
name = "dj-stripe"
version = "2.8.0"
description = "Django + Stripe made easy"
license = "MIT"
authors = [
"Alexander Kavanaugh <[email protected]>",
"Jerome Leclanche <[email protected]>",
]
readme = "docs/README.md"
homepage = "https://dj-stripe.dev"
repository = "https://github.com/dj-stripe/dj-stripe"
documentation = "https://dj-stripe.dev/docs"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Django",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
]
packages = [{ include = "djstripe" }]
include = ["AUTHORS.md", "CONTRIBUTING.md", "HISTORY.md", "LICENSE"]
exclude = ["manage.py"]
[tool.poetry.urls]
"Funding" = "https://github.com/sponsors/dj-stripe"
[tool.poetry.dependencies]
python = "^3.10.0"
django = ">=5.0"
stripe = ">=11.3.0"
psycopg = { version = "^3.2.3", optional = true }
mysqlclient = { version = ">=1.4.0", optional = true }
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
mypy = ">=1.13.0"
pre-commit = "^4.0.1"
pytest = ">=8.3.4"
pytest-django = ">=4.9.0"
ruff = "^0.8.1"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.1"
mkdocs-material = "^9.5.47"
mkdocs-autorefs = "^1.2.0"
mkdocstrings = { extras = ["python"], version = "^0.27.0" }
mike = "^2.1.3"
jinja2 = "^3.1.4"
[tool.poetry.group.ci]
optional = true
[tool.poetry.group.ci.dependencies]
coverage = { version = "^7.6.8", extras = ["toml"] }
tox = "^4.23.2"
tox-gh = "^1.4.4"
[tool.poetry.extras]
postgres = ["psycopg"]
mysql = ["mysqlclient"]
[build-system]
requires = ["poetry_core>=1.1.0"]
build-backend = "poetry.core.masonry.api"
[tool.tox]
isolated_build = true
envlist = [
"django{50,51}-py{310,311,312,313}-{postgres,sqlite}",
"djangomain-py313-postgres",
]
skip_missing_interpreters = true
[tool.tox.gh.python]
"3.13" = ["py313"]
"3.12" = ["py312"]
"3.11" = ["py311"]
"3.10" = ["py310"]
[tool.tox.testenv]
passenv = ["DJSTRIPE_*"]
commands = ["pytest {posargs}"]
deps = [
"pytest-django",
"pytest-cov",
"django50: Django>=5.0,<5.1",
"django51: Django>=5.1,<5.2",
"djangomain: https://github.com/django/django/archive/main.tar.gz",
"postgres: psycopg>=3.2.3",
]
[tool.tox.testenv.setenv]
postgres = "DJSTRIPE_TEST_DB_VENDOR=postgres"
sqlite = "DJSTRIPE_TEST_DB_VENDOR=sqlite"
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "tests.settings"
markers = ["stripe_api: mark a test as using Stripe API."]
[tool.coverage.run]
branch = true
source = ["djstripe"]
omit = [
"djstripe/migrations/*",
"djstripe/management/*",
"djstripe/admin.py",
"djstripe/checks.py",
]
[tool.coverage.html]
directory = "cover"