forked from elixir-explorer/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
102 lines (94 loc) · 2.75 KB
/
mix.exs
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
defmodule Explorer.MixProject do
use Mix.Project
@source_url "https://github.com/elixir-nx/explorer"
@version "0.4.0-dev"
def project do
[
app: :explorer,
name: "Explorer",
description:
"Series (one-dimensional) and dataframes (two-dimensional) for fast data exploration in Elixir",
version: @version,
elixir: "~> 1.13",
package: package(),
deps: deps(),
docs: docs(),
preferred_cli_env: [docs: :docs, "hex.publish": :docs],
aliases: [
"rust.lint": ["cmd cargo clippy --manifest-path=native/explorer/Cargo.toml -- -Dwarnings"],
"rust.fmt": ["cmd cargo fmt --manifest-path=native/explorer/Cargo.toml --all"],
ci: ["format", "rust.fmt", "rust.lint", "test"]
]
]
end
def application do
[
extra_applications: [:logger],
env: [default_backend: Explorer.PolarsBackend]
]
end
defp deps do
[
{:rustler_precompiled, "~> 0.5"},
{:table, "~> 0.1.2"},
{:table_rex, "~> 3.1.1"},
## Optional
{:rustler, ">= 0.0.0", optional: true},
{:nx, "~> 0.3.0", optional: true},
## Non-prod
{:ex_doc, "~> 0.24", only: :docs},
{:benchee, "~> 1.1", only: :dev}
]
end
defp docs do
[
main: "Explorer",
logo: "explorer-exdoc.png",
source_ref: "v#{@version}",
source_url: @source_url,
groups_for_modules: [
# Explorer,
# Explorer.DataFrame,
# Explorer.Datasets,
# Explorer.Series,
Backends: [
Explorer.Backend,
Explorer.Backend.DataFrame,
Explorer.Backend.Series,
Explorer.Backend.LazyFrame,
Explorer.Backend.LazySeries,
Explorer.PolarsBackend
]
],
groups_for_functions: [
"Functions: Single-table": &(&1[:type] == :single),
"Functions: Multi-table": &(&1[:type] == :multi),
"Functions: Row-based": &(&1[:type] == :rows),
"Functions: Introspection": &(&1[:type] == :introspection),
"Functions: IO": &(&1[:type] == :io),
# For series
"Functions: Aggregation": &(&1[:type] == :aggregation),
"Functions: Element-wise": &(&1[:type] == :element_wise),
"Functions: Transformation": &(&1[:type] == :transformation),
"Functions: Window": &(&1[:type] == :window)
],
extras: ["notebooks/exploring_explorer.livemd", "CHANGELOG.md"],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp package do
[
files: [
"lib",
"native",
"datasets",
"checksum-*.exs",
"mix.exs",
"LICENSE"
],
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
maintainers: ["Christopher Grainger"]
]
end
end