Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Update the product-definition-center in response to fedmsg

Project Description

This is a backend daemon that listens to fedmsg and updates PDC with information about what it sees on the bus.

See https://fedoraproject.org/wiki/Changes/ProductDefinitionCenter

Development

Set up a python virtualenv:

$ sudo dnf -y install python-virtualenvwrapper
$ source ~/.bashrc
$ mkvirtualenv pdc-updater

Setup pdc-updater and its dependencies:

$ workon pdc-updater
$ pip install -r requirements.txt
$ python setup.py develop

Try running the test suite:

$ pip install -r test-requirements.txt
$ nosetests

Check test suite coverage:

$ pip install coverage
$ nosetests --with-coverage --cover-package=pdcupdater

Getting an authentication token

…from https://pdc.fedorainfracloud.org/

  • go to https://pdc.fedorainfracloud.org/ in your browser and login.
  • go to https://pdc.fedorainfracloud.org/rest_api/v1/auth/token/obtain/
  • open up the devtools console in your browser, and find the request for the current page.
  • right click to open a context menu and select ‘copy as cURL’
  • paste that into a terminal. It should have your saml cookie.
  • before hitting enter, edit the command to add the following two options:
    • -H 'Accept: application/json', to tell the API you want data
    • --insecure, because we have a self-signed cert
  • the command should print out your token.

Copy fedmsg.d/pdcupdater-example.py to fedmsg.d/pdcupdater.py and fill in your token there.

Running the fedmsg-hub

Run it for real:

$ fedmsg-hub

Finally, you can take the dev instructions from the-new-hotness and learn how to set up a local fedmsg-relay so you can replay production messages and more fully test out pdc-updater.

Release History

Release History

History Node

0.6.5

History Node

0.6.4

History Node

0.6.3

History Node

0.6.2

History Node

0.6.1

History Node

0.6.0

History Node

0.5.9

History Node

0.5.8

History Node

0.5.7

History Node

0.5.6

History Node

0.5.5

History Node

0.5.4

History Node

0.5.3

History Node

0.5.2

History Node

0.5.1

History Node

0.5.0

History Node

0.4.10

History Node

0.4.9

History Node

0.4.8

History Node

0.4.7

History Node

0.4.6

History Node

0.4.5

History Node

0.4.4

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.1

History Node

0.3.0

History Node

0.2.4

This version
History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pdc-updater-0.2.3.tar.gz (26.9 MB) Copy SHA256 Checksum SHA256 Source Jan 28, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting