-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmix.exs
82 lines (76 loc) · 2.07 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
81
82
defmodule Penelope.Mixfile do
use Mix.Project
def project do
[
app: :penelope,
name: "Penelope",
version: "0.5.0",
elixir: "~> 1.7",
compilers: [:elixir_make] ++ Mix.compilers(),
make_cwd: "c_src",
make_clean: ["clean"],
aliases: [clean: ["clean", "clean.nif"]],
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: description(),
deps: deps(),
package: package(),
source_url: "https://github.com/pylon/penelope",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.html": :test,
"coveralls.post": :test
],
dialyzer: [
ignore_warnings: ".dialyzerignore",
plt_add_deps: :transitive
],
docs: [extras: ["README.md"]]
]
end
defp description do
"""
Natural Language Processing (NLP) and Machine Learning (ML) library for
Elixir.
"""
end
def application do
[
mod: {Penelope.Application, []},
extra_applications: [:logger]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:e2qc, "~> 1.2"},
{:poison, "~> 3.0 or ~> 4.0", optional: true},
{:stream_data, "~> 0.3", only: [:test]},
{:excoveralls, "~> 0.10", only: :test},
{:elixir_make, "~> 0.4", runtime: false},
{:credo, "~> 0.10", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev], runtime: false},
{:benchee, "~> 0.13", only: :dev, runtime: false},
{:ex_doc, "~> 0.19", only: :dev, runtime: false}
]
end
defp package do
[
files: [
"mix.exs",
"README.md",
"lib",
"c_src/**/{*.c,*.cpp,*.h,*.hpp,Makefile,*.makefile}",
"priv/.gitignore"
],
maintainers: ["Brent M. Spell", "Josh Ziegler"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/pylon/penelope",
"Docs" => "http://hexdocs.pm/penelope/"
}
]
end
end