package semver2

  1. Overview
  2. Docs
Semantic version handling for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

1.1.0.tar.gz
md5=3054c5c107ae2b87246113debbf999fc
sha512=02527d9591acb722529e54bc41832fef390f10964304074ac96b2dc09b77d84296d7363477921b721a16be66e3d79b12b6388f2637c2360d5e79d6260f24d722

README.md.html

ocaml-semver

Library for handling semantic version numbers (Semver 2.0.0) in OCaml.

Purpose

This library provides basic functions for working with semantic version numbers:

  • Parsing and printing version strings

  • Comparing version numbers for precedence

  • Checking validity of version numbers according to the Semver spec

Please refer to the module documentation for its API.

Local development

The following dependencies are required:

  • ocaml

  • opam

  • m4

  • pkg-config

Opam needs to be initialized:

$ opam init

Library dependencies can be installed with:

$ make install-deps

Make sure to have an updated shell environment:

$ eval $(opam env)

Then you can run the test suite with:

$ make test

Contributing

Contributions are welcome in the form of issues or pull requests. Please remember to:

  1. Explain the intended purpose of your change and provide enough context for others to follow your reasoning.

  2. Add documentation for new (or existing!) functionality.

  3. Include tests to help ensure correctness of added code.

Copyright and Licensing

(C) 2020 Dividat AG.

Published under MIT license.

OCaml

Innovation. Community. Security.