summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add pbr to installation requirementsDoug Hellmann2014-10-241-0/+1
|/ | | | | | | | | Add pbr to the list of installation requirements so that it is installed via pip before this library is installed, instead of with easy_install. This avoids issues like Bug #1384919, and ensures that projects that use this library as a dependency are properly installed. Change-Id: I6c155370dbd01fe4748d5137bdf288e8d3e1a67e
* Updated from global requirementsOpenStack Proposal Bot2014-10-111-1/+1
| | | | Change-Id: Ia8e3281f6aa373a60b99036b9cd25ade58793e87
* Remove extraneous vim editor configuration commentsChristian Berendt2014-10-081-2/+0
| | | | | Change-Id: I2fb6d6174cf8b73ee663efa6718f4358be673869 Partial-Bug: #1229324
* Merge "Support building wheels (PEP-427)"Jenkins2014-10-041-1/+4
|\
| * Support building wheels (PEP-427)Davanum Srinivas2014-10-021-1/+4
| | | | | | | | | | | | | | | | Universal is used to identify pure-Python module(by bdist_wheel). For these, it is sufficient to build a wheel with _any_ Python ABI version and publish that to PyPI (by whatever means). Change-Id: I99b5c30b7d7feb00eed1c9b4c7c8a0df4e41da84
* | Merge "Expose sizelimit option to config generator"Jenkins2014-10-044-12/+70
|\ \
| * | Expose sizelimit option to config generatorDavanum Srinivas2014-10-014-12/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding a group name to prevent collision with keystone middleware library option * Adds an opts module for the config generator to use. * Makes the option in sizelimit private since we don't want consumers using them directly. * Moves the options to an oslo_middleware group with appropriate deprecated_opts settings to keep existing configs working. Closes-Bug: #1368490 Change-Id: I72263bd363a79275a314de727a04277276866565
* | | Imported Translations from TransifexOpenStack Proposal Bot2014-10-033-63/+0
| |/ |/| | | | | Change-Id: I99c6b951c8b6992a442b194ad480ca0418def520
* | Fix coverage testingAndreas Jaeger2014-10-011-0/+1
|/ | | | | | | Add coverage to test-requirements so that tox-e cover works - this is part of the post jobs that are run. Change-Id: Id919bdb861447c0f018df64d9a0f5e44c0cc2351
* Imported Translations from TransifexOpenStack Proposal Bot2014-09-301-0/+27
| | | | Change-Id: I2c7031426d916c7f2117357a20d0d4ae6fde9bf6
* Imported Translations from TransifexOpenStack Proposal Bot2014-09-263-0/+63
| | | | Change-Id: I4e3d80607017822b5aebf316595ea1497e46706b
* Updated from global requirementsOpenStack Proposal Bot2014-09-192-4/+4
| | | | Change-Id: I9dab787a11f6cf22b7ab57ee0fce2333ec0de43d
* Merge "Remove oslo-incubator fixture"Jenkins2014-09-184-87/+1
|\
| * Remove oslo-incubator fixtureJulien Danjou2014-09-164-87/+1
| | | | | | | | Change-Id: I23cb59c1774b07842ac8853f3c104adfddd2c25b
* | Imported Translations from TransifexOpenStack Proposal Bot2014-09-187-0/+166
|/ | | | Change-Id: Idb5c8659e684a6175e1dcc85a1c7b4342597a6d6
* Updated from global requirements0.1.0OpenStack Proposal Bot2014-09-103-5/+13
| | | | Change-Id: I6ba0a580547d52534517c50a2367ee111d0f0aef
* Setup for translationAndreas Jaeger2014-09-071-0/+25
| | | | | | | | | | | | | To start translation, we need to initially import the translation file - and place it at the proper place so that the usual CI scripts can handle it. The proper place is for all python projects $PROJECT/locale/$PROJECT.pot - see setup.cfg. Further imports will be done by the OpenStack Proposal bot. Change-Id: I29b9fe0c286d1f54c260bff0569ea3e4e8092c3c
* Merge "Work toward Python 3.4 support and testing"Jenkins2014-09-051-1/+1
|\
| * Work toward Python 3.4 support and testingJeremy Stanley2014-09-031-1/+1
| | | | | | | | Change-Id: I69f453e0e32491cd37d60c978b88d4b35b839d7f
* | Merge "warn against sorting requirements"Jenkins2014-09-052-0/+8
|\ \
| * | warn against sorting requirementsDoug Hellmann2014-09-032-0/+8
| |/ | | | | | | | | Change-Id: I64ae9191863564e278a35d42ec9cd743a233028e Addresses-Bug: #1365061
* | Update docs for first releaseDoug Hellmann2014-08-2610-36/+31
|/ | | | | | | | | | Ensure each exported class has a docstring. Add API to the sphinx docs. Fix a few formatting issues so the rendered docs look OK. Change-Id: Ieef7bae3783a084249169fe9b80ab17518eee15f
* Merge "expose middleware through oslo.middleware"Jenkins2014-08-242-1/+24
|\
| * expose middleware through oslo.middlewaregordon chung2014-08-212-1/+24
| | | | | | | | | | | | | | allow middleware to be called through oslo.middleware rather than through module. Change-Id: Iee535002a3bed221f85e97fb10528fbb9234dcb1
* | Merge "drop middleware suffix in class names"Jenkins2014-08-246-9/+9
|\ \ | |/
| * drop middleware suffix in class namesgordon chung2014-08-136-9/+9
| | | | | | | | | | | | | | as discussed in bp, we should drop the middleware suffix in class names to avoid redundancy. Change-Id: I60e1e84e817e24be9ad1d31381df95c93f7b7990
* | add doc generation supportgordon chung2014-08-152-0/+4
|/ | | | | | | we're missing sphinx requirements that are blocking doc tests. this patch adds this in so we can pass check Change-Id: Ieba4da849ce8abea10a3298df23a0b2145a0bd2e
* fix pep8 issuesgordon chung2014-07-221-2/+4
|
* Merge pull request #3 from berendt/fix_doc_hackinggord chung2014-07-221-2/+2
|\ | | | | Fixed syntax of the HACKING.rst file
| * Fixed syntax of the HACKING.rst fileChristian Berendt2014-07-221-2/+2
| |
* | Merge pull request #2 from berendt/enable_h305gord chung2014-07-221-2/+2
|\ \ | | | | | | Enable hacking check H305
| * | Enable hacking check H305Christian Berendt2014-07-221-2/+2
| |/ | | | | | | | | Hacking check H305 should not be ignored. It's used in other oslo project.
* | Merge pull request #1 from berendt/fix_doc_indexgord chung2014-07-221-6/+1
|\ \ | |/ |/| Cleaning up index.rst file
| * Cleaning up index.rst fileChristian Berendt2014-07-221-6/+1
|/ | | | Removed notes about the generation of the file and fixed the syntax.
* replace with oslo.i18ngordon chung2014-07-226-501/+38
|
* remove stray testsGordon Chung2014-06-246-318/+0
|
* initial oslo.middleware checkinGordon Chung2014-06-2423-27/+1084
|
* exported from oslo-incubator by graduate.shGordon Chung2014-06-2437-9/+634
|
* pep8: fixed multiple violationsIhar Hrachyshka2014-06-201-1/+1
| | | | | | | | | | | | | | | | | Fixed violations: * E128 continuation line under-indented for visual indent * E251 unexpected spaces around keyword / parameter equals * E265 block comment should start with '# ' * E713 test for membership should be 'not in' * F402 import shadowed by loop variable * H305 imports not grouped correctly * H307 like imports should be grouped together' * H402 one line docstring needs punctuation' * H703 Multiple positional placeholders Also enabled H803 check that didn't have any violations. Change-Id: I957ab273ddc61b02763d6b60b21d11ed4e73d472
* Use moxstubout and mockpatch from oslotestVictor Sergeyev2014-04-151-1/+1
| | | | | | | | | | Modules moxstubout and mockpatch from openstack/common/fixture/ are obsolete, so we should use them from oslotest library. Also oslotest depends on mock and mox, so we no longer need to specify them directly in test-requirements files Change-Id: I139133457cd73ee83537dead3446ee30d0ee5589
* Improve help stringsAndreas Jaeger2014-02-071-2/+2
| | | | | | | | | | Follow oslo.config style guide for help strings better to create more consistent help strings: * Capitalize first word of each help string * Finish help strings with "." * Improve wording, capitalization Change-Id: Ia9698807430d8b6b0862dfb8a7f8874703a88ff1
* Use oslotest instead of common test moduleVictor Sergeyev2014-04-154-9/+9
| | | | | | | | Module openstack.common.test is obsolete, so we should use oslotest library instead of it. Modified tests and common database code, new requirement added. Change-Id: I853e548f11a4c3785eaf75124510a6d789536634
* sizelimit: port to Python 3Cyril Roelandt2014-03-142-4/+5
| | | | | | | | | | | In the tests, use bytes for the request body, since that is what is used by webob in Python 3. In RequestBodySizeLimiter.__call__(), do not compare NoneType to an integer: it is forbidden in Python 3. Instead, properly handle the fact that req.content_lenght might be None. Change-Id: I179997789b9e2fcd3f3326e4d724e547c807f195
* Don't store the request ID value in middleware as class variableChris Buccella2014-03-101-6/+9
| | | | | | | | | | | | | | | The original version of the request_id middleware generates a request ID during process_request() and stores the value in a variable, so it can be attached as header in process_request(). This is pretty dangerous, since subsequent requests will overwrite this value, and the wrong request ID may be attached to some responses. This is particularly apparent when requests arrive in parallel. This change replaces process_request() and process_response() with an override of __call__(). This allows the generated req_id to be used in the response header without needing to save it as a class-level variable. Change-Id: I498859140ba113412c9d95d09f0c4c6b8650749c Closes-bug: #1289696
* Python 3: enable tests/unit/middleware/test_request_id.pyCyril Roelandt2014-03-131-1/+1
| | | | | | | In Python 3, webob will return bytes, so we need to fix generate_request_id() so that it also returns bytes. The behaviour is unchanged in Python 2. Change-Id: I389cf20e4c999c9bb576a42388497852f8ba27ec
* Update oslo log messages with translation domainsDoug Hellmann2014-01-081-3/+3
| | | | | | | | | | | | | Update the incubator code to use different domains for log messages at different levels. Update the import exceptions setting for hacking to allow multiple functions to be imported from gettextutils on one line. bp log-messages-translation-domain Change-Id: I6ce0f4a59438612ce74c46b3ee9398bef24c0c19
* Small edits on help stringsAndreas Jaeger2014-01-181-2/+2
| | | | | | | | | | | These were initially noted during import into the manuals at https://review.openstack.org/67502 Fixes include rework of text, missing or extra spaces, wrong capitalization and no sentence style capitalization. Change-Id: I56a47de73e0e494a6f770e29dae8065b398ef5af Co-Authored-By: Diane Fleming <diane.fleming@rackspace.com>
* Middleware to catch all error in WSGI pipelineAkihiro Motoki2013-12-092-0/+90
| | | | Change-Id: I6214b48923efe765dc87bc143fbb346efd0b17b3
* Use hacking import_exceptions for gettextutils._Joe Gordon2013-12-201-1/+1
| | | | | | | Instead of using # noqa every time gettextutils._ is used, add an exception in tox.ini Change-Id: Iafa8509a38596aac791bd809283f3bd75c638a60
* Middlelware to ensure request IDAkihiro Motoki2013-12-092-0/+75
| | | | | | | | | | | | | | The feature of the proposed middleware is simple: * Generate request-id for each REST request * Set the generated request-id to request environment * Add X-OpenStack-Request-Id header to API response to return request-id blueprint middleware-request-id Note that to use this middleware with Context, we need to change auth middlware so that request-id will be retreived from request env. Change-Id: Ic7967cd62e7b743343d70f751b9238339171e013