Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new release] spin (0.8.0) #18746

Merged
merged 1 commit into from
Jun 4, 2021
Merged

Conversation

tmattio
Copy link
Contributor

@tmattio tmattio commented May 26, 2021

OCaml project generator

CHANGES:

Added

  • Added a parse_binaries stanza that can be true to force Spin to parse binary files
  • Added a raw_files stanza that takes a list of file or glob expressions to instruct Spin to copy files instead of parsing them
  • Added a new c-bindings template for C bindings using ctypes
  • Added a new js template for javascript applications with js_of_ocaml

Changed

  • Removed the gen subcommand. The generators will come back with a much better workflow
  • Dropped support for Esy and Reason. The templates are now using the recommended OCaml setup only. The previous templates are hosted at https://github.com/ocaml-templates/
  • Changed the templates to use the ISC license
  • Increase version of ocamlformat to 0.18.0 in templates
  • Do not install merlin when installing dev dependencies in templates
  • Drop support for BuckleScript in PPX
  • Drop support for publishing on NPM for CLI and PPX templates
  • Update CI scripts to avsm/setup-ocaml@v2
  • Remove python dependency to serve documentation in Makefile
  • Inline release script in Makefile
  • Remove global -open StdLabels in templates
  • The spa template has been removed from the official templates and now lives at https://github.com/ocaml-templates/spin-incr-dom
  • Spin does not parse binary files by default anymore, they are simply copied to the destination folder
  • Use test stanza for unit tests now that Alcotest prints colors by default
  • Remove unused flags defined in the root's dune file

Fixes

  • The project generation will now fail before the configurations prompt if the output directory is not empty
  • By default, Spin now creates a local switch for the generated projects. This can be changed with spin config, or by setting the env variable SPIN_CREATE_SWITCH=false
  • Fix an CLI incompatibility between opam.2.0.X and opam.2.1.X that made Spin unusable with the former.

@tmattio
Copy link
Contributor Author

tmattio commented May 27, 2021

I'll take care of fixing the constraints, there's also a bug I found last-minute that I want to fix in this release.

@avsm avsm marked this pull request as draft May 27, 2021 08:45
@tmattio tmattio force-pushed the release-spin-0.8.0 branch from 5eb5e20 to 47d93a4 Compare May 27, 2021 12:23
@kit-ty-kate
Copy link
Member

kit-ty-kate commented May 29, 2021

CI should be good now. Could you fix your spin.opam.template file to integrate the change from {pinned} to {dev} ? (see ocaml/dune#3647 for more detail)

Feel free to undraft this PR when you're ready to release.

CHANGES:

## Added

- Added an `hello` command to generate a tutorial project
- Added a `parse_binaries` stanza that can be `true` to force Spin to parse binary files
- Added a `raw_files` stanza that takes a list of file or glob expressions to instruct Spin to copy files instead of parsing them
- Added a new `c-bindings` template for C bindings using `ctypes`
- Added a new `js` template for javascript applications with `js_of_ocaml`

## Changed

- Removed the `gen` subcommand. The generators will come back with a much better workflow
- Dropped support for Esy and Reason. The templates are now using the recommended OCaml setup only. The previous templates are hosted at https://github.com/ocaml-templates/
- Changed the templates to use the `ISC` license
- Increase version of `ocamlformat` to `0.18.0` in templates
- Do not install merlin when installing dev dependencies in templates
- Drop support for BuckleScript in PPX
- Drop support for publishing on NPM for CLI and PPX templates
- Update CI scripts to `ocaml/setup-ocaml@v2`
- Remove python dependency to serve documentation in Makefile
- Inline release script in Makefile
- Remove global `-open StdLabels` in templates
- The `spa` template has been removed from the official templates and now lives at https://github.com/ocaml-templates/spin-incr-dom
- Spin does not parse binary files by default anymore, they are simply copied to the destination folder
- Use `test` stanza for unit tests now that Alcotest prints colors by default
- Remove unused flags defined in the root's `dune` file

## Fixes

- The project generation will now fail before the configurations prompt if the output directory is not empty
- By default, Spin now creates a local switch for the generated projects. This can be changed with `spin config`, or by setting the env variable `SPIN_CREATE_SWITCH=false`
- Fix an CLI incompatibility between `opam.2.0.X` and `opam.2.1.X` that made Spin unusable with the former.
@tmattio tmattio force-pushed the release-spin-0.8.0 branch from d6079da to 9950525 Compare June 4, 2021 11:45
@tmattio tmattio marked this pull request as ready for review June 4, 2021 11:46
@tmattio
Copy link
Contributor Author

tmattio commented Jun 4, 2021

Thanks @kit-ty-kate! I upstreamed the changes in spin.opam.template and re-generated a new release with the bug fix that was blocking the release. This is now ready to merge 🙂

@kit-ty-kate
Copy link
Member

Thanks a lot!

@kit-ty-kate kit-ty-kate merged commit f461412 into ocaml:master Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants