~corey.bryant/ubuntu/+source/python-microversion-parse:debian/newton

Last commit made on 2016-05-18
Get this branch:
git clone -b debian/newton https://git.launchpad.net/~corey.bryant/ubuntu/+source/python-microversion-parse
Only Corey Bryant can upload to this branch. If you are Corey Bryant please log in for upload directions.

Branch merges

Branch information

Recent commits

ca3639f... by Corey Bryant

Add initial debian folder

4b04aaf... by Louis Taylor

Make service_type a positional argument

This removes the assert to ensure a value for service_type is set. The
keyword style of calling can still be used, so

    microversion_parse.get_version(headers, service_type='compute')

will remain working.

Using an assert for this is probably inadvisable, since it will be
stripped away if python is run with -O.

Change-Id: I9775c5d87890c8ff4a6072c600d54fa47264fa9f

2f044aa... by Chris Dent <email address hidden>

Include README.rst content on doc index

This is so there is at least some bare bones documentation to
start from.

Change-Id: I839e574bb1b52d16bc235d0437c60cff017d4594

b1f7162... by Chris Dent <email address hidden>

Fix folded header checks for WebOb

WebOb uses a Mapping class for headers which behaves like a dict
but does not inherit from dict, so the isinstance check in
fold_headers was not working as expected. This is now replaced
with a check for dict-like behaviors. It's a bit of a tossup
between doing a hasattr and simply trying to access a key. I chose
the former for readability and because we don't actually want to
do anything with the value we would retrieve were access by a key
legit.

Tests are added to specfically cover the use of a
webob.headers.EnvironHeaders object, which is what headers in
Nova and Nova derivations look like.

Change-Id: I31de49bcfd8822c53d3293b106de96138eaf4464

33e0066... by Chris Dent <email address hidden>

Enable gerrit, gitreview and gate testing

Initial setup for git review.

Add basic docs handling so that docs tests will pass. No
actual docs in place yet.

Align with global requirements.

Change-Id: I8ae7c2c6ce410c04f4ce53ce5278b2b85c141c93

45916f2... by Chris Dent <email address hidden>

Cleanup README

Some formatting errors.

1214334... by Chris Dent <email address hidden>

allow tox to skip missing interpreters

6153830... by Chris Dent <email address hidden>

package for initial release

d2c4bb7... by Chris Dent <email address hidden>

Change interface to explicitly pass legacy_headers

Based on suggestion from @sdague

TODO: more tests, positive and negative

49b4493... by Chris Dent <email address hidden>

Initial proof of concept of microversion_parse

See README.rst for details.

The basic gist is that a get_version method is provided. It takes a
dict or list of headers and returned a version for a service_type if
it can find it.