-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (107 loc) · 3.02 KB
/
pyproject.toml
File metadata and controls
115 lines (107 loc) · 3.02 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "microplex"
version = "0.2.0"
description = "Microdata synthesis and reweighting using normalizing flows"
readme = "README.md"
license = "MIT"
authors = [
{ name = "PolicyEngine", email = "hello@policyengine.org" }
]
keywords = [
"microdata",
"synthesis",
"normalizing-flows",
"survey-data",
"privacy",
"imputation",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
]
requires-python = ">=3.11"
dependencies = [
"torch>=2.0",
"numpy>=1.24",
"pandas>=2.0",
"scipy>=1.10",
"pyarrow>=14.0", # For parquet file support
"huggingface_hub>=0.20", # For PUF download
"polars>=0.20", # For CPS loading
"httpx>=0.25", # For data downloads
"pyyaml>=6.0", # For configuration files
"quantile-forest>=1.3", # For QRF-based synthesis
"scikit-learn>=1.3", # For classification in zero-inflated models
"pydantic>=2.0", # For data models
"prdc>=0.1", # Canonical PRDC metrics (Naeem et al. 2020)
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.1",
"mypy>=1.0",
"responses>=0.20",
]
cvxpy = [
"cvxpy>=1.3",
]
statmatch = [
# "py-statmatch>=0.1.0", # Statistical matching backend (not on PyPI yet)
]
l0 = [
"l0-python>=0.4", # L0 regularization for HardConcreteCalibrator
]
calibrate = [
# Identity-preserving gradient-descent chi-squared adapter.
# microcalibrate pins Python >=3.13; the marker avoids breaking
# microplex installs on 3.11/3.12 that don't need the extra.
"microcalibrate>=0.22; python_version >= '3.13'",
]
benchmark = [
"sdv>=1.0", # CT-GAN, TVAE, Copulas
"scikit-learn>=1.3", # For QRF comparison
"matplotlib>=3.7",
"seaborn>=0.12",
]
docs = [
"jupyter-book>=0.15,<2",
"sphinx>=6.0",
"myst-nb>=0.17",
"sphinx-autodoc-typehints>=1.23",
]
all = [
"microplex[dev,benchmark,docs,calibrate]",
]
[project.urls]
Homepage = "https://github.com/PolicyEngine/microplex"
Documentation = "https://policyengine.github.io/microplex"
Repository = "https://github.com/PolicyEngine/microplex"
[tool.hatch.build.targets.wheel]
packages = ["src/microplex"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-v --tb=short"
[tool.ruff]
line-length = 88
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP"]
ignore = ["E501"] # Line length handled by formatter
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true