Skip to content

Commit 9196d42

Browse files
committed
chore: release v0.2
1 parent e42d9ff commit 9196d42

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed
File renamed without changes.

mix.exs

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ defmodule EMLX.MixProject do
44
@app :emlx
55
@version "0.2.0"
66
@mlx_version "0.25.1"
7+
@source_url "https://github.com/elixir-nx/emlx"
78

89
require Logger
910

@@ -13,11 +14,16 @@ defmodule EMLX.MixProject do
1314
[
1415
app: @app,
1516
version: @version,
16-
elixir: "~> 1.15",
17+
description: "MLX bindings and backend for Nx",
18+
elixir: "~> 1.17",
1719
elixirc_paths: elixirc_paths(Mix.env()),
1820
start_permanent: Mix.env() == :prod,
1921
deps: deps(),
20-
22+
docs: docs(),
23+
preferred_cli_env: [
24+
docs: :docs,
25+
"hex.publish": :docs
26+
],
2127
# elixir_make
2228
make_env: %{
2329
"MLX_DIR" => libmlx_config.dir,
@@ -41,7 +47,8 @@ defmodule EMLX.MixProject do
4147

4248
# Compilers
4349
compilers: compilers(libmlx_config),
44-
aliases: aliases()
50+
aliases: aliases(),
51+
package: package()
4552
]
4653
end
4754

@@ -57,7 +64,18 @@ defmodule EMLX.MixProject do
5764
defp deps do
5865
[
5966
{:elixir_make, "~> 0.6"},
60-
{:nx, "~> 0.10"}
67+
{:nx, "~> 0.10"},
68+
{:ex_doc, "~> 0.34", only: :docs}
69+
]
70+
end
71+
72+
defp docs do
73+
[
74+
main: "EMLX",
75+
source_url_pattern: "#{@source_url}/blob/v#{@version}/%{path}#L%{line}",
76+
extras: [
77+
"README.md"
78+
]
6179
]
6280
end
6381

@@ -487,4 +505,12 @@ defmodule EMLX.MixProject do
487505
)
488506
end
489507
end
508+
509+
defp package do
510+
[
511+
licenses: ["Apache-2.0"],
512+
links: %{"GitHub" => @source_url},
513+
maintainers: ["Paulo Valente", "Cocoa Xu", "Samrat Man Singh"]
514+
]
515+
end
490516
end

mix.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
%{
22
"complex": {:hex, :complex, "0.6.0", "b0130086a7a8c33574d293b2e0e250f4685580418eac52a5658a4bd148f3ccf1", [:mix], [], "hexpm", "0a5fa95580dcaf30fcd60fe1aaf24327c0fe401e98c24d892e172e79498269f9"},
3+
"earmark_parser": {:hex, :earmark_parser, "1.4.44", "f20830dd6b5c77afe2b063777ddbbff09f9759396500cdbe7523efd58d7a339c", [:mix], [], "hexpm", "4778ac752b4701a5599215f7030989c989ffdc4f6df457c5f36938cc2d2a2750"},
34
"elixir_make": {:hex, :elixir_make, "0.9.0", "6484b3cd8c0cee58f09f05ecaf1a140a8c97670671a6a0e7ab4dc326c3109726", [:mix], [], "hexpm", "db23d4fd8b757462ad02f8aa73431a426fe6671c80b200d9710caf3d1dd0ffdb"},
5+
"ex_doc": {:hex, :ex_doc, "0.38.4", "ab48dff7a8af84226bf23baddcdda329f467255d924380a0cf0cee97bb9a9ede", [:mix], [{:earmark_parser, "~> 1.4.44", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "f7b62346408a83911c2580154e35613eb314e0278aeea72ed7fedef9c1f165b2"},
6+
"makeup": {:hex, :makeup, "1.2.1", "e90ac1c65589ef354378def3ba19d401e739ee7ee06fb47f94c687016e3713d1", [:mix], [{:nimble_parsec, "~> 1.4", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "d36484867b0bae0fea568d10131197a4c2e47056a6fbe84922bf6ba71c8d17ce"},
7+
"makeup_elixir": {:hex, :makeup_elixir, "1.0.1", "e928a4f984e795e41e3abd27bfc09f51db16ab8ba1aebdba2b3a575437efafc2", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "7284900d412a3e5cfd97fdaed4f5ed389b8f2b4cb49efc0eb3bd10e2febf9507"},
8+
"makeup_erlang": {:hex, :makeup_erlang, "1.0.2", "03e1804074b3aa64d5fad7aa64601ed0fb395337b982d9bcf04029d68d51b6a7", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "af33ff7ef368d5893e4a267933e7744e46ce3cf1f61e2dccf53a111ed3aa3727"},
9+
"nimble_parsec": {:hex, :nimble_parsec, "1.4.2", "8efba0122db06df95bfaa78f791344a89352ba04baedd3849593bfce4d0dc1c6", [:mix], [], "hexpm", "4b21398942dda052b403bbe1da991ccd03a053668d147d53fb8c4e0efe09c973"},
410
"nx": {:hex, :nx, "0.10.0", "128e4a094cb790f663e20e1334b127c1f2a4df54edfb8b13c22757ec33133b4f", [:mix], [{:complex, "~> 0.6", [hex: :complex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "3db8892c124aeee091df0e6fbf8e5bf1b81f502eb0d4f5ba63e6378ebcae7da4"},
511
"telemetry": {:hex, :telemetry, "1.3.0", "fedebbae410d715cf8e7062c96a1ef32ec22e764197f70cda73d82778d61e7a2", [:rebar3], [], "hexpm", "7015fc8919dbe63764f4b4b87a95b7c0996bd539e0d499be6ec9d7f3875b79e6"},
612
}

0 commit comments

Comments
 (0)