libraries.io icon indicating copy to clipboard operation
libraries.io copied to clipboard

Add support of Opam package manager

Open CameronEzraJones opened this issue 7 years ago • 1 comments

Thanks taking the time to contribute. This template should help guide you through the process of creating a pull request for review. Please erase any part of this template that is not relevant to your pull request:

  • [x] Have you followed the guidelines for contributors?
  • [x] Have you checked to ensure there aren't other open pull requests on the repository for a similar change?
  • [x] Is there a corresponding ticket for your pull request?
  • [x] Have you written new tests for your changes?
  • [x] Have you successfully run the project with your changes locally?

If so then please replace this section with a link to the ticket(s) it addressed, an explanation of your change and why you think we should include it. Thanks again!


Addresses the Opam request in issue #2043 . I thought I'd try tackling something a little meatier...

Methods implemented

  • [x] #project_names
  • [x] #project
  • [x] #mapping
  • [ ] #versions
  • [ ] #dependencies
  • [ ] #recent_names
  • [x] #install_instructions
  • [x] #formatted_name
  • [x] #package_link
  • [ ] #download_url
  • [ ] #documentation_url
  • [ ] #check_status_url

Constants implemented

  • [x] HAS_VERSIONS - false
  • [x] HAS_DEPENDENCIES - false
  • [x] BIBLIOTHECARY_SUPPORT - false
  • [x] BIBLIOTHECARY_PLANNED - true
  • [x] URL - https://opam.ocaml.org
  • [x] COLOR - #3be133

When I was working on this, it returned a little over 1500 projects, including projects that are being regularly maintained. Because of this, I believe that tracking this package manager aligns with the vision of Libraries.io

Adding versions and dependencies in the future is doable, but it would require a great deal of complex html extraction that I wasn't comfortable tackling right away.

Let me know if you have questions. Thanks!

CameronEzraJones avatar Apr 27 '18 04:04 CameronEzraJones

Is there something blocking this from being accepted? Would be nice to have opam support!

mbacarella avatar Dec 01 '20 17:12 mbacarella