Commit Graph

4 Commits

Author SHA1 Message Date
Nils Philippsen
6f7e12d35e Use API result structure for dependencies.
Finds runtime and build dependencies in PDC UnreleasedVariant objects
in the fields 'runtime_deps' and 'build_deps'. Both are lists of
dictionaries, each with currently one field 'dependency' which contains
the name of the other variant on which this one depends, with an
optional version constraint. E.g.:

{
  "variant_id": ...,
...
  "runtime_deps": [
    {
      "dependency": "foo>=2"
    }
  ],
  "build_deps": [
    {
      "dependency": "foo>=2"
    }
  ]
}

Signed-off-by: Nils Philippsen <nils@redhat.com>
2016-07-14 16:21:28 +02:00
Nils Philippsen
81cd81a620 PDC uses plural names for API endpoints.
Signed-off-by: Nils Philippsen <nils@redhat.com>
2016-07-14 16:15:12 +02:00
Lubos Kocman
9eb5c25e25 Add rida/pdc.py - A rida related product definition center calls
* renamed and split config.pdc to config.pdc_url, config.pdc_insecure, config.pdc_develop
* test-pdc.py contains example usage

Signed-off-by: Lubos Kocman <lkocman@redhat.com>
2016-07-13 10:31:13 +02:00
Petr Šabata
87df2d3b3d Add the base file structure.
Signed-off-by: Petr Šabata <contyk@redhat.com>
2016-06-23 12:57:45 +02:00