summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement importutils.try_import.Dan Prince2013-01-141-1/+0
| | | | | | | | | | | | | | | | | | | | Adds a new (simple) importutils.try_import function which can return a module name or a default (by default this is None). This should help clean up some of our try: import foo except... blocks in modules. This commit also drops the dependency on python-extras which is no longer needed. Fixes LP Bug #1099501. Change-Id: I8591f79983bdad67a50d1aaae6dce8428dfce084
* Merge "Upgrade WebOb to 1.2.3"Jenkins2013-01-121-1/+1
|\
| * Upgrade WebOb to 1.2.3Doug Hellmann2013-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The version of WebOb being used in OpenStack was more than 1 year old. This change updates to the latest stable release. Upgrading WebOb resolves a version conflict between OpenStack and Pecan, the web framework used by the Ceilometer team for version 2 of the ceilometer API. Refer to http://docs.webob.org/en/latest/news.html for the list of changes between 1.0.8 and 1.2.3. bug 1092227 Change-Id: I2c8e95ecc3b69b40fd9f8d2f801e75c17b07ed59 Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
* | Merge "Make WebOb version specification more flexible"Jenkins2013-01-081-1/+1
|\|
| * Make WebOb version specification more flexibleDoug Hellmann2013-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | Change the WebOb version to >=1.0.8 as an temporary measure to allow the actual version update to 1.2.3 to roll out across the projects one at a time without breaking the integration tests. Change-Id: Ie08a97a31eaae0b1245b94f85e0f926512e4d513 Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
* | Add common filter/filter handler for filter schedulerZhiteng Huang2013-01-041-0/+1
|/ | | | | | | | | | | | Filter scheduler is being used for more than one core projects (Nova and Cinder as of writing), the implementation shared a lot of common code. This patch moves base filter/filter handler class as well as common filter implementation for filter scheduler into oslo to reduce possible porting. implement bp: common-filters Change-Id: If0b1dee79c410c98e152230b55c1ec5dbcdef27c
* Replace try: import with extras.try_importMonty Taylor2012-11-281-0/+1
| | | | | | | | | | | | | | | The block form: try: import foo except: foo = None is confusing to code analysis tools looking for redefinition. It's also a common enough pattern that someone else has encoded it into a library. Let's use that instead. Change-Id: I35a5c7a7e3595a51ba1ef1886c3965f463dba04a
* argparse support for cfgLaurence Miao2012-11-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | * openstack/common/cfg.py Optparse is fading out since python 2.7, this patch will help openstack/common work on more advanded version of python(argparse). Now, disable_interspersed_args() has no effect. Added new method add_cli_subparsers, return argparse subparser, for usages such as subcommand. * tests/unit/test_cfg.py SubcommandTestCase added. Disabled test_disable_interspersed_args test entry for happiness of tox, temporarily. Modified test_help for port of argparse. * tools/pip-requires include argparse module for python 2.6 Change-Id: Ie5cbde1a92a92786d64dea0ddfcfbf288c29f960
* Use pep8 v1.3.3Zhongyue Luo2012-09-131-1/+1
| | | | | | | Fixed indents which violate pep8 1.3.3 Also added .mailmap file to coalesce commits Change-Id: Ia7a788a28e6c0fd9cb52fb7ea477cddd7d589e58
* Add nosehtmloutput as a test dependency.Clark Boylan2012-08-211-0/+1
| | | | | | | | Adding nosehtmloutput as a test dependency allows nose to output its results to an html file. This will be used by Jenkins to save logs on a different server. Change-Id: I7fcce74b358e27901b74922af35d4ea529366c81
* Add test-options from Nova /w pyzmqEric Windisch2012-07-171-0/+1
| | | | Change-Id: Ieebefee89483e5abbcefe1bb9059d89c91dc04df
* Fix up openstack-common build.Monty Taylor2012-07-021-0/+2
| | | | | | | | Ironically enough, even though the code to manage this is in openstack-common, openstack-common wasn't using it. This patch fixes doc generation, as well as setuptools-git integration and versioning. Change-Id: Ifb74ad539832d8cec4a536a96221eea8fb7527d2
* Merge "Add rpc to openstack-common."Jenkins2012-06-071-0/+1
|\
| * Add rpc to openstack-common.Russell Bryant2012-06-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Implements blueprint common-rpc. This patch imports nova.rpc to openstack-common. All of the necessary changes to the core code to make it compatible with openstack-common have been done in nova, so the only changes made here are to imports. There are more changes made to the tests, but nothing that changes the core functionality of the tests. Change-Id: I17330aa4adfd0f22c449a2376833c7fe9dfd0cf1
* | Move testing dependencies to test-requires.Vishvananda Ishaya2012-06-062-3/+3
|/ | | | Change-Id: If0402077cc95811936c55182d90f15ccb37a6ad2
* Create openstack.common.jsonutils.Russell Bryant2012-05-151-0/+1
| | | | | | | | | | | | | | | | | | | | This patch creates a new module, jsonutils. It is based on some code from nova.utils that is used by nova.rpc. It is being added to openstack-common as another step toward being able to eventually move nova.rpc to openstack-common. This module provides a few things: 1) A handy function for getting an object down to something that can be JSON serialized. See to_primitive(). 2) Wrappers around loads() and dumps(). The dumps() wrapper will automatically use to_primitive() for you if needed. 3) This sets up anyjson to use the loads() and dumps() wrappers if anyjson is available. Change-Id: I41e5759360d515ed53defe69f3e8247aafbcc83a
* Promote more complete support for ISO 8601 time.Eoghan Glynn2012-02-201-0/+1
| | | | | | | | | | | | | | | Support for ISO 861 time representation is now duplicated in nova: https://github.com/openstack/nova/commit/c30193fbf and in glance: https://github.com/openstack/glance/commit/f8f9f171 Note this patch introduces a new dependency on python-iso8601, which has already been packaged for Fedora, EPEL and Ubuntu/Debian. Change-Id: I87c32effa97d3b7a8d869522b62c0c6fb31bcef8
* Updated tox config for multi-python testing.Monty Taylor2012-02-062-7/+17
| | | | Change-Id: Ib1f768c6783db0e63cb51dfc767ae5a31a295c76
* Pull openstack.nose_plugin from pypiJason Kölker2012-01-231-2/+1
| | | | Change-Id: I54372df3f42b806e37a71338d2779887d1c591ce
* Added tissue support back in.Monty Taylor2012-01-061-0/+1
|
* Use nose and tox.Monty Taylor2012-01-042-148/+0
|
* Added pip-requires and tox.ini to run tests.Monty Taylor2012-01-041-0/+9
|
* Only list requirements in the setup.py like it should beJason Kölker2011-12-012-19/+4
|
* remove bzr requirementJason Kölker2011-11-011-1/+0
|
* remove the version requirement on moxJason Kölker2011-11-011-1/+1
|
* Vinkesh/Rajaram|Added scripts to run tests from novaRajaram Mallya2011-09-073-0/+164