Skip to content

Align package metadata with xmlephant (1.0 follow-up)#2

Merged
polymetis merged 2 commits into
mainfrom
claude/align-package-metadata
May 4, 2026
Merged

Align package metadata with xmlephant (1.0 follow-up)#2
polymetis merged 2 commits into
mainfrom
claude/align-package-metadata

Conversation

@polymetis
Copy link
Copy Markdown
Owner

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:

  • Drop maintainers: — Hex package owner attribution is managed via mix hex.owner, not metadata. Single-maintainer packages don't gain anything from the duplicate.
  • Move description into package/0 — Hex reads it from either project- or package-level, but it's package metadata, so it lives there.
  • Add .formatter.exs to :files — contributors who clone from the Hex tarball now get the formatter config so mix format works.

Verified via mix hex.build: .formatter.exs is in the resulting tarball alongside lib/, mix.exs, README.md, LICENSE.md, CHANGELOG.md.

Test plan

  • mix test — should pass (4/4)
  • mix hex.build — should succeed; inspect tarball with tar -xOzf ex_clacks-1.0.0.tar contents.tar.gz | tar -tzf - to confirm .formatter.exs ships
  • Eyeball the resulting mix.exs — package map shape preserved, description inside package/0, no maintainers key

🤖 Generated with Claude Code

polymetis and others added 2 commits May 3, 2026 20:36
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>
@polymetis polymetis merged commit 984950a into main May 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant