From 686bcfe68b423a3f951d7d7a5f2a0c093e5ecc32 Mon Sep 17 00:00:00 2001 From: Josh Rotenberg Date: Tue, 31 Mar 2026 14:11:59 -0700 Subject: [PATCH] feat(package): hex.pm publish prep closes #17 Rename package from codex_wrapper_ex to codex_wrapper, add package/0 with licenses, links, files, and maintainers. Add MIT LICENSE file. Fix doc references to Config.new/1 to use fully qualified module path. --- LICENSE | 21 +++++++++++++++++++++ README.md | 2 +- lib/codex_wrapper.ex | 4 ++-- mix.exs | 14 ++++++++++++-- 4 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9aaae29 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Josh Rotenberg + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index f76cad3..1057434 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ servers -- all from Elixir. ```elixir def deps do [ - {:codex_wrapper_ex, "~> 0.1.0"} + {:codex_wrapper, "~> 0.1.0"} ] end ``` diff --git a/lib/codex_wrapper.ex b/lib/codex_wrapper.ex index a5a6d11..ee78ed9 100644 --- a/lib/codex_wrapper.ex +++ b/lib/codex_wrapper.ex @@ -86,7 +86,7 @@ defmodule CodexWrapper do ## Options - Config options (passed to `Config.new/1`): + Config options (passed to `CodexWrapper.Config.new/1`): * `:binary` - Path to codex binary * `:working_dir` - Working directory * `:env` - Environment variables @@ -163,7 +163,7 @@ defmodule CodexWrapper do ## Options - Config options (passed to `Config.new/1`): + Config options (passed to `CodexWrapper.Config.new/1`): * `:binary` - Path to codex binary * `:working_dir` - Working directory * `:env` - Environment variables diff --git a/mix.exs b/mix.exs index 6d976ab..5c05a96 100644 --- a/mix.exs +++ b/mix.exs @@ -6,13 +6,14 @@ defmodule CodexWrapperEx.MixProject do def project do [ - app: :codex_wrapper_ex, + app: :codex_wrapper, version: @version, elixir: "~> 1.19", start_permanent: Mix.env() == :prod, deps: deps(), docs: docs(), - name: "CodexWrapperEx", + package: package(), + name: "CodexWrapper", description: "Elixir wrapper for the Codex CLI" ] end @@ -37,4 +38,13 @@ defmodule CodexWrapperEx.MixProject do source_url: @source_url ] end + + defp package do + [ + licenses: ["MIT"], + links: %{"GitHub" => @source_url}, + files: ~w(lib mix.exs README.md LICENSE .formatter.exs), + maintainers: ["Josh Rotenberg"] + ] + end end