package opam-publish

  1. Overview
  2. Docs
A tool to ease contributions to opam repositories

Install

Dune Dependency

Authors

Maintainers

Sources

2.0.1.tar.gz
md5=2d8fcf689db536d555a47686ada07c30
sha512=8214f1ec88b545b9aed93d6baf1dce6295372eaf6421b17fac7579e1318bd02ad5a4fc5e4754fb6ff92821deb433d8925265a184e5d0f841314bfce625ce3f62

Description

Opam-publish helps gather metadata to form an OPAM package and submit it to a remote repository.

Tags

flags:plugin

Published: 11 Oct 2018

README

opam-publish

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.

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.

Dependencies (11)

  1. github-unix build & >= "3.0.0" & < "4.3.0"
  2. github build & >= "2.0.0" & < "3.0.0"
  3. tls
  4. ssl build & = "0.5.5"
  5. lwt_ssl
  6. cmdliner build
  7. jbuilder >= "1.0+beta19"
  8. opam-state build & >= "2.0.0" & < "2.1"
  9. opam-format build & >= "2.0.0" & < "2.1"
  10. opam-core build & >= "2.0.0" & < "2.1"
  11. ocaml >= "4.02.3"

Dev Dependencies

None

Used by (3)

  1. dune-release < "0.2.0"
  2. publish >= "0.3.4+transition"
  3. spectrum < "0.2.0"

Conflicts

None