FEDORA-2017-697b3fa6ad

enhancement update in Fedora 25 for pdc-client

Status: testing a year ago

Notable Changes

All errors are reported by pdc_client on stderr output and exit code is non-zero if an error occurs.

It possible to override default plugin paths with PDC_CLIENT_PLUGIN_PATH environment variable. E.g.

export PDC_CLIENT_PLUGIN_PATHS="$HOME/pdc-plugins:/usr/share/pdc-client/plugins"
pdc --help

Simpler access to a specific page with pdc --page.

Method PDCClient.get_paged() in Python API is deprecated and can be replaced by results() method. Both methods return iterator simplifying accessing to pages with results.

client = PDCClient(server)

# Old way (deprecated)
for result in client.get_paged(client.products):
    ...

# New way
for result in client.products.results():
    ...

Simpler access to endpoints with dashes in name.

client = PDCClient(server)

# Old way
branches = client['component-branches']

# New way
branches = client.component_branches

Changelog

  • Add the page argument on pdc
  • Get endpoints containing dash as attributes
  • Override plugin paths with PDC_CLIENT_PLUGIN_PATH
  • Update documentation
  • Add documentation link to README file
  • Add description of page_size=-1 in help doc
  • Add PDCClient tests and fix the discovered bugs
  • Close plugin files when not needed
  • Fix printing errors and exit code for pdc_client
  • Install bytecode for plugins only for correct version of Python
rpm

How to install

sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2017-697b3fa6ad

Comments 5

This update has been submitted for testing by lholecek.

looks good for qe

karma: +1

This update has been pushed to testing.

This update has reached 7 days in testing and can be pushed to stable now if the maintainer wishes


Add Comment & Feedback
Toggle Preview

Comment fields support Fedora-Flavored Markdown. Comments are governed under this privacy policy.

-1 0 +1 Feedback Guidelines

Is the update generally functional? (karma)

You need to be logged in to add karma!

Content Type
RPM
Status
testing
Test Gating
Submitted by
Update Type
enhancement
Update Severity
unspecified
Karma
+2
stable threshold: 3
unstable threshold: -3
Autopush
Enabled
Dates
submitted a year ago
in testing a year ago

Automated Test Results