-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
167 lines (137 loc) · 3.44 KB
/
Copy pathpyproject.toml
File metadata and controls
167 lines (137 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
155
156
157
158
159
160
161
162
163
164
165
166
167
[tool.poetry]
name = "dpmm"
version = "0.2.0"
description = "dpmm: a library for synthetic tabular data generation with rich functionality and end-to-end Differential Privacy guarantees"
license = "Apache-2.0"
authors = ["Sofiane Mahiou, Georgi Ganev <sofiane.mahiou@sas.com>"]
maintainers = ["Sofiane Mahiou <sofiane.mahiou@sas.com>"]
readme = "README.md"
repository = "https://github.com/sassoftware/dpmm/"
keywords = ["machine-learning", "tabular-data", "differential-privacy", "synthetic-data"]
[project]
name = "dpmm"
version = "0.2.0"
description = "dpmm: a library for synthetic tabular data generation with rich functionality and end-to-end Differential Privacy guarantees"
authors = [
{name = "Sofiane Mahiou, Georgi Ganev", email = "sofiane.mahiou@sas.com"}
]
readme = "README.md"
license = { text = "Apache-2.0" }
keywords = ["machine-learning", "tabular-data", "differential-privacy", "synthetic-data"]
repository = "https://github.com/sassoftware/dpmm/"
[project.urls]
homepage = "https://github.com/sassoftware/dpmm"
"arxiv" = "https://arxiv.org/abs/2506.00322"
[tool.poetry.dependencies]
python = ">=3.10, <3.12"
pandas = "2.1.0"
numpy = "1.26.4"
scipy = "^1.15.2"
scikit-learn = "1.5.0"
tqdm = "^4.67.1"
networkx = "<3.0"
disjoint-set = "0.7.4"
opendp = "0.12.1"
[tool.poetry.group.dev.dependencies]
poetry = ">=1.2.2"
ipython = {version = "^9.0.2", python = ">=3.11"}
jupyter = "^1.1.1"
twine = "^5.0.0"
coverage = "*"
mock = "*"
pytest = "*"
pytest-cov = "^7.0.0"
pytest-xdist = "^3.8.0"
pytest-pylint = "^0.21.0"
pytest-flake8 = "^1.3.0"
black = "^25.9.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^7.0.0"
sphinx-rtd-theme = "^2.0.0"
sphinx-autodoc-typehints = "^1.25.0"
myst-parser = "^2.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W", "B", "I"]
ignore = ["E402", "E501", "E731"]
[tool.coverage.paths]
source = ["src/dpmm", "*/site-packages/dpmm"]
[tool.ruff.lint.isort]
from-first = true
known-first-party = ["dpmm"]
force-wrap-aliases = true
combine-as-imports = true
[tool.coverage.run]
branch = true
source = ["src/dpmm"]
omit = ["tests/*"]
[tool.coverage.report]
precision = 2
show_missing = true
skip_empty = true
[tool.pytest.ini_options]
norecursedirs = [
".git",
".tox",
".env",
".eggs",
"dist",
"build",
]
python_files = [
"test_*.py",
"*_test.py",
"tests.py",
]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
env_list = py311, report
[testenv]
setenv =
PYTHONPATH={toxinidir}/
PYTHONUNBUFFERED=yes
passenv = *
usedevelop = false
allowlist_externals = poetry
extras =
dev
commands_pre = poetry install --sync
commands =
poetry run coverage run -p -m pytest -vv {posargs:tests/}
poetry run coverage erase
[testenv:clean]
deps = coverage
skip_install = true
envdir = {toxworkdir}/coverage
allowlist_externals = rm, poetry
commands =
rm -rf build/ dist/
poetry run coverage erase
[testenv:report]
skip_install = true
envdir = {toxworkdir}/coverage
commands =
poetry run coverage combine
poetry run coverage report
[testenv:build]
skip_install = true
commands =
poetry install --sync
poetry build --format=wheel
[testenv:release]
skip_install = true
commands =
{[testenv:build]commands}
twine upload --skip-existing --verbose dist/*.*
"""