From e675dc9bf48d1ebd6e77b30dea7b392b424d0e7c Mon Sep 17 00:00:00 2001 From: Valentin Gatien-Baron Date: Tue, 25 Jun 2024 16:44:13 +0200 Subject: [PATCH] try to make opam-repository happy Who knows why opam cares about running tests, but opam-dune-lint doesn't test them, and who knows if it's possible to check build results locally --- dune-project | 21 ++++++++++----------- ppx_partial.opam | 8 ++++++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/dune-project b/dune-project index 6c36fd9..320e449 100644 --- a/dune-project +++ b/dune-project @@ -3,14 +3,9 @@ (name ppx_partial) (generate_opam_files true) - -(source - (github v-gb/ppx_partial)) - +(source (github v-gb/ppx_partial)) (authors "Valentin Gatien-Baron") - (maintainers "Valentin Gatien-Baron") - (license ISC) (package @@ -26,12 +21,16 @@ This can be convenient in pipelines or to build arguments for `List.map` or any places that need single-argument functions. As a slight generalization, `__.record_field` and `Sum_constructor __` -allow shortening `fun x -> x.record_field` and `(fun x -> Sum_constructor x)`. +allow shortening `(fun x -> x.record_field)` and `(fun x -> Sum_constructor x)`. ") (depends - (ppxlib - (>= 0.32.1)) - ocaml - dune) + (ppxlib (>= 0.32.1)) + (ocaml (>= 4.14.0)) + dune + (base :with-test) + (ppx_pipebang :with-test) + (ppx_inline_test :with-test) + (ppx_assert :with-test) + ) (tags (syntax ppx))) diff --git a/ppx_partial.opam b/ppx_partial.opam index 53e92a5..51eca3d 100644 --- a/ppx_partial.opam +++ b/ppx_partial.opam @@ -11,7 +11,7 @@ This can be convenient in pipelines or to build arguments for `List.map` or any places that need single-argument functions. As a slight generalization, `__.record_field` and `Sum_constructor __` -allow shortening `fun x -> x.record_field` and `(fun x -> Sum_constructor x)`. +allow shortening `(fun x -> x.record_field)` and `(fun x -> Sum_constructor x)`. """ maintainer: ["Valentin Gatien-Baron"] authors: ["Valentin Gatien-Baron"] @@ -21,8 +21,12 @@ homepage: "https://github.com/v-gb/ppx_partial" bug-reports: "https://github.com/v-gb/ppx_partial/issues" depends: [ "ppxlib" {>= "0.32.1"} - "ocaml" + "ocaml" {>= "4.14.0"} "dune" {>= "3.15"} + "base" {with-test} + "ppx_pipebang" {with-test} + "ppx_inline_test" {with-test} + "ppx_assert" {with-test} "odoc" {with-doc} ] build: [