RETIRED, Part of OpenStack's Oslo project. New Oslo APIs go through an incubation phase in this repository before being released as part of a proper Python library.
Go to file
Jay S. Bryant 8a0f567848 Remove str() from LOG.* and exceptions
gettextutils is expecting to receive unicode strings
rather than basestrings.  A basestring can cause an
unhandled exception in the logging code.  To help avoid
such issues we should remove str() from LOG.* messages and
exceptions.  We have verified that the %s formatting code
properly handle getting strings to unicode where necessary.

This patch also fixes one case where a message object was
being concatenated with '+' .  This, like using str() will
cause logging to fail and needs to be fixed.

See bug https://bugs.launchpad.net/cinder/+bug/1274245 for
the original discussion of this problem.

Fix for oslo.messaging: https://review.openstack.org/90577

Change-Id: Iad7c2284c6b21322b96dc881a82bbbab4ebb208e
Closes-bug:  1286306
2014-04-27 10:48:12 +08:00
doc/source Convert unicode strings for python3 portability 2013-05-07 11:55:56 -05:00
etc Remove rootwrap from incubator 2014-02-14 14:35:39 +01:00
openstack Remove str() from LOG.* and exceptions 2014-04-27 10:48:12 +08:00
pypi Rename Openstack to OpenStack 2014-02-13 16:05:04 +08:00
tests Merge "Fix tests/unit/crypto/test_utils.py under Python3" 2014-04-25 12:14:23 +00:00
tools Script for running unit tests in other projects 2014-03-27 15:19:57 -07:00
.coveragerc Update .coveragerc 2013-02-06 16:47:06 +02:00
.gitignore Remove requirements.txt from .gitignore 2014-03-06 17:03:31 +02:00
.gitreview Correcting openstack-common mv to oslo-incubator. 2012-11-11 23:44:12 +00:00
.mailmap Update mailmap for Joe Gordon 2013-10-28 10:11:02 +00:00
.testr.conf Don't call provision.py directly 2014-04-07 14:56:04 +10:00
HACKING.rst Update URL for global HACKING document 2013-11-11 10:36:08 -08:00
LICENSE Incorporating MIT licensed code 2013-12-02 11:57:19 +00:00
MAINTAINERS Mark db code as graduating 2014-04-18 14:24:24 +03:00
MANIFEST.in Don't include versioninfo in manifest. 2013-01-14 03:17:32 -08:00
README.rst Fixes command being displayed on same line. 2014-04-04 23:09:48 +05:30
TESTING.rst Creates a new file TESTING.rst. 2013-06-20 20:44:43 -04:00
obsolete.txt Warn the user when they sync an obsolete module 2014-04-12 17:08:51 +08:00
requirements-py3.txt Updated from global requirements 2014-04-20 09:57:45 +00:00
requirements.txt Updated from global requirements 2014-04-20 09:57:45 +00:00
run_tests.sh Move `./run_tests.sh` to Oslo 2013-08-13 18:06:11 +03:00
setup.cfg Re-raise exception of unloadable library 2014-03-13 08:43:22 +01:00
setup.py Updated from global requirements 2013-12-10 07:23:28 -05:00
test-requirements-py3.txt Remove pep8, pyflakes, and flake8 from test requirements 2014-04-08 13:51:48 -07:00
test-requirements.txt Remove pep8, pyflakes, and flake8 from test requirements 2014-04-08 13:51:48 -07:00
tox.ini Activate test_openstack_generators.py in Python3 2014-04-25 15:18:00 +02:00
update.py Fix oslotest -> `base`test 2014-04-25 10:45:24 -05:00
update.sh Fix typo in update.py 2013-12-30 13:00:22 +08:00

README.rst

The Oslo Incubator

The Oslo program produces a set of python libraries containing infrastructure code shared by OpenStack projects. The APIs provided by these libraries should be high quality, stable, consistent and generally useful.

The process of developing a new Oslo API usually begins by taking code which is common to some OpenStack projects and moving it into this repository. Incubation shouldn't be seen as a long term option for any API - it is merely a stepping stone to inclusion into a published Oslo library.

For more information, see our wiki page:

https://wiki.openstack.org/wiki/Oslo

Running Tests

To run tests in virtualenvs (preferred):

sudo pip install tox
tox

To run tests in the current environment:

sudo pip install -r requirements.txt
nosetests

To run tests using MySQL or PostgreSQL as a DB backend do:

OS_TEST_DBAPI_ADMIN_CONNECTION=mysql://user:password@host/database tox -e py27

Note, that your DB user must have permissions to create and drop databases.