Skip to content

Commit 16a46ee

Browse files
committed
Factor out the source_url
1 parent 609a75e commit 16a46ee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mix.exs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ defmodule Circuits.GPIO.MixProject do
22
use Mix.Project
33

44
@version "0.4.1"
5+
@source_url "https://github.com/elixir-circuits/circuits_gpio"
56

67
{:ok, system_version} = Version.parse(System.version())
78
@elixir_version {system_version.major, system_version.minor, system_version.patch}
@@ -13,7 +14,7 @@ defmodule Circuits.GPIO.MixProject do
1314
elixir: "~> 1.4",
1415
description: description(),
1516
package: package(),
16-
source_url: "https://github.com/elixir-circuits/circuits_gpio",
17+
source_url: @source_url,
1718
compilers: [:elixir_make | Mix.compilers()],
1819
make_targets: ["all"],
1920
make_clean: ["clean"],
@@ -47,7 +48,7 @@ defmodule Circuits.GPIO.MixProject do
4748
"Makefile"
4849
],
4950
licenses: ["Apache-2.0"],
50-
links: %{"GitHub" => "https://github.com/elixir-circuits/circuits_gpio"}
51+
links: %{"GitHub" => @source_url}
5152
}
5253
end
5354

@@ -72,7 +73,7 @@ defmodule Circuits.GPIO.MixProject do
7273
extras: ["README.md", "PORTING.md"],
7374
main: "readme",
7475
source_ref: "v#{@version}",
75-
source_url: "https://github.com/elixir-circuits/circuits_gpio"
76+
source_url: @source_url
7677
]
7778
end
7879

0 commit comments

Comments
 (0)