Skip to content

Commit 625afd5

Browse files
committed
Update .opam files to opam 2 format
Resolves ocsigen#639.
1 parent 3401f28 commit 625afd5

4 files changed

Lines changed: 66 additions & 61 deletions

File tree

docs/descr

Lines changed: 0 additions & 10 deletions
This file was deleted.

lwt.opam

Lines changed: 35 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,57 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
2+
3+
synopsis: "Promises and event-driven I/O"
4+
25
version: "dev"
3-
maintainer: [
4-
"Anton Bachin <antonbachin@yahoo.com>"
5-
"Mauricio Fernandez <mfp@acm.org>"
6-
"Simon Cruanes <simon.cruanes.2007@m4x.org>"
7-
]
8-
authors: [
9-
"Jérôme Vouillon"
10-
"Jérémie Dimino"
11-
]
6+
license: "MIT"
127
homepage: "https://github.com/ocsigen/lwt"
138
doc: "https://ocsigen.org/lwt/manual/"
149
bug-reports: "https://github.com/ocsigen/lwt/issues"
15-
license: "MIT"
16-
dev-repo: "https://github.com/ocsigen/lwt.git"
1710

18-
build: [
19-
[ "dune" "build" "-p" name "-j" jobs ]
11+
authors: [
12+
"Jérôme Vouillon"
13+
"Jérémie Dimino"
14+
]
15+
maintainer: [
16+
"Anton Bachin <antonbachin@yahoo.com>"
17+
"Mauricio Fernandez <mfp@acm.org>"
18+
"Simon Cruanes <simon.cruanes.2007@m4x.org>"
2019
]
20+
dev-repo: "git+https://github.com/ocsigen/lwt.git"
2121

2222
depends: [
23-
# Bisect_ppx is used only during development. This dependency should be
24-
# removed when preparing a release.
25-
"bisect_ppx" {>= "1.3.0"}
26-
# ocamlfind is a development dependency of the test suite.
27-
"ocamlfind" {>= "1.7.3-1"}
2823
"cppo" {build & >= "1.1.0"}
2924
"dune" {build}
30-
# result is needed as long as Lwt still supports OCaml 4.02.
31-
"result"
32-
# seq is needed as long as Lwt still supports OCaml < 4.07.0
33-
"seq"
25+
"ocaml" {>= "4.02.0"}
26+
"result" # result is needed as long as Lwt supports OCaml 4.02.
27+
"seq" # seq is needed as long as Lwt supports OCaml < 4.07.0.
28+
29+
"bisect_ppx" {dev & >= "1.3.0"}
30+
"ocamlfind" {dev & >= "1.7.3-1"}
3431
]
3532
depopts: [
3633
"base-threads"
3734
"base-unix"
3835
"conf-libev"
3936
]
37+
4038
conflicts: [
39+
"ocaml" {= "4.02.1+BER"}
4140
# ocamlfind 1.7.3-1 is the earliest release whose built-in "threads" package
4241
# does not have incorrect error lines. See
4342
# https://github.com/ocaml/opam-repository/pull/11071#issuecomment-353131128
4443
"ocamlfind" {< "1.7.3-1"}
4544
]
46-
# In practice, Lwt requires OCaml >= 4.02.3, as that is a constraint of the
47-
# dependency Dune.
48-
available: [ocaml-version >= "4.02.0" & compiler != "4.02.1+BER"]
45+
46+
build: [
47+
[ "dune" "build" "-p" name "-j" jobs ]
48+
]
49+
50+
description: "A promise is a value that may become determined in the future.
51+
52+
Lwt provides typed, composable promises. Promises that are resolved by I/O are
53+
resolved by Lwt in parallel.
54+
55+
Meanwhile, OCaml code, including code creating and waiting on promises, runs in
56+
a single thread by default. This reduces the need for locks or other
57+
synchronization primitives. Code can be run in parallel on an opt-in basis."

lwt_ppx.opam

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
2+
3+
synopsis: "PPX syntax for Lwt, providing something similar to async/await from JavaScript"
4+
25
version: "dev"
3-
maintainer: [
4-
"Anton Bachin <antonbachin@yahoo.com>"
5-
]
6-
authors: [
7-
"Gabriel Radanne"
8-
]
6+
license: "MIT"
97
homepage: "https://github.com/ocsigen/lwt"
108
doc: "https://ocsigen.org/lwt/api/Ppx_lwt"
11-
dev-repo: "https://github.com/ocsigen/lwt.git"
129
bug-reports: "https://github.com/ocsigen/lwt/issues"
13-
license: "MIT"
10+
11+
authors: [
12+
"Gabriel Radanne"
13+
]
14+
maintainer: [
15+
"Anton Bachin <antonbachin@yahoo.com>"
16+
]
17+
dev-repo: "git+https://github.com/ocsigen/lwt.git"
1418

1519
depends: [
1620
"dune" {build}
1721
"lwt"
22+
"ocaml" {>= "4.02.0"}
1823
"ocaml-migrate-parsetree"
1924
"ppx_tools_versioned" {>= "5.0.1"}
2025
]
21-
# The Lwt PPX uses the %reraise primitive, which is available on OCaml >= 4.02.
22-
# Even though OCaml PPX itself requires 4.02, we add this constraint for
23-
# thoroughness and safety.
24-
available: [ocaml-version >= "4.02.0"]
2526

2627
build: [
2728
["dune" "build" "-p" name "-j" jobs]

lwt_react.opam

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
1-
opam-version: "1.2"
1+
opam-version: "2.0"
2+
3+
synopsis: "Helpers for using React with Lwt"
4+
25
version: "dev"
6+
license: "MIT"
7+
homepage: "https://github.com/ocsigen/lwt"
8+
doc: "https://ocsigen.org/lwt/api/Lwt_react"
9+
bug-reports: "https://github.com/ocsigen/lwt/issues"
10+
11+
authors: [
12+
"Jérémie Dimino"
13+
]
314
maintainer: [
415
"Anton Bachin <antonbachin@yahoo.com>"
516
"Mauricio Fernandez <mfp@acm.org>"
617
"Simon Cruanes <simon.cruanes.2007@m4x.org>"
718
]
8-
authors: [
9-
"Jérémie Dimino"
10-
]
11-
homepage: "https://github.com/ocsigen/lwt"
12-
doc: "https://ocsigen.org/lwt/api/Lwt_react"
13-
dev-repo: "https://github.com/ocsigen/lwt.git"
14-
bug-reports: "https://github.com/ocsigen/lwt/issues"
15-
license: "MIT"
16-
17-
build: [ [ "dune" "build" "-p" name "-j" jobs ] ]
18-
build-test: [ [ "dune" "runtest" "-p" name ] ]
19+
dev-repo: "git+https://github.com/ocsigen/lwt.git"
1920

2021
depends: [
2122
"dune" {build}
2223
"lwt" {>= "3.0.0"}
2324
"react" {>= "1.0.0"}
2425
]
26+
27+
build: [
28+
["dune" "build" "-p" name "-j" jobs]
29+
]

0 commit comments

Comments
 (0)