versioneye/crawl_r

Authors for Rust

Closed this issue · 7 comments

reiz commented

@timgluz Why we don't have Author information for Rust packages? Is it not included in the REST API?

reiz commented

@timgluz On this page the Author is listed: https://crates.io/crates/aseprite.

We collect owners of packages - those are people who own, maintain and release the package.
Authors seems to be people from git commits and they belong to version/release, but not to package.

We can collect also authors, but it is more noisy - some has name, alias, email; some has only email;

ok, i can add it - it just a bit more preprocessing than owners api

here's example output:
curl "https://crates.io/api/v1/crates/nanomsg/0.6.2/authors?api_key=$CRATES_KEY" | jq

{
  "meta": {
    "names": [
      "Benoît Labaere <benoit.labaere@gmail.com>",
      "Chip Collier",
      "Dan Burkert",
      "Daniel Fagnan <dnfagnan@gmail.com>",
      "David C. Bishop",
      "Dennis Lawler",
      "Jason E. Aten",
      "Zachary Tong"
    ]
  },
  "users": []
}
reiz commented

@timgluz OK. Let's store authors & maintainers in the developer collection: https://github.com/versioneye/versioneye-core/blob/master/lib/versioneye/models/developer.rb.

reiz commented

@timgluz fixed with the last commit.