Skip to content

Commit

Permalink
require dune 3.0, use proper mdx stanza
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Dec 31, 2023
1 parent e3a49e0 commit f3c34c2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
12 changes: 4 additions & 8 deletions dune
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
(rule
(alias runtest)
(deps
(:readme README.md))

(mdx
(package printbox-html)
(action
(progn
(run ocaml-mdx test %{readme})
(diff? %{readme} %{readme}.corrected))))
(libraries printbox printbox-text printbox-html)
(files README.md))
3 changes: 2 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
(lang dune 2.0)
(lang dune 3.0)
(name printbox)
(using mdx 0.2)
(generate_opam_files true)
(version 0.7)
(license "BSD-2-Clause")
Expand Down
5 changes: 3 additions & 2 deletions printbox-html.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ license: "BSD-2-Clause"
homepage: "https://github.com/c-cube/printbox"
bug-reports: "https://github.com/c-cube/printbox/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"printbox" {= version}
"printbox-text" {= version & with-test}
"odoc" {with-test}
"tyxml" {>= "4.3"}
"mdx" {>= "1.4" & with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
5 changes: 3 additions & 2 deletions printbox-text.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ license: "BSD-2-Clause"
homepage: "https://github.com/c-cube/printbox"
bug-reports: "https://github.com/c-cube/printbox/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"printbox" {= version}
"uutf" {>= "1.0"}
"uucp" {>= "2.0"}
"odoc" {with-test}
"mdx" {>= "1.4" & with-test}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
4 changes: 2 additions & 2 deletions printbox.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ tags: ["print" "box" "table" "tree"]
homepage: "https://github.com/c-cube/printbox"
bug-reports: "https://github.com/c-cube/printbox/issues"
depends: [
"dune" {>= "2.0"}
"dune" {>= "3.0"}
"ocaml" {>= "4.08"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
3 changes: 3 additions & 0 deletions test/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

(env
(_ (flags :standard -warn-error -a)))

(test
(name test_ann_0_3)
(modules test_ann_0_3)
Expand Down
2 changes: 1 addition & 1 deletion test/test1.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module Box_in = struct
let () = print_endline @@ PrintBox_text.to_string b
end

let b =
let _b =
let open PrintBox in
frame @@ record [
("subject", text_with_style Style.bold "announce: printbox 0.3");
Expand Down

0 comments on commit f3c34c2

Please sign in to comment.