defmodule PartitionedSchema.MixProject do use Mix.Project def project do [ app: :partitioned_schema, version: "0.9.2", elixir: "~> 1.18", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), description: description(), package: package(), source_url: "https://codeberg.org/hukl/partitioned_schema", homepage_url: "https://codeberg.org/hukl/partitioned_schema", docs: docs() ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger], mod: {PartitionedSchema.Application, []} ] end # Run "mix help deps" to learn about dependencies. defp deps do [ {:ecto_sql, ">= 3.10.0"}, {:postgrex, ">= 0.0.0", only: :test}, {:mock, "~> 0.3.9", only: :test}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:mix_test_watch, "~> 1.2", only: :dev, runtime: false} ] end defp description do "PostgresSQL Partitioned Table rotation and maintenance helpers for Ecto schemas (range partitions by date/timestamptz/naive datetime) with retention and a cluster-safe maintainer." end defp package do [ licenses: ["MIT"], links: %{ "Codeberg" => "https://codeberg.org/hukl/partitioned_schema" } ] end defp docs do [ main: "readme", extras: ["README.md"], source_ref: "v#{Mix.Project.config()[:version]}", source_url: "https://codeberg.org/hukl/partitioned_schema" ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] end