-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (143 loc) · 3.87 KB
/
pyproject.toml
File metadata and controls
158 lines (143 loc) · 3.87 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 61.0"]
[project]
name = "crispy-forms-gds"
version = "2.0.1"
description = "Django application to add 'django-crispy-forms' layout objects for the GOV.UK Design System."
keywords = ["Django, django-crispy-forms, gov.uk, design system"]
license = { file = "LICENCE.txt" }
authors = [
{name = "Stuart MacKay", email = "smackay@flagstonesoftware.com"},
]
readme = "README.rst"
requires-python = ">=3.10"
dependencies = [
"django>=5.0",
"django-crispy-forms>=2.0,<2.4",
"django-environ>=0.11.2",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[tool.setuptools]
license-files = []
[tool.uv]
dev-dependencies = [
"bump-my-version>=0.29.0",
"isort>=5.13.2",
"pre-commit>=4.0.1",
"pytest>=8.3.4",
"ruff>=0.8.4",
"sphinx>=8.1.3",
"tox-uv>=1.1.0",
"tox==4.12.1",
"django-environ>=0.11.2",
"pytest-django>=4.9.0",
"playwright>=1.49.1",
"pytest-playwright>=0.6.2",
"pillow>=11.1.0",
"pixelmatch>=0.3.0",
]
[tool.bumpversion]
current_version = "2.0.1"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
ignore_missing_version = false
tag = true
sign_tags = true
tag_name = "v{new_version}"
tag_message = "New version: {current_version} → {new_version}"
allow_dirty = false
commit = true
commit_args = "--no-verify"
message = "New version: {current_version} → {new_version}"
pre_commit_hooks = ["uv sync --upgrade", "git add uv.lock"]
[[tool.bumpversion.files]]
filename = "src/crispy_forms_gds/__init__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[[tool.bumpversion.files]]
filename = "docs/conf.py"
search = 'release = "{current_version}"'
replace = 'release = "{new_version}"'
[[tool.bumpversion.files]]
filename = "CHANGELOG.rst"
search = """
Latest
------"""
replace = """
Latest
------
{new_version} ({now:%Y-%m-%d})
------------------"""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[tool.coverage.run]
branch = true
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "demo.settings"
pythonpath = [
"."
]
testpaths = [
"tests/unit"
]
[tool.tox]
legacy_tox_ini = """
[tox]
requires =
tox>=4.12.1
tox-uv>=1.1.1
envlist =
django{50,51}-crispy{20,21,22,23}
django51-crispy23-gds{500,520,540,560,580}
[testenv]
commands = pytest {posargs} tests/unit
deps =
pytest
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
crispy20: django-crispy-forms>=2.0,<2.1
crispy21: django-crispy-forms>=2.1,<2.2
crispy22: django-crispy-forms>=2.2,<2.3
crispy23: django-crispy-forms>=2.3,<2.4
setenv =
PYTHONPATH = src
[testenv:gds{500,520,540,560,580}]
commands = pytest {posargs} tests/demo
deps =
pytest
pytest-django
pytest-playwright
pillow
pixelmatch
django-environ
setenv =
PYTHONPATH = src
gds500: CRISPY_GDS_FRONTEND_VERSION=5.0.0
gds520: CRISPY_GDS_FRONTEND_VERSION=5.2.0
gds540: CRISPY_GDS_FRONTEND_VERSION=5.4.0
gds560: CRISPY_GDS_FRONTEND_VERSION=5.6.0
gds580: CRISPY_GDS_FRONTEND_VERSION=5.8.0
"""