Skip to content

Commit b6fc719

Browse files
committed
Split the opam plugin in an
Generate OCaml projects. Usage: spin COMMAND Available Commands: config Update the current user's configuration ls List the official templates new Generate a new project from a template Useful options: --help Show manual page --v, --verbose Increase verbosity --version Show spin version For a complete documentation, refer to the manual with `spin --help`. Use `spin COMMAND --help` for help on a single command. package.
1 parent ff16a3d commit b6fc719

7 files changed

+54
-16
lines changed

CHANGES.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.8.1
2+
3+
## Changed
4+
5+
- Split the opam plugin in an `opam-spin` package.
6+
17
# 0.8.0
28

39
## Added

bin/dune

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(executable
22
(name main)
33
(public_name spin)
4+
(package spin)
45
(libraries spin spin_std cmdliner fmt fmt.tty logs.fmt logs.cli)
56
(flags
67
(:standard -open Spin_std)))
@@ -9,5 +10,6 @@
910

1011
(install
1112
(section bin)
13+
(package opam-spin)
1214
(files
1315
(main.exe as opam-spin)))

dune-project

+11
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,14 @@
4343
fpath
4444
cmdliner
4545
logs))
46+
47+
(package
48+
(name opam-spin)
49+
(synopsis "Opam plugin for Spin, the OCaml project generator")
50+
(description "Opam plugin for Spin, the OCaml project generator")
51+
(depends
52+
(ocaml
53+
(>= 4.10.0))
54+
dune
55+
(spin
56+
(= :version))))

opam-spin.opam

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This file is generated by dune, edit dune-project instead
2+
opam-version: "2.0"
3+
synopsis: "Opam plugin for Spin, the OCaml project generator"
4+
description: "Opam plugin for Spin, the OCaml project generator"
5+
maintainer: ["Thibaut Mattio"]
6+
authors: ["Thibaut Mattio"]
7+
license: "ISC"
8+
homepage: "https://github.com/tmattio/spin"
9+
doc: "https://tmattio.github.io/spin/"
10+
bug-reports: "https://github.com/tmattio/spin/issues"
11+
depends: [
12+
"ocaml" {>= "4.10.0"}
13+
"dune" {>= "2.7"}
14+
"spin" {= version}
15+
"odoc" {with-doc}
16+
]
17+
build: [
18+
["dune" "subst"] {dev}
19+
[
20+
"dune"
21+
"build"
22+
"-p"
23+
name
24+
"-j"
25+
jobs
26+
"@install"
27+
"@runtest" {with-test}
28+
"@doc" {with-doc}
29+
]
30+
]
31+
dev-repo: "git+https://github.com/tmattio/spin.git"
32+
flags: plugin

opam-spin.opam.template

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flags: plugin

spin.opam

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ depends: [
2626
"cmdliner"
2727
"logs"
2828
]
29-
dev-repo: "git+https://github.com/tmattio/spin.git"
3029
build: [
3130
["dune" "subst"] {dev}
3231
[
@@ -37,7 +36,8 @@ build: [
3736
"-j"
3837
jobs
3938
"@install"
39+
"@runtest" {with-test}
4040
"@doc" {with-doc}
4141
]
4242
]
43-
flags: plugin
43+
dev-repo: "git+https://github.com/tmattio/spin.git"

spin.opam.template

-14
This file was deleted.

0 commit comments

Comments
 (0)