forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
125 lines (113 loc) · 4.48 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
121
122
123
124
125
[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/dj-stripe/"
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 :: 4.2",
"Framework :: Django :: 5.0",
]
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.9.0"
django = ">=4.2"
stripe = ">=8.0.0"
psycopg2 = { version = "^2.8.5", optional = true }
mysqlclient = { version = ">=1.4.0", optional = true }
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = ">=24.4.1"
isort = ">=5.13.2"
pytest = ">=7.3.1"
pytest-django = ">=4.5.2"
mypy = ">=1.10.0"
# flake8 = ">=5.0.4"
# Why is flake8 commented out?
# The short version: flake8 is pinned to an old version of importlib-metadata
# which clashes with other dependencies (such as mkdocs in our case).
#
# For the longer version, you have to look at these links:
# https://github.com/PyCQA/flake8/pull/1438
# https://github.com/PyCQA/flake8/issues/1474
# https://github.com/PyCQA/flake8/issues/1503
# https://github.com/PyCQA/flake8/issues/1522
# https://github.com/PyCQA/flake8/issues/1526
#
# So the flake8 team ran into a deprecation path they didn't like, and got so
# upset about it that… it seems they just decided to never unpin it, even though
# the maintainers of importlib-metadata have since fixed the issue flake8 was
# complaining about.
#
# Now, they're getting issue, after issue, after issue opened on Github because:
# - importlib-metadata 4.4+ is required by many popular libs (markdown, sphinx…)
# - The pin looks unnecessary at first glance
# - They don't document the reasoning for their choice
# - There probably ISN'T any valid reasoning for their choice
# - They are closing & locking any reference to this as off-topic
# - They refuse to address the issue, and complain about anyone who brings it up.
#
# The reasonable approach would of course be to remove the useless pin, but by
# doing so they fear they would "increase the maintenance burden" because they're
# a small team (in other words, they're worried about more bug tracker activity).
# Obviously this makes zero sense since the issue is gone, and they are instead
# generating lots of bug tracker activity, which they're promptly ignoring.
#
# So they're wasting my time, and everybody else's, including yours who's reading
# this little rant right now. But I'd like this to serve as a lesson on how not
# to maintain a popular open source project.
# Many OSS devs are finding out that, with increased popularity comes increased
# responsibility. If you don't want the responsibility, you are not forced to
# continue maintaining the library; but as long as you do, your reach puts you in
# a position of power.
# Wasting your users' time is abusing that position of power.
# Think of the underpaid bureaucrat who, by the stroke of a pen, makes or breaks
# the lives of others. Who was a little too grumpy at work and decided to take it
# out on someone and waste hours of their life by making illogical demands, just
# out of spite.
#
# I'm grateful flake8 exists. But it's not a useful enough tool to allow it to
# waste our time like this, and it's largely been displaced by the other tools:
# mypy, isort, and black. So let's stick to those instead.
pre-commit = "^3.7.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = ">=1.3.1"
mkdocs-material = ">=8.4.2"
mkdocs-autorefs = ">=0.4.1"
mkdocstrings = { extras = ["python"], version = ">=0.19.0" }
mike = ">=1.1.2"
jinja2 = "<3.2.0"
[tool.poetry.group.ci]
optional = true
[tool.poetry.group.ci.dependencies]
coverage = { version = ">=6.5,<8.0", extras = ["toml"] }
tox = "^3.26.0"
tox-gh-actions = "^2.10.0"
[tool.poetry.extras]
postgres = ["psycopg2"]
mysql = ["mysqlclient"]
[tool.isort]
profile = "black"
[build-system]
requires = ["poetry_core>=1.1.0"]
build-backend = "poetry.core.masonry.api"