@@ -4,19 +4,21 @@ Simple test
44The `dune build` should generate the opam file
55
66 $ cat > dune-project << EOF
7- > (lang dune 1.10 )
7+ > (lang dune 3.18 )
88 > (version 1.0 . 0)
99 > (name cohttp)
1010 > (source (github mirage/ ocaml-cohttp))
1111 > (license ISC)
1212 > (authors " Anil Madhavapeddy" " Rudi Grinberg" )
13+ > (maintenance_intent " (latest)" )
1314 >
1415 > (generate_opam_files true)
1516 >
1617 > (package
1718 > (name cohttp)
1819 > (synopsis " An OCaml library for HTTP clients and servers" )
1920 > (description " A longer description" )
21+ > (allow_empty)
2022 > (depends
2123 > (alcotest : with-test)
2224 > (dune (and : build (> 1.5 )))
@@ -33,6 +35,7 @@ The `dune build` should generate the opam file
3335 > A really long multi line description that spans across lines to
3436 > make sure that the rendering of long strings stays compatible.
3537 > " )
38+ > (allow_empty)
3639 > (depends
3740 > (cohttp (>= 1.0 . 2))
3841 > (conduit-async (>= 1.0 . 3))
@@ -46,6 +49,7 @@ The `dune build` should generate the opam file
4649 > A really long description that is supposed to start with a
4750 > newline since it doesn't escape the line break.
4851 > " )
52+ > (allow_empty)
4953 > (depends
5054 > (cohttp (>= 1.0 . 2))
5155 > (conduit-lwt (>= 1.0 . 3))
@@ -58,81 +62,114 @@ The `dune build` should generate the opam file
5862 $ cat cohttp. opam
5963 # This file is generated by dune, edit dune-project instead
6064 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"
7165 version: " 1.0.0"
72- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
7366 synopsis: " An OCaml library for HTTP clients and servers"
7467 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"
7572 depends: [
73+ " dune" {>= " 3.18" }
7674 " alcotest" {with-test}
7775 " dune" {build & > " 1.5" }
7876 " foo" {dev & > " 1.5" & < " 2.0" }
7977 " uri" {>= " 1.9.0" }
8078 " uri" {< " 2.0.0" }
8179 " fieldslib" {> " v0.12" }
8280 " fieldslib" {< " v0.13" }
81+ " odoc" {with-doc}
8382 ]
83+ build: [
84+ [" dune" " subst" ] {dev}
85+ [
86+ " dune"
87+ " build"
88+ " -p"
89+ name
90+ " -j"
91+ jobs
92+ " @ install"
93+ " @ runtest" {with-test}
94+ " @ doc" {with-doc}
95+ ]
96+ ]
97+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
98+ x-maintenance-intent: [" (latest)" ]
8499
85100 $ cat cohttp-async. opam
86101 # This file is generated by dune, edit dune-project instead
87102 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"
98103 version: " 1.0.0"
99- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
100104 synopsis: " HTTP client and server for the Async library"
101105 description: " " "
102106 A really long multi line description that spans across lines to
103107 make sure that the rendering of long strings stays compatible.
104108 " " "
109+ authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
110+ license: " ISC"
111+ homepage: " https://github.com/mirage/ocaml-cohttp"
112+ bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
105113 depends: [
114+ " dune" {>= " 3.18" }
106115 " cohttp" {>= " 1.0.2" }
107116 " conduit-async" {>= " 1.0.3" }
108117 " async" {>= " v0.10.0" }
109118 " async" {< " v0.12" }
119+ " odoc" {with-doc}
120+ ]
121+ build: [
122+ [" dune" " subst" ] {dev}
123+ [
124+ " dune"
125+ " build"
126+ " -p"
127+ name
128+ " -j"
129+ jobs
130+ " @ install"
131+ " @ runtest" {with-test}
132+ " @ doc" {with-doc}
133+ ]
110134 ]
135+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
136+ x-maintenance-intent: [" (latest)" ]
111137
112138 $ cat cohttp-lwt. opam
113139 # This file is generated by dune, edit dune-project instead
114140 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"
125141 version: " 1.0.0"
126- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
127142 synopsis: " HTTP client and server for the Lwt library"
128143 description: " " "
129144
130145 A really long description that is supposed to start with a
131146 newline since it doesn't escape the line break.
132147 " " "
148+ authors: [" Anil Madhavapeddy" " Rudi Grinberg" ]
149+ license: " ISC"
150+ homepage: " https://github.com/mirage/ocaml-cohttp"
151+ bug-reports: " https://github.com/mirage/ocaml-cohttp/issues"
133152 depends: [
153+ " dune" {>= " 3.18" }
134154 " cohttp" {>= " 1.0.2" }
135155 " conduit-lwt" {>= " 1.0.3" }
136156 " lwt" {>= " 5.0.0" }
137157 " lwt" {< " 6.0.0" }
158+ " odoc" {with-doc}
138159 ]
160+ build: [
161+ [" dune" " subst" ] {dev}
162+ [
163+ " dune"
164+ " build"
165+ " -p"
166+ name
167+ " -j"
168+ jobs
169+ " @ install"
170+ " @ runtest" {with-test}
171+ " @ doc" {with-doc}
172+ ]
173+ ]
174+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
175+ x-maintenance-intent: [" (latest)" ]
0 commit comments