From 94a5bfa88e740240944c88020d20e5f0fbd41634 Mon Sep 17 00:00:00 2001 From: Marcel Otto Date: Sun, 25 Jun 2017 00:32:50 +0200 Subject: [PATCH] Prepare mix file for Hex package publishing --- README.md | 2 +- mix.exs | 31 +++++++++++++++++++++---------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 763ffb1..69719ad 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Let's see how the different types of nodes are represented with RDF.ex in Elixir ### URIs -Although the RDF standards speaks of IRIs, an internationalized generalization of URIs, RDF.ex currently supports only URIs. They are represented with Elixirs builtin [`URI`](http://elixir-lang.org/docs/stable/elixir/URI.html) struct. It's a pragmatic, temporary decision, which will likely be subject to changes, in favour of a more dedicated representation of IRIs specialised for its usage within RDF data. See this [issue](https://github.com/marcelotto/rdf/issues/1) for progress on this matter. +Although the RDF standards speaks of IRIs, an internationalized generalization of URIs, RDF.ex currently supports only URIs. They are represented with Elixirs builtin [`URI`](http://elixir-lang.org/docs/stable/elixir/URI.html) struct. It's a pragmatic, temporary decision, which will likely be subject to changes, in favour of a more dedicated representation of IRIs specialised for its usage within RDF data. See this [issue](https://github.com/marcelotto/rdf-ex/issues/1) for progress on this matter. The `RDF` module defines a handy constructor function `RDF.uri/1`: diff --git a/mix.exs b/mix.exs index 07fee5b..975ab14 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,9 @@ defmodule RDF.Mixfile do use Mix.Project - @version "0.0.1" + @repo_url "https://github.com/marcelotto/rdf-ex" + + @version "0.1.0" def project do [ @@ -10,9 +12,20 @@ defmodule RDF.Mixfile do elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, - description: description(), + deps: deps(), + + # Hex package: package(), - deps: deps() + description: description(), + + # Docs + name: "RDF.ex", + docs: [ + main: "RDF", + source_url: @repo_url, + source_ref: "v#{@version}", + extras: ["README.md"], + ] ] end @@ -24,11 +37,9 @@ defmodule RDF.Mixfile do defp package do [ - name: :rdf, maintainers: ["Marcel Otto"], licenses: ["MIT"], - links: %{"GitHub" => "https://github.com/rdfex/rdf", - "Docs" => "http://rdfex.github.io/rdf)/"}, + links: %{"GitHub" => @repo_url}, files: ["lib", "priv", "mix.exs", "README*", "readme*", "LICENSE*", "license*"] ] end @@ -39,10 +50,10 @@ defmodule RDF.Mixfile do defp deps do [ - {:dialyxir, "~> 0.4", only: [:dev, :test]}, - {:credo, "~> 0.6", only: [:dev, :test]}, - {:ex_doc, "~> 0.14", only: :dev}, - {:mix_test_watch, "~> 0.3", only: :dev}, + {:dialyxir, "~> 0.4", only: [:dev, :test], runtime: false}, + {:credo, "~> 0.6", only: [:dev, :test], runtime: false}, + {:ex_doc, "~> 0.14", only: :dev, runtime: false}, + {:mix_test_watch, "~> 0.3", only: :dev, runtime: false}, ] end end