Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreryan committed Mar 17, 2022
1 parent f39932f commit 0872a6a
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 39 deletions.
34 changes: 18 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,39 @@

### Added

* Allow nested module types in val specs (e.g., `Food.Dessert.Apple_pie.t`)
* Allow using `Pytypes.pyobject` and `Py.Object.t` in val specs
* Better error messages when parser or `py_fun` creation fails
* You can now use attributes on value specifications.
* Currently the only one available is `py_fun_name`.
* It allows you to decouple the Python method name and the generated OCaml function name.
* See the examples directory on GitHub for more info.
- Allow nested module types in val specs (e.g., `Food.Dessert.Apple_pie.t`)
- Allow using `Pytypes.pyobject` and `Py.Object.t` in val specs
- Better error messages when parser or `py_fun` creation fails
- You can now use attributes on value specifications.
- Currently the only one available is `py_fun_name`.
- It allows you to decouple the Python method name and the generated OCaml function name.
- See the examples directory on GitHub for more info.

### Changed

* Updated docs
- Updated docs
- Update to dune 3
- Update to cmdliner 1.1

### Fixed

* Fix some small `otype` bugs
- Fix some small `otype` bugs

## 0.2.0 (2022-02-02)

* Allow embedding Python source directly into generated OCaml module with the `--embed-python-source` CLI option. See this [issue](https://github.com/mooreryan/ocaml_python_bindgen/issues/5) for more info.
* Fix bug in val spec parsing
* Update docs
* Add full examples in the `examples` directory
- Allow embedding Python source directly into generated OCaml module with the `--embed-python-source` CLI option. See this [issue](https://github.com/mooreryan/ocaml_python_bindgen/issues/5) for more info.
- Fix bug in val spec parsing
- Update docs
- Add full examples in the `examples` directory

## 0.1.2 (2021-12-07)

* Use specific `ocamlformat` version for the tests. See this Opam repository [pull request](https://github.com/ocaml/opam-repository/pull/20162#issuecomment-987010684) for more info.
- Use specific `ocamlformat` version for the tests. See this Opam repository [pull request](https://github.com/ocaml/opam-repository/pull/20162#issuecomment-987010684) for more info.

## 0.1.1 (2021-11-04)

* Update lower bounds for dependencies
* Fix tests to work with BusyBox/Alpine `grep` command
- Update lower bounds for dependencies
- Fix tests to work with BusyBox/Alpine `grep` command

## 0.1.0 (2021-10-31)

Expand Down
81 changes: 60 additions & 21 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(lang dune 2.8)
(lang dune 3.0)

(name pyml_bindgen)

(generate_opam_files true)

(cram enable)
Expand All @@ -13,30 +13,69 @@
(maintainers "Ryan M. Moore")
(authors "Ryan M. Moore")
(homepage "https://github.com/mooreryan/ocaml_python_bindgen")
(source (github mooreryan/ocaml_python_bindgen))
(source
(github mooreryan/ocaml_python_bindgen))
(documentation "https://mooreryan.github.io/ocaml_python_bindgen/")
(bug_reports "https://github.com/mooreryan/ocaml_python_bindgen/issues")
(synopsis "Generate pyml bindings from OCaml value specifications")
(depends
; Runtime deps
(angstrom (>= "0.15.0"))
(base (>= "v0.12"))
(cmdliner (>= "1.0"))
(ppx_let (>= "v0.12"))
(ppx_sexp_conv (>= "v0.12"))
(ppx_string (>= "v0.12"))
(re2 (>= "v0.12"))
(stdio (>= "v0.12"))
(ocaml (>= "4.08.0"))
; Runtime deps
(angstrom
(>= "0.15.0"))
(base
(>= "v0.12"))
(cmdliner
(>= "1.1.0"))
(ppx_let
(>= "v0.12"))
(ppx_sexp_conv
(>= "v0.12"))
(ppx_string
(>= "v0.12"))
(re2
(>= "v0.12"))
(stdio
(>= "v0.12"))
(ocaml
(>= "4.08.0"))
; Test-only deps
(conf-python-3-dev (and (>= "1") :with-test))
(core_kernel (and (>= "v0.12") :with-test))
(ocamlformat (and (>= "0.20.0") (< "0.21.0") :with-test))
(ppx_assert (and (>= "v0.12") :with-test))
(ppx_inline_test (and (>= "v0.12") :with-test))
(ppx_expect (and (>= "v0.12") :with-test))
(cmdliner
(and
(= "1.1.0")
:with-test))
(conf-python-3-dev
(and
(>= "1")
:with-test))
(core_kernel
(and
(>= "v0.12")
:with-test))
(ocamlformat
(and
(>= "0.20.0")
(< "0.21.0")
:with-test))
(ppx_assert
(and
(>= "v0.12")
:with-test))
(ppx_inline_test
(and
(>= "v0.12")
:with-test))
(ppx_expect
(and
(>= "v0.12")
:with-test))
(pyml :with-test)
; Dev deps
(bisect_ppx :dev)
(core (and (>= "v0.12") :dev))
(core_bench (and (>= "v0.12") :dev))))
(core
(and
(>= "v0.12")
:dev))
(core_bench
(and
(>= "v0.12")
:dev))))
5 changes: 3 additions & 2 deletions pyml_bindgen.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ homepage: "https://github.com/mooreryan/ocaml_python_bindgen"
doc: "https://mooreryan.github.io/ocaml_python_bindgen/"
bug-reports: "https://github.com/mooreryan/ocaml_python_bindgen/issues"
depends: [
"dune" {>= "2.8"}
"dune" {>= "3.0"}
"angstrom" {>= "0.15.0"}
"base" {>= "v0.12"}
"cmdliner" {>= "1.0"}
"cmdliner" {>= "1.1.0"}
"ppx_let" {>= "v0.12"}
"ppx_sexp_conv" {>= "v0.12"}
"ppx_string" {>= "v0.12"}
"re2" {>= "v0.12"}
"stdio" {>= "v0.12"}
"ocaml" {>= "4.08.0"}
"cmdliner" {= "1.1.0" & with-test}
"conf-python-3-dev" {>= "1" & with-test}
"core_kernel" {>= "v0.12" & with-test}
"ocamlformat" {>= "0.20.0" & < "0.21.0" & with-test}
Expand Down

0 comments on commit 0872a6a

Please sign in to comment.