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