Skip to content

Commit

Permalink
Add opam template file and configure more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbin committed Dec 2, 2024
1 parent 5759efc commit 490dc95
Show file tree
Hide file tree
Showing 15 changed files with 234 additions and 0 deletions.
22 changes: 22 additions & 0 deletions vcs-base.opam
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,25 @@ build: [
]
]
dev-repo: "git+https://github.com/mbarbin/vcs.git"
description: """\

[Vcs_base] is a library that extends the [Vcs] library with additional
modules and functionalities to improve compatibility with programs
using [base].

For example, it adds [Comparable.S] to all container key modules so
that they can be used with [base]-style containers such as [Map] and
[Hashtbl].

It also exports a module [Vcs.Or_error] to make it easy to use [Vcs]
with the [Or_error] monad.

The library is designed to be used as a drop-in replacement for [Vcs].
To achieve this, it includes a single module named [Vcs] which must be
set up to shadow the regular [Vcs] module.

[base]: https://github.com/janestreet/base

"""
tags: [ "git" "vcs" "base" ]
x-maintenance-intent: [ "(latest)" ]
22 changes: 22 additions & 0 deletions vcs-base.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
description: """\

[Vcs_base] is a library that extends the [Vcs] library with additional
modules and functionalities to improve compatibility with programs
using [base].

For example, it adds [Comparable.S] to all container key modules so
that they can be used with [base]-style containers such as [Map] and
[Hashtbl].

It also exports a module [Vcs.Or_error] to make it easy to use [Vcs]
with the [Or_error] monad.

The library is designed to be used as a drop-in replacement for [Vcs].
To achieve this, it includes a single module named [Vcs] which must be
set up to shadow the regular [Vcs] module.

[base]: https://github.com/janestreet/base

"""
tags: [ "git" "vcs" "base" ]
x-maintenance-intent: [ "(latest)" ]
17 changes: 17 additions & 0 deletions vcs-command.opam
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,20 @@ build: [
]
]
dev-repo: "git+https://github.com/mbarbin/vcs.git"
description: """\

[vcs-command] is a package from the [vcs] project that provides a
command-line interface called [ocaml-vcs]. This interface is
implemented on top of the other packages from the project.

It allows users to run exploratory tests using the [vcs] interface and
the Git backends available on actual repositories, directly from the
command line.

This tool can be helpful for reproducing issues with the library or
getting familiar with some functionality of the project in an
interactive fashion using real live data.

"""
tags: [ "cli" "git" "ocaml-vcs" "vcs" ]
x-maintenance-intent: [ "(latest)" ]
17 changes: 17 additions & 0 deletions vcs-command.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: """\

[vcs-command] is a package from the [vcs] project that provides a
command-line interface called [ocaml-vcs]. This interface is
implemented on top of the other packages from the project.

It allows users to run exploratory tests using the [vcs] interface and
the Git backends available on actual repositories, directly from the
command line.

This tool can be helpful for reproducing issues with the library or
getting familiar with some functionality of the project in an
interactive fashion using real live data.

"""
tags: [ "cli" "git" "ocaml-vcs" "vcs" ]
x-maintenance-intent: [ "(latest)" ]
15 changes: 15 additions & 0 deletions vcs-git-blocking.opam
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ build: [
]
]
dev-repo: "git+https://github.com/mbarbin/vcs.git"
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating commits
and branches to loading and navigating commit graphs in memory,
computing diffs between revisions, and more.

[Vcs_git_blocking] implements a Git provider for [vcs] based on the
OCaml standard library. It runs the [git] CLI as a subprocess in a
blocking fashion.

"""
tags: [ "git" "vcs" "blocking-io" ]
x-maintenance-intent: [ "(latest)" ]
15 changes: 15 additions & 0 deletions vcs-git-blocking.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating commits
and branches to loading and navigating commit graphs in memory,
computing diffs between revisions, and more.

[Vcs_git_blocking] implements a Git provider for [vcs] based on the
OCaml standard library. It runs the [git] CLI as a subprocess in a
blocking fashion.

"""
tags: [ "git" "vcs" "blocking-io" ]
x-maintenance-intent: [ "(latest)" ]
16 changes: 16 additions & 0 deletions vcs-git-eio.opam
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,19 @@ build: [
]
]
dev-repo: "git+https://github.com/mbarbin/vcs.git"
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating commits
and branches to loading and navigating commit graphs in memory,
computing diffs between revisions, and more.

[Vcs_git_eio] implements a Git provider for [vcs] based on [eio]. It
runs the [git] CLI as a subprocess in a non-blocking fashion.

[eio]: https://github.com/ocaml-multicore/eio

"""
tags: [ "eio" "git" "vcs" "non-blocking-io" ]
x-maintenance-intent: [ "(latest)" ]
16 changes: 16 additions & 0 deletions vcs-git-eio.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating commits
and branches to loading and navigating commit graphs in memory,
computing diffs between revisions, and more.

[Vcs_git_eio] implements a Git provider for [vcs] based on [eio]. It
runs the [git] CLI as a subprocess in a non-blocking fashion.

[eio]: https://github.com/ocaml-multicore/eio

"""
tags: [ "eio" "git" "vcs" "non-blocking-io" ]
x-maintenance-intent: [ "(latest)" ]
17 changes: 17 additions & 0 deletions vcs-git-provider.opam
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,20 @@ build: [
]
]
dev-repo: "git+https://github.com/mbarbin/vcs.git"
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating commits
and branches to loading and navigating commit graphs in memory,
computing diffs between revisions, and more.

[Vcs_git_provider] is not meant to be used directly by a user. Rather
it is a helper library for building Git providers for [vcs]. Given the
ability to run a [git] process, this library knows which commands to
run, how to parse their output, and how to interpret their exit codes
to turn them into typed results.

"""
tags: [ "cli" "git" "vcs" ]
x-maintenance-intent: [ "(latest)" ]
17 changes: 17 additions & 0 deletions vcs-git-provider.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating commits
and branches to loading and navigating commit graphs in memory,
computing diffs between revisions, and more.

[Vcs_git_provider] is not meant to be used directly by a user. Rather
it is a helper library for building Git providers for [vcs]. Given the
ability to run a [git] process, this library knows which commands to
run, how to parse their output, and how to interpret their exit codes
to turn them into typed results.

"""
tags: [ "cli" "git" "vcs" ]
x-maintenance-intent: [ "(latest)" ]
16 changes: 16 additions & 0 deletions vcs-test-helpers.opam
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@ build: [
]
]
dev-repo: "git+https://github.com/mbarbin/vcs.git"
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating commits
and branches to loading and navigating commit graphs in memory,
computing diffs between revisions, and more.

[Vcs_test_helpers] is a library aimed at making it easier to write
tests for libraries using [vcs] as a dependency. For example, it
contains helpers for setting the running user's Git config, creating
temporary repositories, and more.

"""
tags: [ "git" "tests" "vcs" ]
x-maintenance-intent: [ "(latest)" ]
16 changes: 16 additions & 0 deletions vcs-test-helpers.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating commits
and branches to loading and navigating commit graphs in memory,
computing diffs between revisions, and more.

[Vcs_test_helpers] is a library aimed at making it easier to write
tests for libraries using [vcs] as a dependency. For example, it
contains helpers for setting the running user's Git config, creating
temporary repositories, and more.

"""
tags: [ "git" "tests" "vcs" ]
x-maintenance-intent: [ "(latest)" ]
Empty file added vcs-tests.opam.template
Empty file.
14 changes: 14 additions & 0 deletions vcs.opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,17 @@ build: [
]
]
dev-repo: "git+https://github.com/mbarbin/vcs.git"
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating
commits and branches to loading and navigating commit graphs in
memory, computing diffs between revisions, and more.

[Vcs] is the user-facing OCaml module for the project and
dynamically dispatches its implementation at runtime.

"""
tags: [ "git" "vcs" ]
x-maintenance-intent: [ "(latest)" ]
14 changes: 14 additions & 0 deletions vcs.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: """\

[vcs] is a set of OCaml libraries for interacting with Git
repositories. It provides a type-safe and direct-style API to
programmatically perform Git operations, ranging from creating
commits and branches to loading and navigating commit graphs in
memory, computing diffs between revisions, and more.

[Vcs] is the user-facing OCaml module for the project and
dynamically dispatches its implementation at runtime.

"""
tags: [ "git" "vcs" ]
x-maintenance-intent: [ "(latest)" ]

0 comments on commit 490dc95

Please sign in to comment.