Skip to content

Commit 2e25a7b

Browse files
authored
Merge pull request #227 from avsm/gen-opam-files
autogenerate the opam files via dune 1.10 support
2 parents 04140e6 + 0db6bbd commit 2e25a7b

File tree

5 files changed

+124
-54
lines changed

5 files changed

+124
-54
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 4.2.0 (2019-06-17)
2+
3+
- Add repository permissions support (#226 @Aaylor)
4+
- Regenerate opam files automatically via dune-project (@avsm)
5+
16
## 4.1.0 (2019-06-03)
27

38
- Add the interface for `/user/orgs` (#222 @Aaylor)

dune-project

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,63 @@
1-
(lang dune 1.2)
1+
(lang dune 1.10)
22
(name github)
3+
4+
(generate_opam_files true)
5+
6+
(license MIT)
7+
(maintainers "Anil Madhavapeddy <[email protected]>")
8+
(authors "Anil Madhavapeddy" "David Sheets" "Andy Ray"
9+
"Jeff Hammerbacher" "Thomas Gazagnaire" "Rudi Grinberg"
10+
"Qi Li" "Jeremy Yallop" "Dave Tucker")
11+
(source (github mirage/ocaml-github))
12+
(documentation "https://mirage.github.io/ocaml-github/")
13+
14+
(package
15+
(name github)
16+
(tags (org:mirage org:xapi-project git))
17+
(depends
18+
(ocaml (>= 4.03.0))
19+
(dune (>= 1.10))
20+
(uri (>= 1.9.0))
21+
(cohttp (>= 0.99.0))
22+
(cohttp-lwt (>= 0.99))
23+
(lwt (>= 2.4.4))
24+
(atdgen (>= 2.0.0))
25+
(yojson (>= 1.6.0))
26+
stringext)
27+
(synopsis "GitHub APIv3 OCaml library")
28+
(description "This library provides an OCaml interface to the
29+
[GitHub APIv3](https://developer.github.com/v3/) (JSON).
30+
31+
It is compatible with [MirageOS](https://mirage.io) and also compiles to pure
32+
JavaScript via [js_of_ocaml](http://ocsigen.org/js_of_ocaml)."))
33+
34+
(package
35+
(name github-jsoo)
36+
(tags (org:mirage org:xapi-project git))
37+
(depends
38+
(ocaml (>= 4.03.0))
39+
(dune (>= 1.10))
40+
(github (= :version))
41+
(cohttp (>= 0.99.0))
42+
(cohttp-lwt-jsoo (>= 0.99.0))
43+
(js_of_ocaml-lwt (>= 3.4.0)))
44+
(synopsis "GitHub APIv3 JavaScript library")
45+
(description "This library provides an OCaml interface to the [GitHub APIv3](https://developer.github.com/v3/)
46+
(JSON). This library installs the JavaScript version, which uses [js_of_ocaml](http://ocsigen.org/js_of_ocaml)."))
47+
48+
(package
49+
(name github-unix)
50+
(tags (org:mirage org:xapi-project git))
51+
(depends
52+
(ocaml (>= 4.03.0))
53+
(dune (>= 1.10))
54+
(github (= :version))
55+
(cohttp (>= 0.99.0))
56+
(cohttp-lwt-unix (>= 0.99.0))
57+
stringext
58+
(lambda-term (>= 2.0))
59+
(cmdliner (>= 0.9.8))
60+
base-unix)
61+
(synopsis "GitHub APIv3 Unix library")
62+
(description "This library provides an OCaml interface to the [GitHub APIv3](https://developer.github.com/v3/)
63+
(JSON). This package installs the Unix (Lwt) version."))

github-jsoo.opam

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
2-
maintainer: "[email protected]"
3-
synopsis: "GitHub APIv3 JavaScript library"
4-
description: """
5-
This library provides an OCaml interface to the [GitHub APIv3](https://developer.github.com/v3/)
6-
(JSON). This library installs the JavaScript version, which uses [js_of_ocaml](http://ocsigen.org/js_of_ocaml).
7-
"""
8-
3+
build: [
4+
["dune" "subst"] {pinned}
5+
["dune" "build" "-p" name "-j" jobs]
6+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
7+
["dune" "build" "-p" name "@doc"] {with-doc}
8+
]
9+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
910
authors: [
1011
"Anil Madhavapeddy"
1112
"David Sheets"
@@ -17,21 +18,20 @@ authors: [
1718
"Jeremy Yallop"
1819
"Dave Tucker"
1920
]
20-
tags: ["org:mirage" "org:xapi-project" "git"]
21+
bug-reports: "https://github.com/mirage/ocaml-github/issues"
2122
homepage: "https://github.com/mirage/ocaml-github"
2223
doc: "https://mirage.github.io/ocaml-github/"
23-
bug-reports: "https://github.com/mirage/ocaml-github/issues"
24+
license: "MIT"
25+
dev-repo: "git+https://github.com/mirage/ocaml-github.git"
26+
synopsis: "GitHub APIv3 JavaScript library"
27+
description: """
28+
This library provides an OCaml interface to the [GitHub APIv3](https://developer.github.com/v3/)
29+
(JSON). This library installs the JavaScript version, which uses [js_of_ocaml](http://ocsigen.org/js_of_ocaml)."""
2430
depends: [
2531
"ocaml" {>= "4.03.0"}
26-
"dune" {build}
32+
"dune" {>= "1.10"}
33+
"github" {= version}
2734
"cohttp" {>= "0.99.0"}
2835
"cohttp-lwt-jsoo" {>= "0.99.0"}
29-
"js_of_ocaml-lwt" {>="3.4.0"}
30-
"github"
36+
"js_of_ocaml-lwt" {>= "3.4.0"}
3137
]
32-
build: [
33-
["dune" "subst"] {pinned}
34-
["dune" "build" "-p" name "-j" jobs]
35-
["dune" "runtest" "-p" name] {with-test}
36-
]
37-
dev-repo: "git+https://github.com/mirage/ocaml-github.git"

github-unix.opam

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
2-
maintainer: "[email protected]"
3-
synopsis: "GitHub APIv3 Unix library"
4-
description: """
5-
This library provides an OCaml interface to the [GitHub APIv3](https://developer.github.com/v3/)
6-
(JSON). This package installs the Unix (Lwt) version.
7-
"""
3+
build: [
4+
["dune" "subst"] {pinned}
5+
["dune" "build" "-p" name "-j" jobs]
6+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
7+
["dune" "build" "-p" name "@doc"] {with-doc}
8+
]
9+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
810
authors: [
911
"Anil Madhavapeddy"
1012
"David Sheets"
@@ -16,23 +18,23 @@ authors: [
1618
"Jeremy Yallop"
1719
"Dave Tucker"
1820
]
19-
tags: ["org:mirage" "org:xapi-project" "git"]
21+
bug-reports: "https://github.com/mirage/ocaml-github/issues"
2022
homepage: "https://github.com/mirage/ocaml-github"
2123
doc: "https://mirage.github.io/ocaml-github/"
22-
bug-reports: "https://github.com/mirage/ocaml-github/issues"
24+
license: "MIT"
25+
dev-repo: "git+https://github.com/mirage/ocaml-github.git"
26+
synopsis: "GitHub APIv3 Unix library"
27+
description: """
28+
This library provides an OCaml interface to the [GitHub APIv3](https://developer.github.com/v3/)
29+
(JSON). This package installs the Unix (Lwt) version."""
2330
depends: [
2431
"ocaml" {>= "4.03.0"}
25-
"dune"
26-
"github" {=version}
27-
"cohttp-lwt-unix"
32+
"dune" {>= "1.10"}
33+
"github" {= version}
34+
"cohttp" {>= "0.99.0"}
35+
"cohttp-lwt-unix" {>= "0.99.0"}
2836
"stringext"
29-
"lambda-term" {>="2.0"}
37+
"lambda-term" {>= "2.0"}
3038
"cmdliner" {>= "0.9.8"}
3139
"base-unix"
3240
]
33-
build: [
34-
["dune" "subst"] {pinned}
35-
["dune" "build" "-p" name "-j" jobs]
36-
["dune" "runtest" "-p" name] {with-test}
37-
]
38-
dev-repo: "git+https://github.com/mirage/ocaml-github.git"

github.opam

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
2-
maintainer: "[email protected]"
3-
synopsis: "GitHub APIv3 OCaml library"
4-
description: """
5-
This library provides an OCaml interface to the [GitHub APIv3](https://developer.github.com/v3/)
6-
(JSON). It is compatible with [MirageOS](https://mirage.io) and also compiles to pure
7-
JavaScript via [js_of_ocaml](http://ocsigen.org/js_of_ocaml).
8-
"""
9-
3+
build: [
4+
["dune" "subst"] {pinned}
5+
["dune" "build" "-p" name "-j" jobs]
6+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
7+
["dune" "build" "-p" name "@doc"] {with-doc}
8+
]
9+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
1010
authors: [
1111
"Anil Madhavapeddy"
1212
"David Sheets"
@@ -18,13 +18,21 @@ authors: [
1818
"Jeremy Yallop"
1919
"Dave Tucker"
2020
]
21-
tags: ["org:mirage" "org:xapi-project" "git"]
21+
bug-reports: "https://github.com/mirage/ocaml-github/issues"
2222
homepage: "https://github.com/mirage/ocaml-github"
2323
doc: "https://mirage.github.io/ocaml-github/"
24-
bug-reports: "https://github.com/mirage/ocaml-github/issues"
24+
license: "MIT"
25+
dev-repo: "git+https://github.com/mirage/ocaml-github.git"
26+
synopsis: "GitHub APIv3 OCaml library"
27+
description: """
28+
This library provides an OCaml interface to the
29+
[GitHub APIv3](https://developer.github.com/v3/) (JSON).
30+
31+
It is compatible with [MirageOS](https://mirage.io) and also compiles to pure
32+
JavaScript via [js_of_ocaml](http://ocsigen.org/js_of_ocaml)."""
2533
depends: [
2634
"ocaml" {>= "4.03.0"}
27-
"dune"
35+
"dune" {>= "1.10"}
2836
"uri" {>= "1.9.0"}
2937
"cohttp" {>= "0.99.0"}
3038
"cohttp-lwt" {>= "0.99"}
@@ -33,9 +41,3 @@ depends: [
3341
"yojson" {>= "1.6.0"}
3442
"stringext"
3543
]
36-
build: [
37-
["dune" "subst"] {pinned}
38-
["dune" "build" "-p" name "-j" jobs]
39-
["dune" "runtest" "-p" name] {with-test}
40-
]
41-
dev-repo: "git+https://github.com/mirage/ocaml-github.git"

0 commit comments

Comments
 (0)