opam-publish

A tool to ease contributions to opam repositories
README

A tool to ease contributions to opam repositories.

opam-publish takes package definition files of your projects, and submits
them to opam package repositories
(ocaml/opam-repository by default).

Prerequisites

This version is for opam 2.0.0, and should not be used with repositories in
older formats. A Github account is required. opam repository is cloned over
ssh, you need to have your ssh keys registered in your Github
account
.

Usage

Basic case, assuming your project is on Github

The same works for initial publications, new releases, and updates.

The following should be run from the source directory of your project

  1. Make sure you have an opam file, or NAME.opam files at the root of your
    project

  2. Create a tag: git tag -a TAG; git push origin TAG

  3. Run opam publish. This will install the tool if required.

You will be guided through the rest (creating a Github token the first time,
reviewing the patch, etc.)

Additional possibilities

If your project is not on Github, you can specify the archive URL on the
command-line.

If the opam files are not in the archive, or outdated, you can specify them
on the command-line, or specify a directory where to look for them (e.g. opam publish URL .).

Submitting to other repositories is possible, as long as they are on Github.
See the --repo option.

Updating already published packages is also allowed (as long as they don't
use a files/ subdirectory)..

See opam publish --help for more options.

Install
Published
01 Jul 2021
Sources
2.1.0.tar.gz
md5=b791b4b43a762b8b9168d073eddb7cb1
sha512=37914b4426af9c0776d66a028cb204c38dadb269e3179676957154c06e45dc5e60a828dd295d099f15661ab8dcffaebb96f02f5dc91c9d66dec4aac97e6576c6
Dependencies
github-unix
>= "4.3.2"
github
>= "4.3.2"
opam-state
>= "2.1.0~rc"
opam-format
>= "2.1.0~rc"
opam-core
>= "2.1.0~rc"
ocaml
>= "4.03.0"
dune
>= "1.0"
cmdliner
>= "1.0.0"
Reverse Dependencies
dune-release
< "0.2.0"
publish
>= "0.3.4+transition"
spectrum
< "0.2.0"