-
Notifications
You must be signed in to change notification settings - Fork 10
/
mix.exs
80 lines (73 loc) · 1.84 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
defmodule Rational.Mixfile do
use Mix.Project
def project do
[
app: :ratio,
version: "4.0.1",
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs(),
package: package(),
description: description(),
source_url: "https://github.com/qqwy/elixir-rational"
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
extra_applications =
[:numbers, :logger] ++ case Mix.env() do
:test -> [:stream_data]
_ -> []
end
[
extra_applications: extra_applications
]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
[
# Markdown, dependency of ex_doc
{:earmark, ">= 1.0.0", only: [:dev]},
# Documentation for Hex.pm
{:ex_doc, "~> 0.20", only: [:dev]},
# Generic arithmetic dispatching.
{:numbers, "~> 5.2.0"},
# If Decimal number support is required
{:decimal, "~> 1.6 or ~> 2.0", optional: true},
{:stream_data, "~> 0.1", only: [:dev, :test]}
]
end
defp package do
[
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Qqwy/WM"],
licenses: ["MIT"],
links: %{github: "https://github.com/qqwy/elixir-rational"}
]
end
defp description do
"""
This library allows you to use Rational numbers in Elixir, to enable exact calculations with all numbers big and small.
"""
end
defp docs do
[
main: "readme",
extras: [
"README.md": [title: "Guide/Readme"]
]
]
end
end