@@ -4,21 +4,19 @@ Simple test
4
4
The `dune build` should generate the opam file
5
5
6
6
$ cat > dune-project << EOF
7
- > (lang dune 3.18 )
7
+ > (lang dune 1.10 )
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)" )
14
13
>
15
14
> (generate_opam_files true)
16
15
>
17
16
> (package
18
17
> (name cohttp)
19
18
> (synopsis " An OCaml library for HTTP clients and servers" )
20
19
> (description " A longer description" )
21
- > (allow_empty)
22
20
> (depends
23
21
> (alcotest : with-test)
24
22
> (dune (and : build (> 1.5 )))
@@ -35,7 +33,6 @@ The `dune build` should generate the opam file
35
33
> A really long multi line description that spans across lines to
36
34
> make sure that the rendering of long strings stays compatible.
37
35
> " )
38
- > (allow_empty)
39
36
> (depends
40
37
> (cohttp (>= 1.0 . 2))
41
38
> (conduit-async (>= 1.0 . 3))
@@ -49,7 +46,6 @@ The `dune build` should generate the opam file
49
46
> A really long description that is supposed to start with a
50
47
> newline since it doesn't escape the line break.
51
48
> " )
52
- > (allow_empty)
53
49
> (depends
54
50
> (cohttp (>= 1.0 . 2))
55
51
> (conduit-lwt (>= 1.0 . 3))
@@ -62,114 +58,81 @@ The `dune build` should generate the opam file
62
58
$ cat cohttp. opam
63
59
# This file is generated by dune, edit dune-project instead
64
60
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"
65
71
version: " 1.0.0"
72
+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
66
73
synopsis: " An OCaml library for HTTP clients and servers"
67
74
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"
72
75
depends: [
73
- " dune" {>= " 3.18" }
74
76
" alcotest" {with-test}
75
77
" dune" {build & > " 1.5" }
76
78
" foo" {dev & > " 1.5" & < " 2.0" }
77
79
" uri" {>= " 1.9.0" }
78
80
" uri" {< " 2.0.0" }
79
81
" fieldslib" {> " v0.12" }
80
82
" fieldslib" {< " v0.13" }
81
- " odoc" {with-doc}
82
83
]
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)" ]
99
84
100
85
$ cat cohttp-async. opam
101
86
# This file is generated by dune, edit dune-project instead
102
87
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"
103
98
version: " 1.0.0"
99
+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
104
100
synopsis: " HTTP client and server for the Async library"
105
101
description: " " "
106
102
A really long multi line description that spans across lines to
107
103
make sure that the rendering of long strings stays compatible.
108
104
" " "
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"
113
105
depends: [
114
- " dune" {>= " 3.18" }
115
106
" cohttp" {>= " 1.0.2" }
116
107
" conduit-async" {>= " 1.0.3" }
117
108
" async" {>= " v0.10.0" }
118
109
" 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
- ]
134
110
]
135
- dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
136
- x-maintenance-intent: [" (latest)" ]
137
111
138
112
$ cat cohttp-lwt. opam
139
113
# This file is generated by dune, edit dune-project instead
140
114
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"
141
125
version: " 1.0.0"
126
+ dev-repo: " git+https://github.com/mirage/ocaml-cohttp.git"
142
127
synopsis: " HTTP client and server for the Lwt library"
143
128
description: " " "
144
129
145
130
A really long description that is supposed to start with a
146
131
newline since it doesn't escape the line break.
147
132
" " "
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"
152
133
depends: [
153
- " dune" {>= " 3.18" }
154
134
" cohttp" {>= " 1.0.2" }
155
135
" conduit-lwt" {>= " 1.0.3" }
156
136
" lwt" {>= " 5.0.0" }
157
137
" lwt" {< " 6.0.0" }
158
- " odoc" {with-doc}
159
138
]
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