Current section
Files
Jump to
Current section
Files
mix.exs
defmodule JplEphem.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/cycorld/JPLEphem"
def project do
[
app: :jpl_ephem,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.post": :test,
"coveralls.html": :test
],
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
]
]
end
def application do
[
extra_applications: [:logger, :crypto],
mod: {JPLEphem.Application, []}
]
end
defp deps do
[
# Runtime dependencies
{:httpoison, "~> 2.0"},
{:jason, "~> 1.4"},
{:decimal, "~> 2.0"},
{:timex, "~> 3.7"},
# Development dependencies
{:ex_doc, "~> 0.30", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.3", only: [:dev], runtime: false},
{:excoveralls, "~> 0.18", only: :test},
{:benchee, "~> 1.1", only: :dev},
{:stream_data, "~> 0.6", only: :test}
]
end
defp description do
"High-precision astronomical calculations with time conversions, coordinate transformations, and caching for NASA JPL ephemeris data."
end
defp package do
[
name: "jpl_ephem",
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url,
"Documentation" => "https://hexdocs.pm/jpl_ephem"
},
maintainers: ["cycorld"],
files: ~w(lib .formatter.exs mix.exs README.md LICENSE)
]
end
defp docs do
[
main: "JPLEphem",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md", "CHANGELOG.md"],
groups_for_modules: [
"Core API": [JPLEphem],
"Time Calculations": [JPLEphem.Time],
"Coordinate Systems": [JPLEphem.Coord],
"Caching & Utilities": [JPLEphem.Cache, JPLEphem.Application],
"Test Utilities": [JPLEphem.TestHelpers, JPLEphem.TestData]
]
]
end
end