-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (140 loc) · 3.44 KB
/
pyproject.toml
File metadata and controls
154 lines (140 loc) · 3.44 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
[build-system]
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"
[project]
name = "policyengine_us_data"
version = "1.115.5"
description = "A package to create representative microdata for the US."
readme = "README.md"
authors = [
{name = "PolicyEngine", email = "hello@policyengine.org"},
]
license = {file = "LICENSE"}
requires-python = ">=3.12, <3.15"
classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"policyengine-us==1.711.0",
# policyengine-core 3.26.1 is the current 3.26.x runtime and includes the fix for
# PolicyEngine/policyengine-core#482 (user-set ETERNITY inputs lost
# after _invalidate_all_caches) and is required by policyengine-us 1.682.1+.
"policyengine-core>=3.26.1,<3.27",
"pandas>=2.3.1",
"requests>=2.25.0",
"tqdm>=4.60.0",
"microdf_python>=1.2.1",
"setuptools>=60",
"microimpute>=2.1.0",
"pip-system-certs>=3.0",
"google-cloud-storage>=2.0.0",
"google-auth>=2.0.0",
"scipy>=1.15.3",
"statsmodels>=0.14.5",
"openpyxl>=3.1.5",
"tables>=3.11.1",
"torch>=2.7.1",
"us>=2.0.0",
"sqlalchemy>=2.0.41",
"sqlmodel>=0.0.24",
"xlrd>=2.0.2",
"spm-calculator>=0.3.1",
"tenacity>=8.0.0",
]
[project.optional-dependencies]
calibration = [
"svy>=0.18.2",
]
l0 = [
"l0-python",
]
[dependency-groups]
dev = [
"ruff>=0.9.0",
"pytest",
"quantile-forest",
"tabulate",
"furo",
"jupyter-book",
"mystmd>=1.7.0",
"build",
"tomli",
"itables",
"towncrier>=24.8.0",
"pytest-cov",
"mdformat>=1.0.0",
"mdformat-gfm>=1.0.0",
"pyyaml>=6.0.0",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["policyengine_us_data*"]
namespaces = false
[tool.setuptools.package-data]
"policyengine_us_data" = [
"**/*.csv",
"**/*.csv.gz",
"**/*.json",
"**/*.json.gz",
"**/*.md",
"**/*.txt",
"**/*.yaml",
"**/*.yml",
"**/*.zip",
]
[tool.setuptools.exclude-package-data]
"policyengine_us_data" = [
# Generated block geography prerequisites are downloaded from Hugging Face
# by policyengine_us_data.storage.download_prerequisites instead of being
# bundled in PyPI wheels.
"storage/block_cd_distributions.csv.gz",
"storage/block_crosswalk.csv.gz",
]
"*" = ["**/__pycache__/*", "**/*.py[cod]"]
[tool.pytest.ini_options]
addopts = "-v"
testpaths = [
"tests/unit",
"tests/integration",
]
markers = [
"integration: tests that exercise integration-level behavior or external runtime seams",
"slow: tests or validators that require substantial local runtime or built artifacts",
]
filterwarnings = [
"ignore::SyntaxWarning:IPython.core.interactiveshell",
]
[tool.towncrier]
package = "policyengine_us_data"
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