@@ -4,19 +4,21 @@ Simple test
4
4
The `dune build` should generate the opam file
5
5
6
6
$ cat > dune-project << EOF
7
- > (lang dune 1.10 )
7
+ > (lang dune 3.18 )
8
8
> (version 1.0 . 0)
9
9
> (name cohttp)
10
10
> (source (github mirage/ ocaml-cohttp))
11
11
> (license ISC)
12
12
> (authors " Anil Madhavapeddy" " Rudi Grinberg" )
13
+ > (maintenance_intent " (latest)" )
13
14
>
14
15
> (generate_opam_files true)
15
16
>
16
17
> (package
17
18
> (name cohttp)
18
19
> (synopsis " An OCaml library for HTTP clients and servers" )
19
20
> (description " A longer description" )
21
+ > (allow_empty)
20
22
> (depends
21
23
> (alcotest : with-test)
22
24
> (dune (and : build (> 1.5 )))
@@ -33,6 +35,7 @@ The `dune build` should generate the opam file
33
35
> A really long multi line description that spans across lines to
34
36
> make sure that the rendering of long strings stays compatible.
35
37
> " )
38
+ > (allow_empty)
36
39
> (depends
37
40
> (cohttp (>= 1.0 . 2))
38
41
> (conduit-async (>= 1.0 . 3))
@@ -46,6 +49,7 @@ The `dune build` should generate the opam file
46
49
> A really long description that is supposed to start with a
47
50
> newline since it doesn't escape the line break.
48
51
> " )
52
+ > (allow_empty)
49
53
> (depends
50
54
> (cohttp (>= 1.0 . 2))
51
55
> (conduit-lwt (>= 1.0 . 3))
@@ -58,81 +62,113 @@ The `dune build` should generate the opam file
58
62
$ cat cohttp. opam
59
63
# This file is generated by dune, edit dune-project instead
60
64
opam-version: " 2.0"
61
- build: [
62
- [" dune" " subst" ] {pinned}
63
- [" dune" " build" " -p" name " -j" jobs]
64
- [" dune" " runtest" " -p" name " -j" jobs] {with-test}
65
- [" dune" " build" " -p" name " @ doc" ] {with-doc}
66
- ]
67
- authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
68
- bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
69
- homepage: " https://github.com/mirage/ocaml-cohttp"
70
- license: " ISC"
71
65
version: " 1.0.0"
72
- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
73
66
synopsis: " An OCaml library for HTTP clients and servers"
74
67
description: " A longer description"
68
+ authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
69
+ license: " ISC"
70
+ homepage: " https://github.com/mirage/ocaml-cohttp"
71
+ bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
75
72
depends: [
76
73
" alcotest" {with-test}
77
- " dune" {build & > " 1.5" }
74
+ " dune" {>= " 3.18 " & build & > " 1.5" }
78
75
" foo" {dev & > " 1.5" & < " 2.0" }
79
76
" uri" {>= " 1.9.0" }
80
77
" uri" {< " 2.0.0" }
81
78
" fieldslib" {> " v0.12" }
82
79
" fieldslib" {< " v0.13" }
80
+ " odoc" {with-doc}
83
81
]
82
+ build: [
83
+ [" dune" " subst" ] {dev}
84
+ [
85
+ " dune"
86
+ " build"
87
+ " -p"
88
+ name
89
+ " -j"
90
+ jobs
91
+ " @ install"
92
+ " @ runtest" {with-test}
93
+ " @ doc" {with-doc}
94
+ ]
95
+ ]
96
+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
97
+ x-maintenance-intent: [" (latest)" ]
84
98
85
99
$ cat cohttp-async. opam
86
100
# This file is generated by dune, edit dune-project instead
87
101
opam-version: " 2.0"
88
- build: [
89
- [" dune" " subst" ] {pinned}
90
- [" dune" " build" " -p" name " -j" jobs]
91
- [" dune" " runtest" " -p" name " -j" jobs] {with-test}
92
- [" dune" " build" " -p" name " @ doc" ] {with-doc}
93
- ]
94
- authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
95
- bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
96
- homepage: " https://github.com/mirage/ocaml-cohttp"
97
- license: " ISC"
98
102
version: " 1.0.0"
99
- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
100
103
synopsis: " HTTP client and server for the Async library"
101
104
description: " " "
102
105
A really long multi line description that spans across lines to
103
106
make sure that the rendering of long strings stays compatible.
104
107
" " "
108
+ authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
109
+ license: " ISC"
110
+ homepage: " https://github.com/mirage/ocaml-cohttp"
111
+ bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
105
112
depends: [
113
+ " dune" {>= " 3.18" }
106
114
" cohttp" {>= " 1.0.2" }
107
115
" conduit-async" {>= " 1.0.3" }
108
116
" async" {>= " v0.10.0" }
109
117
" async" {< " v0.12" }
118
+ " odoc" {with-doc}
119
+ ]
120
+ build: [
121
+ [" dune" " subst" ] {dev}
122
+ [
123
+ " dune"
124
+ " build"
125
+ " -p"
126
+ name
127
+ " -j"
128
+ jobs
129
+ " @ install"
130
+ " @ runtest" {with-test}
131
+ " @ doc" {with-doc}
132
+ ]
110
133
]
134
+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
135
+ x-maintenance-intent: [" (latest)" ]
111
136
112
137
$ cat cohttp-lwt. opam
113
138
# This file is generated by dune, edit dune-project instead
114
139
opam-version: " 2.0"
115
- build: [
116
- [" dune" " subst" ] {pinned}
117
- [" dune" " build" " -p" name " -j" jobs]
118
- [" dune" " runtest" " -p" name " -j" jobs] {with-test}
119
- [" dune" " build" " -p" name " @ doc" ] {with-doc}
120
- ]
121
- authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
122
- bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
123
- homepage: " https://github.com/mirage/ocaml-cohttp"
124
- license: " ISC"
125
140
version: " 1.0.0"
126
- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
127
141
synopsis: " HTTP client and server for the Lwt library"
128
142
description: " " "
129
143
130
144
A really long description that is supposed to start with a
131
145
newline since it doesn't escape the line break.
132
146
" " "
147
+ authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
148
+ license: " ISC"
149
+ homepage: " https://github.com/mirage/ocaml-cohttp"
150
+ bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
133
151
depends: [
152
+ " dune" {>= " 3.18" }
134
153
" cohttp" {>= " 1.0.2" }
135
154
" conduit-lwt" {>= " 1.0.3" }
136
155
" lwt" {>= " 5.0.0" }
137
156
" lwt" {< " 6.0.0" }
157
+ " odoc" {with-doc}
138
158
]
159
+ build: [
160
+ [" dune" " subst" ] {dev}
161
+ [
162
+ " dune"
163
+ " build"
164
+ " -p"
165
+ name
166
+ " -j"
167
+ jobs
168
+ " @ install"
169
+ " @ runtest" {with-test}
170
+ " @ doc" {with-doc}
171
+ ]
172
+ ]
173
+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
174
+ x-maintenance-intent: [" (latest)" ]
0 commit comments