Align package metadata with xmlephant (1.0 follow-up)#2
Merged
Conversation
Matches the convention in xmlephant. Single-maintainer attribution duplicates the Hex package owner (managed via `mix hex.owner`) without adding information. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Move `description` from project-level into `package/0` (Hex reads from either, but it's package metadata, so it lives there). - Add `.formatter.exs` to the `:files` whitelist so contributors who clone from the Hex tarball get the formatter config. Confirmed via `mix hex.build` — `.formatter.exs` is in the tarball. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The 1.0 release PR (#1) merged at commit
be8962b, but two commits pushed to that branch shortly before merge didn't make it in. This PR lands them.Both align ex_clacks' package metadata with the convention used in
xmlephant:maintainers:— Hex package owner attribution is managed viamix hex.owner, not metadata. Single-maintainer packages don't gain anything from the duplicate.descriptionintopackage/0— Hex reads it from either project- or package-level, but it's package metadata, so it lives there..formatter.exsto:files— contributors who clone from the Hex tarball now get the formatter config somix formatworks.Verified via
mix hex.build:.formatter.exsis in the resulting tarball alongsidelib/,mix.exs,README.md,LICENSE.md,CHANGELOG.md.Test plan
mix test— should pass (4/4)mix hex.build— should succeed; inspect tarball withtar -xOzf ex_clacks-1.0.0.tar contents.tar.gz | tar -tzf -to confirm.formatter.exsshipsmix.exs— package map shape preserved, description insidepackage/0, nomaintainerskey🤖 Generated with Claude Code