-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (118 loc) · 3.46 KB
/
pyproject.toml
File metadata and controls
133 lines (118 loc) · 3.46 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
[project]
name = "policyengine-uk"
version = "2.88.20"
description = "PolicyEngine tax and benefit system for the UK."
readme = "README.md"
authors = [
{ name = "PolicyEngine", email = "nikhil@policyengine.org" }
]
maintainers = [
{ name = "Nikhil Woodruff", email = "nikhil@policyengine.org" }
]
license = "AGPL-3.0"
keywords = ["benefit", "microsimulation", "social", "tax"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Information Analysis",
]
requires-python = ">=3.9"
dependencies = [
"policyengine-core>=3.26.0",
"microdf-python>=1.2.1",
"pydantic>=2.11.7",
"tables>=3.9.2,<3.10.2; python_version < '3.10'",
"tables>=3.10.0,<3.10.2; python_version == '3.10.*'",
"tables>=3.10.2; python_version >= '3.11'",
]
[project.urls]
Homepage = "https://github.com/PolicyEngine/policyengine-uk"
Repository = "https://github.com/PolicyEngine/policyengine-uk"
Issues = "https://github.com/PolicyEngine/policyengine-uk/issues"
Changelog = "https://github.com/PolicyEngine/policyengine-uk/blob/master/CHANGELOG.md"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
include = [
"policyengine_uk/**/*",
"CHANGELOG.md",
"LICENSE",
"README.md",
]
[tool.hatch.build.targets.wheel]
packages = ["policyengine_uk"]
[tool.uv]
# Until policyengine-core ships 3.9/3.10 support (3.24.0+), restrict
# uv.lock resolution to >=3.11. `requires-python` above still declares
# 3.9 is supported — pip users on 3.9/3.10 will resolve against PyPI
# once core 3.24+ is published. Remove this block once the lockfile
# can cleanly resolve across 3.9-3.14.
environments = [
"python_version >= '3.11'",
]
[project.optional-dependencies]
dev = [
"ruff>=0.9.0",
"coverage",
"furo<2023",
"tqdm",
"pytest",
"pytest-cov",
"setuptools",
"sphinx-argparse>=0.3.2,<1",
"sphinx-math-dollar>=1.2.1,<2",
"wheel",
"towncrier>=24.8.0",
"snowballstemmer>=2,<3",
"jupyter-book>=2.0.0a0",
"rich",
]
[tool.pytest.ini_options]
markers = [
"microsimulation: marks tests that use full microsimulation (deselect with '-m \"not microsimulation\"')",
]
[tool.towncrier]
package = "policyengine_uk"
directory = "changelog.d"
filename = "CHANGELOG.md"
title_format = "## [{version}] - {project_date}"
issue_format = ""
underlines = ["", "", ""]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[tool.ruff]
line-length = 88
target-version = "py39"
extend-exclude = [
"docs/book/programs/gov/dfe/care-to-learn.ipynb",
]
[tool.ruff.lint]
select = ["E", "F"]
ignore = ["E402", "E501", "E712", "E713", "E721", "E722", "E741", "F401", "F402", "F403", "F405", "F541", "F811", "F821", "F841"]