Skip to content

Commit 81ac17d

Browse files
committed
Upgrade version to 0.9.3
* Fix `drom new` to use correctly `--drom-share` argument * Fix drom.toml to use latest drom-share version with fixes for dune Should fix github CI * Use :version in dune files instead of version, starting with drom-version = 0.9.3 * Set OCaml min-version to 4.14 * set directories min-version to 0.6
1 parent cda9d55 commit 81ac17d

46 files changed

Lines changed: 459 additions & 279 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.drom

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ version:0.9.0
55

66
# hash of toml configuration files
77
# used for generation of all files
8-
cfa41e62814087cf2f340eab496a6542:.
8+
777b4227c694d4bd7bf7cc4f2dd5d74d:.
99
# end context for .
1010

1111
# begin context for .github/workflows/workflow.yml
1212
# file .github/workflows/workflow.yml
13-
533318fb1c01b0861406a644a7d9f39c:.github/workflows/workflow.yml
13+
89b0f9c99502d62badaf5677ea2647e7:.github/workflows/workflow.yml
1414
# end context for .github/workflows/workflow.yml
1515

1616
# begin context for .gitignore
1717
# file .gitignore
18-
33c88a25e8b40f3683f6c03ec26be5db:.gitignore
18+
f7a24abcad0ba9301c03bb64464b1718:.gitignore
1919
# end context for .gitignore
2020

2121
# begin context for .ocamlformat
@@ -40,14 +40,19 @@ cfa41e62814087cf2f340eab496a6542:.
4040

4141
# begin context for LICENSE.md
4242
# file LICENSE.md
43-
8fc45323c2500fb66e52deb392dda4f2:LICENSE.md
43+
cf4da9c43c0026cec0ba46b9cfe8407e:LICENSE.md
4444
# end context for LICENSE.md
4545

4646
# begin context for Makefile
4747
# file Makefile
4848
9018881cf0682f4f7f262417b0d4f9ff:Makefile
4949
# end context for Makefile
5050

51+
# begin context for Makefile.drom
52+
# file Makefile.drom
53+
2b07c62bfabf8f45733eafbc696c6146:Makefile.drom
54+
# end context for Makefile.drom
55+
5156
# begin context for README.md
5257
# file README.md
5358
616ddd2660258447be65bdb664b9241d:README.md
@@ -100,22 +105,22 @@ e850a13c004f963e9f5a568eac93c217:dune
100105

101106
# begin context for dune-project
102107
# file dune-project
103-
47416b4e7b7e7febc8da32932cae0d54:dune-project
108+
b7f234c1b0e69daf4fecb2d4ae7922a3:dune-project
104109
# end context for dune-project
105110

106111
# begin context for opam/drom.opam
107112
# file opam/drom.opam
108-
d3c8882f1742f865c2987dea6c7c83e2:opam/drom.opam
113+
bc3506fc3dfb623406236cd83174b6c6:opam/drom.opam
109114
# end context for opam/drom.opam
110115

111116
# begin context for opam/drom_lib.opam
112117
# file opam/drom_lib.opam
113-
8b323689fcc28f9783fa85ca4a4fac55:opam/drom_lib.opam
118+
eed1e4462b737abf5b8a26a0e02bfed0:opam/drom_lib.opam
114119
# end context for opam/drom_lib.opam
115120

116121
# begin context for opam/drom_toml.opam
117122
# file opam/drom_toml.opam
118-
81116a1889e6414dee5c2e921961aa77:opam/drom_toml.opam
123+
7862f6984d902a16bb827bf4335d435f:opam/drom_toml.opam
119124
# end context for opam/drom_toml.opam
120125

121126
# begin context for scripts/after.sh
@@ -130,12 +135,12 @@ d3c8882f1742f865c2987dea6c7c83e2:opam/drom.opam
130135

131136
# begin context for scripts/copy-bin.sh
132137
# file scripts/copy-bin.sh
133-
bb3a9d286f0dc64021db4194427263ee:scripts/copy-bin.sh
138+
7fe4ada2a2fc5a0ebf9a2f483679a0ae:scripts/copy-bin.sh
134139
# end context for scripts/copy-bin.sh
135140

136141
# begin context for scripts/static-build.sh
137142
# file scripts/static-build.sh
138-
2a405479b3313d79d421c2e7fc282304:scripts/static-build.sh
143+
cda3f8bad69d9c6e8cbeab1c720d739a:scripts/static-build.sh
139144
# end context for scripts/static-build.sh
140145

141146
# begin context for sphinx/_static/css/fixes.css
@@ -165,12 +170,12 @@ a44c87f3a364dd95f55427fe40b2c5d1:sphinx/about.rst
165170

166171
# begin context for sphinx/license.rst
167172
# file sphinx/license.rst
168-
8f504f01aea592543c0a662b81169d91:sphinx/license.rst
173+
a02d5245d1626431fbfc4bdb99a413cf:sphinx/license.rst
169174
# end context for sphinx/license.rst
170175

171176
# begin context for src/drom/dune
172177
# file src/drom/dune
173-
efad88968955023a354f16469eb1ae15:src/drom/dune
178+
68aec4169671c0163b98bb38205d2e4d:src/drom/dune
174179
# end context for src/drom/dune
175180

176181
# begin context for src/drom/index.mld
@@ -180,7 +185,7 @@ efad88968955023a354f16469eb1ae15:src/drom/dune
180185

181186
# begin context for src/drom/linking_flags.sh
182187
# file src/drom/linking_flags.sh
183-
9a3b02ff1d99723e9ee2f3c0e97d7b30:src/drom/linking_flags.sh
188+
9fdfca3cc53df639758ff04fe09d3243:src/drom/linking_flags.sh
184189
# end context for src/drom/linking_flags.sh
185190

186191
# begin context for src/drom/main.ml
@@ -195,7 +200,7 @@ efad88968955023a354f16469eb1ae15:src/drom/dune
195200

196201
# begin context for src/drom_lib/dune
197202
# file src/drom_lib/dune
198-
a97be0d7328e7c15eb149c454844646a:src/drom_lib/dune
203+
082a9e012b5cae59a574601cfb9f0788:src/drom_lib/dune
199204
# end context for src/drom_lib/dune
200205

201206
# begin context for src/drom_lib/index.mld
@@ -210,12 +215,12 @@ a97be0d7328e7c15eb149c454844646a:src/drom_lib/dune
210215

211216
# begin context for src/drom_lib/version.mlt
212217
# file src/drom_lib/version.mlt
213-
fc09abbaf032f775d148928fa1398cf9:src/drom_lib/version.mlt
218+
ad0048099dd6df9d2c73875be2ba28e7:src/drom_lib/version.mlt
214219
# end context for src/drom_lib/version.mlt
215220

216221
# begin context for src/toml.7.1.0/dune
217222
# file src/toml.7.1.0/dune
218-
229a5f90ef7f812db6f3560ccb3d131f:src/toml.7.1.0/dune
223+
0841a2e47118b9fcd9b900f84ff66c34:src/toml.7.1.0/dune
219224
# end context for src/toml.7.1.0/dune
220225

221226
# begin context for src/toml.7.1.0/index.mld
@@ -235,14 +240,19 @@ d1b05207fce876a1b44a8b268bcaf226:src/toml.7.1.0/index.mld
235240

236241
# begin context for src/toml.7.1.0/version.mlt
237242
# file src/toml.7.1.0/version.mlt
238-
fc09abbaf032f775d148928fa1398cf9:src/toml.7.1.0/version.mlt
243+
ad0048099dd6df9d2c73875be2ba28e7:src/toml.7.1.0/version.mlt
239244
# end context for src/toml.7.1.0/version.mlt
240245

241246
# begin context for test/expect-tests/dune
242247
# file test/expect-tests/dune
243248
d7e2675a767e30edf28d061c94f0ec62:test/expect-tests/dune
244249
# end context for test/expect-tests/dune
245250

251+
# begin context for test/expect-tests/dune.drom
252+
# file test/expect-tests/dune.drom
253+
6d2c689d437f17d4e99e01df3f4515c6:test/expect-tests/dune.drom
254+
# end context for test/expect-tests/dune.drom
255+
246256
# begin context for test/expect-tests/dune_
247257
# file test/expect-tests/dune_
248258
f15fedac6f43c154bcd0348b776ac08c:test/expect-tests/dune_
@@ -258,6 +268,11 @@ f15fedac6f43c154bcd0348b776ac08c:test/expect-tests/dune_
258268
a0d7baa94246a5122e55a255dcefa9d0:test/inline-tests/dune
259269
# end context for test/inline-tests/dune
260270

271+
# begin context for test/inline-tests/dune.drom
272+
# file test/inline-tests/dune.drom
273+
4cd12cd1258c38ccd44b225323601ff5:test/inline-tests/dune.drom
274+
# end context for test/inline-tests/dune.drom
275+
261276
# begin context for test/inline-tests/dune_
262277
# file test/inline-tests/dune_
263278
75d7504f9c8002ec5ccdd2458f01da09:test/inline-tests/dune_
@@ -273,6 +288,11 @@ a0d7baa94246a5122e55a255dcefa9d0:test/inline-tests/dune
273288
b5ea41e29d37e997b482b1bf7f5953d7:test/output-tests/dune
274289
# end context for test/output-tests/dune
275290

291+
# begin context for test/output-tests/dune.drom
292+
# file test/output-tests/dune.drom
293+
a3371489c9d6aee62aeba112ecfddcf0:test/output-tests/dune.drom
294+
# end context for test/output-tests/dune.drom
295+
276296
# begin context for test/output-tests/dune_
277297
# file test/output-tests/dune_
278298
28db2068920c1259cbd67a7c322730ed:test/output-tests/dune_

.github/workflows/workflow.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ jobs:
2525

2626
include:
2727
- os: ubuntu-latest
28-
ocaml-compiler: 4.07.0
28+
ocaml-compiler: 4.14.0
2929
skip_test: true
3030

3131

32+
# we need permissions to deploy docs
33+
permissions:
34+
contents: write
35+
3236
runs-on: ${{ matrix.os }}
3337

3438
# use fields.github-workflow-env to add something here
@@ -38,20 +42,19 @@ jobs:
3842
uses: actions/checkout@v2
3943

4044
- name: Retrieve opam cache
41-
uses: actions/cache@v2
45+
uses: actions/cache@v4
4246
id: cache-opam
4347
with:
4448
path: ~/.opam
45-
key: v2-${{ runner.os }}-drom-${{ matrix.ocaml-compiler }}-${{ hashFiles('opam/*.opam') }}
49+
key: v4-${{ runner.os }}-drom-${{ matrix.ocaml-compiler }}-${{ hashFiles('opam/*.opam') }}
4650
# restore-keys: |
47-
# v2-${{ runner.os }}-opam-${{ matrix.ocaml-compiler }}-
51+
# v4-${{ runner.os }}-opam-${{ matrix.ocaml-compiler }}-
4852

4953
- name: Use OCaml ${{ matrix.ocaml-compiler }}
50-
uses: avsm/setup-ocaml@v2
54+
uses: avsm/setup-ocaml@v3
5155
with:
5256
ocaml-compiler: ${{ matrix.ocaml-compiler }}
5357
opam-pin: false
54-
opam-depext: false
5558

5659
- name: Set git user
5760
run: |
@@ -62,14 +65,7 @@ jobs:
6265

6366
- run: opam pin add . -y --no-action
6467

65-
- run: opam depext -y drom drom_lib drom_toml
66-
# if: steps.cache-opam.outputs.cache-hit != 'true'
67-
68-
- run: opam install -y opam/*.opam --deps-only --with-test
69-
# if: steps.cache-opam.outputs.cache-hit != 'true'
70-
71-
# - run: opam upgrade --fixup
72-
# if: steps.cache-opam.outputs.cache-hit == 'true'
68+
- run: opam install -y ./opam/*.opam --deps-only --with-test
7369

7470
# Use fields.build-scripts to add more scripts to convert here
7571
- run: dos2unix scripts/*.sh

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
*~
33
_build
44
.merlin
5-
.vscode
65
/_drom
76
/_opam
87
/_build

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 OCamlPro SAS
1+
Copyright (c) 2025 OCamlPro SAS
22

33
This software is distributed under the terms of the
44
GNU Lesser General Public License (LGPL) version 2.1 (included below).

Makefile.drom

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Maintained by "drom project"
2+
.PHONY: $(DROMNS)build $(DROMNS)build-deps $(DROMNS)fmt $(DROMNS)fmt-check
3+
.PHONY: $(DROMNS)install $(DROMNS)dev-deps $(DROMNS)test
4+
.PHONY: $(DROMNS)clean $(DROMNS)distclean
5+
6+
DROM_DEV_DEPS := merlin ocamlformat odoc ppx_expect ppx_inline_test $(DEV_DEPS)
7+
8+
9+
SPHINX_TARGET:=_drom/docs/sphinx
10+
11+
ODOC_TARGET:=_drom/docs/doc/.
12+
13+
14+
$(DROMNS)build:
15+
./scripts/before.sh build
16+
opam exec -- dune build @install
17+
./scripts/copy-bin.sh drom drom_lib drom_toml
18+
./scripts/after.sh build
19+
20+
$(DROMNS)build-deps:
21+
if ! [ -e _opam ]; then \
22+
opam switch create . 4.14.1 ; \
23+
fi
24+
opam install ./opam/*.opam --deps-only
25+
26+
27+
.PHONY: $(DROMNS)doc-common $(DROMNS)odoc $(DROMNS)view
28+
.PHONY: $(DROMNS)sphinx
29+
$(DROMNS)doc-common: $(DROMNS)build
30+
mkdir -p _drom/docs
31+
rsync -auv docs/. _drom/docs/.
32+
33+
$(DROMNS)sphinx: $(DROMNS)doc-common
34+
./scripts/before.sh sphinx ${SPHINX_TARGET}
35+
sphinx-build sphinx ${SPHINX_TARGET}
36+
./scripts/after.sh sphinx ${SPHINX_TARGET}
37+
38+
$(DROMNS)odoc: $(DROMNS)doc-common
39+
mkdir -p ${ODOC_TARGET}
40+
./scripts/before.sh odoc ${ODOC_TARGET}
41+
opam exec -- dune build @doc
42+
rsync -auv --delete _build/default/_doc/_html/. ${ODOC_TARGET}
43+
./scripts/after.sh odoc ${ODOC_TARGET}
44+
45+
$(DROMNS)doc: $(DROMNS)doc-common $(DROMNS)odoc $(DROMNS)sphinx
46+
47+
$(DROMNS)view:
48+
xdg-open file://$$(pwd)/_drom/docs/index.html
49+
50+
$(DROMNS)fmt:
51+
opam exec -- dune build @fmt --auto-promote
52+
53+
$(DROMNS)fmt-check:
54+
opam exec -- dune build @fmt
55+
56+
$(DROMNS)install:
57+
opam pin -y --no-action -k path .
58+
opam install -y .
59+
60+
$(DROMNS)opam:
61+
opam pin -k path .
62+
63+
$(DROMNS)uninstall:
64+
opam uninstall .
65+
66+
$(DROMNS)dev-deps:
67+
opam install ./opam/*.opam --deps-only --with-doc --with-test
68+
69+
$(DROMNS)test:
70+
./scripts/before.sh test
71+
opam exec -- dune build @runtest
72+
./scripts/after.sh test
73+
74+
$(DROMNS)clean:
75+
rm -rf _build
76+
rm -f *.exe *~
77+
./scripts/after.sh clean
78+
79+
$(DROMNS)distclean: $(DROMNS)clean
80+
rm -rf _opam _drom
81+
./scripts/after.sh distclean
82+
83+

drom.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[project]
22
create-project = false
3-
drom-version = "0.1"
3+
drom-version = "0.9.3"
44
share-repo = "https://github.com/OCamlPro/drom-share"
5-
share-version = "0.9.0"
5+
#share-repo = "/home/lefessan/GIT/ocp/github/drom-share"
6+
share-version = "0.9.3"
67

78
[project]
89
authors = ["Fabrice Le Fessant <fabrice.le_fessant@ocamlpro.com>", "Léo Andrès <leo.andres@ocamlpro.com>"]
@@ -11,11 +12,11 @@ copyright = "OCamlPro SAS"
1112
edition = "4.14.1"
1213
github-organization = "ocamlpro"
1314
license = "LGPL2"
14-
min-edition = "4.07.0"
15+
min-edition = "4.14.0"
1516
name = "drom"
1617
skeleton = "program"
1718
synopsis = "The drom tool is a wrapper over opam/dune in an attempt to provide a cargo-like user experience"
18-
version = "0.9.2"
19+
version = "0.9.3"
1920

2021
# keys that you could also define:
2122
# odoc-target = "...odoc-target..."

0 commit comments

Comments
 (0)