From 714fb71823c49432b76f90b389c0fd67e909c68a Mon Sep 17 00:00:00 2001 From: xvw Date: Fri, 4 Oct 2024 15:07:38 +0200 Subject: [PATCH] `ppx_expect` is not only available in test context --- dune-project | 24 ++++++++++++------------ yocaml.opam | 2 +- yocaml_cmarkit.opam | 2 +- yocaml_eio.opam | 2 +- yocaml_git.opam | 2 +- yocaml_jingoo.opam | 2 +- yocaml_mustache.opam | 2 +- yocaml_omd.opam | 2 +- yocaml_otoml.opam | 2 +- yocaml_runtime.opam | 2 +- yocaml_syndication.opam | 2 +- yocaml_unix.opam | 2 +- yocaml_yaml.opam | 2 +- 13 files changed, 24 insertions(+), 24 deletions(-) diff --git a/dune-project b/dune-project index e799c9e..b627340 100644 --- a/dune-project +++ b/dune-project @@ -24,7 +24,7 @@ (alcotest :with-test) (qcheck :with-test) (qcheck-alcotest :with-test) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (ocamlformat :with-dev-setup) (ocp-indent :with-dev-setup) @@ -37,7 +37,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (yocaml (= :version)) (cohttp (>= 5.3.11)) @@ -52,7 +52,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (yocaml (= :version)) (yocaml_runtime (= :version)) @@ -66,7 +66,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (httpcats (>= 0.0.1)) (yocaml (= :version)) @@ -78,7 +78,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (yocaml (= :version)) (yaml (>= 3.2.0)))) @@ -89,7 +89,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (yocaml (= :version)) (otoml (>= 1.0.5)))) @@ -101,7 +101,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (yocaml (= :version)) (omd (>= 2.0.0~alpha4)))) @@ -112,7 +112,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (yocaml (= :version)) cmarkit)) @@ -123,7 +123,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (yocaml (= :version)) (jingoo (>= 1.5.0)))) @@ -134,7 +134,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (yocaml (= :version)) (mustache (= 3.3.0)))) @@ -150,7 +150,7 @@ (alcotest :with-test) (qcheck :with-test) (qcheck-alcotest :with-test) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))))) (package @@ -159,7 +159,7 @@ (depends (ocaml (>= 5.1.1)) (dune (>= 3.0.0)) - (ppx_expect :with-test) + ppx_expect (mdx (and :with-test (= 2.4.1))) (lwt (>= 5.7.0)) (mimic (>= 0.0.9)) diff --git a/yocaml.opam b/yocaml.opam index 81da173..8bd8c1a 100644 --- a/yocaml.opam +++ b/yocaml.opam @@ -17,7 +17,7 @@ depends: [ "alcotest" {with-test} "qcheck" {with-test} "qcheck-alcotest" {with-test} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "ocamlformat" {with-dev-setup} "ocp-indent" {with-dev-setup} diff --git a/yocaml_cmarkit.opam b/yocaml_cmarkit.opam index bc7a531..4cc6515 100644 --- a/yocaml_cmarkit.opam +++ b/yocaml_cmarkit.opam @@ -11,7 +11,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "yocaml" {= version} "cmarkit" diff --git a/yocaml_eio.opam b/yocaml_eio.opam index 08718b0..2e6724b 100644 --- a/yocaml_eio.opam +++ b/yocaml_eio.opam @@ -10,7 +10,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "yocaml" {= version} "yocaml_runtime" {= version} diff --git a/yocaml_git.opam b/yocaml_git.opam index 1355e37..7b712b0 100644 --- a/yocaml_git.opam +++ b/yocaml_git.opam @@ -11,7 +11,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "lwt" {>= "5.7.0"} "mimic" {>= "0.0.9"} diff --git a/yocaml_jingoo.opam b/yocaml_jingoo.opam index 299b4fc..9e7f67c 100644 --- a/yocaml_jingoo.opam +++ b/yocaml_jingoo.opam @@ -10,7 +10,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "yocaml" {= version} "jingoo" {>= "1.5.0"} diff --git a/yocaml_mustache.opam b/yocaml_mustache.opam index ce4ffd7..3863a50 100644 --- a/yocaml_mustache.opam +++ b/yocaml_mustache.opam @@ -10,7 +10,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "yocaml" {= version} "mustache" {= "3.3.0"} diff --git a/yocaml_omd.opam b/yocaml_omd.opam index 712b90e..50bfa99 100644 --- a/yocaml_omd.opam +++ b/yocaml_omd.opam @@ -11,7 +11,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "yocaml" {= version} "omd" {>= "2.0.0~alpha4"} diff --git a/yocaml_otoml.opam b/yocaml_otoml.opam index b06b6c3..da91a94 100644 --- a/yocaml_otoml.opam +++ b/yocaml_otoml.opam @@ -10,7 +10,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "yocaml" {= version} "otoml" {>= "1.0.5"} diff --git a/yocaml_runtime.opam b/yocaml_runtime.opam index 61b6684..bbf9393 100644 --- a/yocaml_runtime.opam +++ b/yocaml_runtime.opam @@ -10,7 +10,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "yocaml" {= version} "cohttp" {>= "5.3.11"} diff --git a/yocaml_syndication.opam b/yocaml_syndication.opam index 3e0507e..56db9a3 100644 --- a/yocaml_syndication.opam +++ b/yocaml_syndication.opam @@ -15,7 +15,7 @@ depends: [ "alcotest" {with-test} "qcheck" {with-test} "qcheck-alcotest" {with-test} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "odoc" {with-doc} ] diff --git a/yocaml_unix.opam b/yocaml_unix.opam index 97f36f4..03d723a 100644 --- a/yocaml_unix.opam +++ b/yocaml_unix.opam @@ -10,7 +10,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "httpcats" {>= "0.0.1"} "yocaml" {= version} diff --git a/yocaml_yaml.opam b/yocaml_yaml.opam index 7f2d529..8add150 100644 --- a/yocaml_yaml.opam +++ b/yocaml_yaml.opam @@ -10,7 +10,7 @@ bug-reports: "https://github.com/xhtmlboi/yocaml/issues" depends: [ "ocaml" {>= "5.1.1"} "dune" {>= "3.14" & >= "3.0.0"} - "ppx_expect" {with-test} + "ppx_expect" "mdx" {with-test & = "2.4.1"} "yocaml" {= version} "yaml" {>= "3.2.0"}