forked from dj-stripe/dj-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
128 lines (117 loc) · 4.37 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
126
127
128
[tool.poetry]
name = "dj-stripe"
version = "2.7.3"
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.github.io/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 :: 3.2",
"Framework :: Django :: 4.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.7.12"
django = ">=3.2"
jsonfield = ">=3.0"
stripe = ">=2.48.0,<5.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 = ">=22.6.0"
isort = ">=5.10.1"
pre-commit = ">=2.20.0"
pytest = ">=7.1.2"
pytest-django = ">=4.5.2"
mypy = ">=0.971"
# 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.
[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.1.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"