-
Notifications
You must be signed in to change notification settings - Fork 30
/
mix.exs
67 lines (62 loc) · 1.58 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
defmodule ExOpenAI.MixProject do
use Mix.Project
def project do
[
app: :ex_openai,
version: "1.7.0",
elixir: "~> 1.16",
description: description(),
start_permanent: Mix.env() == :prod,
deps: deps(),
package: package(),
name: "ex_openai.ex",
source_url: "https://github.com/dvcrn/ex_openai",
preferred_cli_env: [
vcr: :test,
"vcr.delete": :test,
"vcr.check": :test,
"vcr.show": :test
],
dialyzer: [plt_add_apps: [:mix]]
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
mod: {ExOpenAI, []},
extra_applications: [:httpoison, :jason, :logger, :yaml_elixir]
]
end
defp description do
"""
Auto-generated Elixir SDK for OpenAI APIs with proper typespec and @docs support
"""
end
defp package do
[
licenses: ["MIT"],
exclude_patterns: ["./config/*"],
links: %{
"GitHub" => "https://github.com/dvcrn/ex_openai"
},
maintainers: [
"dvcrn"
]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:jason, "~> 1.4"},
{:mock, "~> 0.3.8", only: :test},
{:httpoison, "~> 2.2.1"},
{:mix_test_watch, "~> 1.2", only: :test},
{:ex_doc, ">= 0.34.1", only: :dev},
{:exvcr, "~> 0.15.1", only: :test},
{:exjsx, "~> 4.0", only: :test},
{:yaml_elixir, "~> 2.11"},
{:dialyxir, "~> 1.4", only: [:dev], runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
]
end
end