Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions exla/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ defmodule EXLA.MixProject do
name: "EXLA",
description: "Google's XLA (Accelerated Linear Algebra) compiler/backend for Nx",
package: package(),
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs
],
compilers: [:extract_xla, :cached_make] ++ Mix.compilers(),
aliases: [
"compile.extract_xla": &extract_xla/1,
Expand Down Expand Up @@ -60,6 +56,15 @@ defmodule EXLA.MixProject do
]
end

def cli do
[
preferred_envs: [
docs: :docs,
"hex.publish": :docs
]
]
end

defp elixirc_paths(:test), do: ~w(lib test/support)
defp elixirc_paths(_), do: ~w(lib)

Expand Down
15 changes: 10 additions & 5 deletions nx/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ defmodule Nx.MixProject do
docs: docs(),
name: "Nx",
description: "Multi-dimensional arrays (tensors) and numerical definitions for Elixir",
package: package(),
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs
]
package: package()
]
end

Expand All @@ -30,6 +26,15 @@ defmodule Nx.MixProject do
]
end

def cli do
[
preferred_envs: [
docs: :docs,
"hex.publish": :docs
]
]
end

defp elixirc_paths(:test), do: ~w(lib test/support)
defp elixirc_paths(_), do: ~w(lib)

Expand Down
13 changes: 9 additions & 4 deletions torchx/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ defmodule Torchx.MixProject do
name: "Torchx",
description: "LibTorch bindings and backend for Nx",
package: package(),
preferred_cli_env: [
docs: :docs,
"hex.publish": :docs
],

# Compilers
compilers: @libtorch_compilers ++ Mix.compilers(),
Expand All @@ -36,6 +32,15 @@ defmodule Torchx.MixProject do
]
end

def cli do
[
preferred_envs: [
docs: :docs,
"hex.publish": :docs
]
]
end

defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]

Expand Down