Hackage Upload
Instructions
When the user asks to publish or upload to Hackage:
- •
Do not continue until release metadata is updated:
- •
openai.cabalversion has been bumped to the new release version - •
CHANGELOG.mdhas a top entry for that same version - •Verify with:
bash
grep "^version:" openai.cabal sed -n '1,20p' CHANGELOG.md
- •
- •
Get the current version from
openai.cabal:bashgrep "^version:" openai.cabal
- •
Create the source distribution:
bashcabal sdist
- •
Upload to Hackage (replace X.Y.Z with actual version):
bashcabal upload --publish dist-newstyle/sdist/openai-X.Y.Z.tar.gz
Pre-release checklist
Before uploading, ensure:
- •Version in
openai.cabalhas been bumped to the release version - •
CHANGELOG.mdhas a top entry for that exact same version - •All tests pass (
cabal test) - •Code compiles without warnings (
cabal build)
Notes
- •The
--publishflag publishes immediately. Without it, the package is uploaded as a candidate. - •You must have Hackage credentials configured (typically in
~/.cabal/config). - •First-time uploads of a package require manual approval on Hackage.