-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (157 loc) · 4.12 KB
/
pyproject.toml
File metadata and controls
174 lines (157 loc) · 4.12 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
168
169
170
171
172
173
174
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "teadata"
version = "0.0.118"
description = "Pythonic data engine for Texas education datasets"
authors = [{name="Alejandro Peña", email="adpena@gmail.com"}]
readme = "README.md"
license = {file = "LICENSE"}
dependencies = [
"python-dateutil>=2.8.2",
"numpy>=1.26",
"pandas>=2.1",
"shapely>=2.0",
"geopandas>=0.14",
"pyogrio>=0.7",
"pyyaml>=6.0",
"openpyxl>=3.1",
"duckdb>=0.10",
"pyarrow>=14.0",
"packaging>=23.2",
"scipy>=1.10",
"platformdirs>=3.7",
"tomli>=2.0",
]
requires-python = ">=3.11"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: GIS",
]
[project.optional-dependencies]
# Faster I/O / performance add-ons
speedups = [
"pyogrio>=0.7",
"polars>=1.0",
"pygeos; python_version<'3.11'", # no-op on modern, left for legacy envs
]
# Development tooling
dev = [
"ruff>=0.5",
"ty>=0.0.11",
"pytest>=7.4",
"pytest-cov>=4.1",
"pip-tools>=7.4",
"pip-audit>=2.7",
"deptry>=0.16",
]
# Documentation generation
docs = [
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.24",
]
# Notebook-only dependencies used in .ipynb files
notebooks = [
"jupyterlab>=4.0",
"ipython>=8.0",
"ipywidgets>=8.0",
"ipyleaflet>=0.18",
"itables>=1.6",
"google-auth>=2.0",
"google-api-python-client>=2.0",
]
# Relational database connectivity helpers
database = [
"sqlalchemy>=2.0",
"psycopg[binary]>=3.1",
]
# Dependencies used by maintenance/utility scripts under teadata/scripts
scripts = [
"requests>=2.31",
"tqdm>=4.66",
"geopy>=2.4",
"aiohttp>=3.9",
]
[project.scripts]
teadata-config = "teadata.teadata_config:cli"
[tool.setuptools.packages.find]
where = ["."]
include = ["teadata*"]
exclude = ["tests*", "docs*", "examples*"]
[tool.setuptools.package-data]
teadata = [".cache/*.pkl.gz", ".cache/boundaries_*.sqlite", ".cache/entities_*.sqlite"]
[tool.setuptools]
include-package-data = false
[project.urls]
"Homepage" = "https://github.com/adpena/teadata"
"Bug Tracker" = "https://github.com/adpena/teadata/issues"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
[tool.deptry]
# Optional: folders to skip
exclude = ["tests", "docs", "examples", ".ipynb_checkpoints", ".venv", "build", "dist"]
known_first_party = ["teadata"]
# Per-rule ignores by code
[tool.deptry.per_rule_ignores]
DEP002 = [
"openpyxl",
"pyogrio",
"pyarrow",
"pygeos",
"ruff",
"ty",
"pytest",
"pytest-cov",
"pip-tools",
"pip-audit",
"deptry",
"python-dateutil",
"jupyterlab",
"google-api-python-client",
"ipython",
"ipywidgets",
"ipyleaflet",
"itables",
"google-auth",
"psycopg",
"mkdocs-material",
"mkdocstrings",
]
DEP003 = [
"scipy",
"google", # namespace package; satisfied by google-auth/google-api-python-client
"IPython", # notebook-only; provided by optional 'notebooks' extra
"ipyleaflet", # notebook-only; provided by optional 'notebooks' extra
"ipywidgets", # notebook-only; provided by optional 'notebooks' extra
"itables" # notebook-only; provided by optional 'notebooks' extra
]
[tool.ruff]
exclude = ["examples", "docs", "build", "teadata.egg-info", ".venv"]
extend-exclude = ["*.ipynb"]
[tool.ty.src]
include = ["teadata"]
exclude = [
"teadata/boundary_store.py",
"teadata/engine.py",
"teadata/enrichment/**",
"teadata/entity_store.py",
"teadata/load_data.py",
"teadata/map_store.py",
"teadata/persistence/**",
"teadata/query.py",
"teadata/scripts/**",
"examples/**",
"tests/**",
"**/*.ipynb",
]