Skip to content

Commit 5bbc5ea

Browse files
anmonteirojordwalke
authored andcommitted
Upgrade the OPAM files to the 2.0 format (#2244)
Also add docs about releasing manually to OPAM
1 parent 093433e commit 5bbc5ea

File tree

4 files changed

+25
-15
lines changed

4 files changed

+25
-15
lines changed

descr

-5
This file was deleted.

reason.opam

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
22
maintainer: "Jordan Walke <[email protected]>"
33
authors: [ "Jordan Walke <[email protected]>" ]
44
license: "MIT"
@@ -9,14 +9,19 @@ dev-repo: "git://github.com/facebook/reason.git"
99
tags: [ "syntax" ]
1010
build: [
1111
["dune" "build" "-p" name "-j" jobs]
12+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
1213
]
13-
build-test: [["dune" "runtest" "-p" name "-j" jobs]]
1414
depends: [
15-
"dune" {build & >= "1.4"}
16-
"ocamlfind" {build}
17-
"menhir" {>= "20170418"}
18-
"merlin-extend" {>= "0.3"}
15+
"ocaml" {>= "4.02" & < "4.08"}
16+
"dune" {build & >= "1.4"}
17+
"ocamlfind" {build}
18+
"menhir" {>= "20170418"}
19+
"merlin-extend" {>= "0.3"}
1920
"result"
2021
"ocaml-migrate-parsetree"
2122
]
22-
available: [ ocaml-version >= "4.02" & ocaml-version < "4.08" ]
23+
synopsis: "Reason: Syntax & Toolchain for OCaml"
24+
description: """
25+
Reason gives OCaml a new syntax that is remniscient of languages like
26+
JavaScript. It's also the umbrella project for a set of tools for the OCaml &
27+
JavaScript ecosystem."""

rtop.opam

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
22
maintainer: "Jordan Walke <[email protected]>"
33
authors: [ "Jordan Walke <[email protected]>" ]
44
license: "MIT"
@@ -9,11 +9,11 @@ dev-repo: "git://github.com/facebook/reason.git"
99
tags: [ "syntax" ]
1010
build: [
1111
["dune" "build" "-p" name "-j" jobs]
12+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
1213
]
13-
build-test: [["dune" "runtest" "-p" name "-j" jobs]]
1414
depends: [
15+
"ocaml" {>= "4.02" & < "4.08"}
1516
"dune" {build}
1617
"reason"
1718
"utop" {>= "1.17"}
1819
]
19-
available: [ ocaml-version >= "4.02" & ocaml-version < "4.08" ]

src/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,16 @@ env version=x.y.z make release
306306

307307
- Use [opam-publish](https://github.com/ocaml/opam-publish) to publish the latest version to opam.
308308

309+
#### Releasing to OPAM manually
310+
311+
Typically Reason will be released to NPM first (through Esy). To manually release
312+
to OPAM, simply:
313+
314+
1. Copy the `.opam` file(s) in this repo
315+
2. Add a `url` clause ([example](https://github.com/ocaml/opam-repository/blob/a55812366d555a5d2ba45cba01fbdab49e459515/packages/reason/reason.3.2.0/opam#L28-L31)) with the place where to find the release tarball.
316+
3. Submit a PR to the [OPAM repository](https://github.com/ocaml/opam-repository) under e.g.
317+
`packages/reason/reason.X.Y.Z/opam`.
318+
309319
### Esy Releases
310320

311321
Cutting a release of esy versions is a good way to get packages out there for

0 commit comments

Comments
 (0)