-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathpyproject.toml
More file actions
183 lines (161 loc) · 4.73 KB
/
pyproject.toml
File metadata and controls
183 lines (161 loc) · 4.73 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
175
176
177
178
179
180
181
182
183
[build-system]
requires = ["setuptools>=60"]
build-backend = "setuptools.build_meta"
[project]
name = "datajoint"
# dynamically set in tools.setuptools.dynamic
dynamic = ["version"]
dependencies = [
"numpy",
"pymysql>=0.7.2",
"deepdiff",
"pyparsing",
"ipython",
"pandas",
"tqdm",
"networkx",
"pydot",
"minio>=7.0.0",
"matplotlib",
"faker",
"urllib3",
"setuptools",
"pydantic-settings>=2.0.0",
]
requires-python = ">=3.10,<3.14"
authors = [
{name = "Dimitri Yatsenko", email = "dimitri@datajoint.com"},
{name = "Thinh Nguyen", email = "thinh@datajoint.com"},
{name = "Raphael Guzman"},
{name = "Edgar Walker"},
{name = "DataJoint Contributors", email = "support@datajoint.com"},
]
maintainers = [
{name = "Dimitri Yatsenko", email = "dimitri@datajoint.com"},
{name = "DataJoint Contributors", email = "support@datajoint.com"},
]
# manually sync here: https://docs.datajoint.com/core/datajoint-python/latest/#welcome-to-datajoint-for-python
description = "DataJoint for Python is a framework for scientific workflow management based on relational principles. DataJoint is built on the foundation of the relational data model and prescribes a consistent method for organizing, populating, computing, and querying data."
readme = "README.md"
license = {file = "LICENSE.txt"}
keywords = [
"database",
"automated",
"automation",
"compute",
"data",
"pipeline",
"workflow",
"scientific",
"science",
"research",
"neuroscience",
"bioinformatics",
"bio-informatics",
"datajoint",
]
# https://pypi.org/classifiers/
classifiers = [
"Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Intended Audience :: Healthcare Industry",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
[project.urls]
Homepage = "https://docs.datajoint.com/"
Documentation = "https://docs.datajoint.com/"
Repository = "https://github.com/datajoint/datajoint-python"
"Bug Tracker" = "https://github.com/datajoint/datajoint-python/issues"
"Release Notes" = "https://github.com/datajoint/datajoint-python/releases"
[project.entry-points."console_scripts"]
dj = "datajoint.cli:cli"
datajoint = "datajoint.cli:cli"
[dependency-groups]
test = [
"pytest",
"pytest-cov",
"pytest-env",
"docker",
"requests",
"graphviz"
]
[project.optional-dependencies]
dev = [
"pre-commit",
"ruff",
"codespell",
# including test
"pytest",
"pytest-cov",
]
[tool.ruff]
# Equivalent to flake8 configuration
line-length = 127
target-version = "py310"
[tool.ruff.lint]
# Enable specific rule sets equivalent to flake8 configuration
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C90", # mccabe complexity
]
# Ignore specific rules (equivalent to flake8 --ignore)
ignore = [
"E203", # whitespace before ':'
"E722", # bare except
]
# Per-file ignores (equivalent to flake8 --per-file-ignores)
[tool.ruff.lint.per-file-ignores]
"datajoint/diagram.py" = ["C901"] # function too complex
"tests/test_blob_matlab.py" = ["E501"] # SQL hex strings cannot be broken across lines
[tool.ruff.lint.mccabe]
# Maximum complexity (equivalent to flake8 --max-complexity)
max-complexity = 62
[tool.ruff.format]
# Use black-compatible formatting
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.setuptools]
packages = ["datajoint"]
package-dir = {"" = "src"}
[tool.setuptools.dynamic]
version = { attr = "datajoint.version.__version__"}
[tool.codespell]
skip = ".git,*.pdf,*.svg,*.csv,*.ipynb,*.drawio"
# Rever -- nobody knows
# numer -- numerator variable
# astroid -- Python library name (not "asteroid")
ignore-words-list = "rever,numer,astroid"
[tool.pytest_env]
# Default values - pytest fixtures will override with actual container details
DJ_USER="root"
DJ_PASS="password"
DJ_TEST_USER="datajoint"
DJ_TEST_PASSWORD="datajoint"
S3_ACCESS_KEY="datajoint"
S3_SECRET_KEY="datajoint"
S3_BUCKET="datajoint.test"
PYTHON_USER="dja"
JUPYTER_PASSWORD="datajoint"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64", "linux-aarch64"]
[tool.pixi.pypi-dependencies]
datajoint = { path = ".", editable = true }
[tool.pixi.environments]
default = { solve-group = "default" }
dev = { features = ["dev"], solve-group = "default" }
test = { features = ["test"], solve-group = "default" }
[tool.pixi.tasks]
[tool.pixi.dependencies]
python = ">=3.10,<3.14"
graphviz = ">=13.1.2,<14"
[tool.pixi.activation]
scripts=["activate.sh"]