-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmix.exs
More file actions
246 lines (219 loc) · 6.2 KB
/
mix.exs
File metadata and controls
246 lines (219 loc) · 6.2 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
defmodule ExZarr.MixProject do
use Mix.Project
@version "1.0.1"
@source_url "https://github.com/thanos/ExZarr"
def project do
[
app: :ex_zarr,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
compilers: Mix.compilers(),
aliases: aliases(),
# Package info
description: description(),
package: package(),
docs: docs(),
name: "ExZarr",
source_url: @source_url,
# Testing
test_coverage: [tool: ExCoveralls],
# Dialyzer
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix, :ex_unit],
flags: [:underspecs, :unmatched_returns],
ignore_warnings: ".dialyzer_ignore.exs"
]
]
end
defp aliases do
[
compile: ["compile", "fix_nif_rpaths"]
]
end
def application do
[
mod: {ExZarr.Application, []},
extra_applications: [:logger, :crypto, :mnesia]
]
end
def cli do
[
preferred_envs: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test,
"coveralls.github": :test,
"coveralls.cobertura": :test
]
]
end
defp deps do
[
# JSON encoding/decoding for metadata
{:jason, "~> 1.4"},
# Zig NIFs for compression codecs
{:zigler, "~> 0.13", runtime: false},
# Cloud storage backends (optional)
{:ex_aws, "~> 2.5", optional: true},
{:ex_aws_s3, "~> 2.5", optional: true},
{:sweet_xml, "~> 0.7", optional: true},
{:goth, "~> 1.4", optional: true},
{:google_api_storage, "~> 0.36", optional: true},
{:azurex, "~> 1.1"},
{:req, "~> 0.4", optional: true},
# Database storage backends (optional)
{:mongodb_driver, "~> 1.4", optional: true},
# Observability
{:telemetry, "~> 1.2"},
# Numerical computing (optional)
{:nx, "~> 0.7", optional: true},
# Documentation
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
] ++
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:stream_data, "~> 1.1", only: [:dev, :test]},
{:mox, "~> 1.1", only: :test},
{:benchee, "~> 1.3", only: :dev},
{:sobelow, "~> 0.14", only: [:dev, :test], runtime: false, warn_if_outdated: true}
]
end
defp description do
"""
Pure Elixir implementation of Zarr v2 and v3: compressed, chunked, N-dimensional arrays
with full Python zarr-python compatibility. Supports chunk streaming, custom encoders,
and multiple storage backends including S3 and GCS.
"""
end
defp package do
[
name: "ex_zarr",
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "#{@source_url}/blob/main/CHANGELOG.md",
"Zarr Specification" => "https://zarr.dev"
},
maintainers: ["Thanos Vassilakis"],
files: [
"lib",
# Only include NIFs, not PLTs
"priv/lib",
"native",
".formatter.exs",
"mix.exs",
"README.md",
"CHANGELOG.md",
"INTEROPERABILITY.md",
"LICENSE"
]
]
end
defp docs do
[
main: "ExZarr",
extras: [
# Getting Started
"README.md",
"ZARR_V3_STATUS.md",
"guides/quickstart.md",
# Core Concepts
"guides/core_concepts.md",
"guides/parallel_io.md",
# Storage and Backends
"guides/storage_providers.md",
"guides/custom_storage_backend.md",
# Compression and Data Processing
"guides/compression_codecs.md",
"guides/python_interop.md",
# Advanced Topics
"guides/performance.md",
"guides/nx_integration.md",
# Reference
"guides/troubleshooting.md",
"guides/glossary.md",
# Contributing
"guides/contributing.md",
# Additional Documentation
"CHANGELOG.md",
"INTEROPERABILITY.md",
"PERFORMANCE_IMPROVEMENTS.md",
"SECURITY.md",
"docs/V2_TO_V3_MIGRATION.md",
"benchmarks/README.md"
],
groups_for_extras: [
"Getting Started": [
"README.md",
"guides/quickstart.md"
],
"Core Concepts": [
"guides/core_concepts.md",
"guides/parallel_io.md"
],
"Storage and Backends": [
"guides/storage_providers.md",
"guides/custom_storage_backend.md"
],
"Compression and Data Processing": [
"guides/compression_codecs.md",
"guides/python_interop.md"
],
"Advanced Topics": [
"guides/performance.md",
"guides/nx_integration.md"
],
Reference: [
"guides/troubleshooting.md",
"guides/glossary.md"
],
Contributing: [
"guides/contributing.md"
],
"Additional Documentation": [
"CHANGELOG.md",
"INTEROPERABILITY.md",
"PERFORMANCE_IMPROVEMENTS.md",
"SECURITY.md",
"docs/V2_TO_V3_MIGRATION.md",
"benchmarks/README.md"
]
],
source_ref: "v#{@version}",
source_url: @source_url,
authors: ["Thanos Vassilakis"],
logo: nil,
api_reference: true,
formatters: ["html"],
before_closing_body_tag: &before_closing_body_tag/1
]
end
# Add search and navigation enhancements
defp before_closing_body_tag(:html) do
"""
<script>
// Add keyboard shortcuts for documentation navigation
document.addEventListener('keydown', function(e) {
// Press 'g' then 'h' to go to guides home
if (e.key === 'g') {
setTimeout(function() {
document.addEventListener('keydown', function handler(e2) {
if (e2.key === 'h') {
window.location.href = 'readme.html';
}
document.removeEventListener('keydown', handler);
}, {once: true});
}, 100);
}
});
</script>
"""
end
defp before_closing_body_tag(_), do: ""
end