defmodule EXGBoost.MixProject do use Mix.Project @version "0.2.0" def project do [ app: :exgboost, version: @version, make_precompiler: {:nif, CCPrecompiler}, make_precompiler_url: "https://github.com/acalejos/exgboost/releases/download/v#{@version}/@{artefact_filename}", make_precompiler_priv_paths: ["libexgboost.*", "lib"], elixir: "~> 1.14", start_permanent: Mix.env() == :prod, compilers: [:elixir_make] ++ Mix.compilers(), deps: deps(), docs: docs(), package: package(), preferred_cli_env: [ docs: :docs, "hex.publish": :docs ], before_closing_body_tag: &before_closing_body_tag/1, name: "EXGBoost", description: "Elixir bindings for the XGBoost library. `EXGBoost` provides an implementation of XGBoost that works with [Nx](https://hexdocs.pm/nx/Nx.html) tensors." ] end def application do [ extra_applications: [:logger], mod: {EXGBoost.Application, []} ] end defp deps do [ {:elixir_make, "~> 0.4", runtime: false}, {:nimble_options, "~> 1.0"}, {:nx, "~> 0.5"}, {:jason, "~> 1.3"}, {:ex_doc, "~> 0.29.0", only: :docs}, {:cc_precompiler, "~> 0.1.0", runtime: false} ] end defp package do [ maintainers: ["Andres Alejos"], licenses: ["Apache-2.0"], links: %{"GitHub" => "https://github.com/acalejos/exgboost"}, files: [ "lib", "mix.exs", "c", "Makefile", "README.md", "LICENSE", ".formatter.exs", "checksum.exs" ] ] end defp docs do [ main: "EXGBoost", before_closing_body_tag: &before_closing_body_tag/1 ] end defp before_closing_body_tag(:html) do """ """ end defp before_closing_body_tag(_), do: "" end