| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
With first tool: flakes.py
Change-Id: Ie7880927c74ceff174b3b0d2730c499790650921
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implements blueprint common-binaries
Add support to update.py for copying config files and binaries matching
etc/oslo/$module*.conf
bin/oslo-$module*
into the destination project after replacing 'oslo' with the destination
project name.
This is specifically intended for rootwrap but may be applicable in
other cases in the future.
Change-Id: If8a3a815ef452b0dd73ed28cb61a7ff16a9dee5c
|
|
|
|
|
|
|
|
|
|
| |
Fixes Bug #1075230
Files are saved with the OS EOL conversion unless "b" is specified
in open(...). In this case we want to preserve the original EOL
convention.
Change-Id: Id756174d03c3e95db055d512ec4aa5a0eeb768b8
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added both a tox test-env for pyflakes and fixed the current pyflakes errors.
This did actually fix a couple of bugs.
The CI team has started using pyflakes on its projects and also has started
using oslo for things, so ignoring pyflakes warnings on the oslo code was
starting to get old. However, additionally, pyflakes is pretty solid, so we
should maybe consider gating on it across the board. (% locals() is the
biggest thing that we do that it doesn't like)
Change-Id: Iac1ca62db301892b7863711162fcbc74807eb24f
|
|
|
|
|
|
|
| |
Commit 5b9cb4148 changed the way cfg support's positional arguments and
broke update.py. Use the new positional argument infrastructure.
Change-Id: I0dc8b5ec445daaf3b437eb524c6eb4b684e5a695
|
|
|
|
| |
Change-Id: I4b0d31089cbc329ae4bc4af94edd6ac647f49fa1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In service.py there is an import like:
try:
from openstack.common import rpc
except:
rpc = None
and this currently does not get converted.
The only downside is some doc strings also get
converted.
Change-Id: If283b50b8e889c0a1878e30cd7ff58494fabe634
|
|
|
|
|
|
| |
also,this patch turns off pep8 E125 check.
Change-Id: I22d2a94d89530586d614af39af17ae542c5e0cbf
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
I was running into trouble with driver names that were generically named
in common but need to point to specific objects within nova.
Change-Id: Ie75761c73a855b067b1bcec651a1bb998deba9f4
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
Attempts to fix #951197
The openstack nose plugin defines the openstack.common namespace
which can result in exceptions when update.py attempts to import
cfg.
Avoid the issue by using an update.sh script which creates a
no-site-packages virtualenv.
Change-Id: I1ec5cf49361303b79306714122b860f6e4912215
|
|
|
|
|
|
| |
Part of blueprint common-rpc.
Change-Id: I634bf7b0ce85900a34c9b5a4a295f1d806458bbf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to effectively use a global ConfigOpts object, you
need to be able to initialize the global object with none of
the information we currently require at construction.
By moving those constructor args to the __call__() method,
we enable the global object usage model but also make the API
generally more flexible. For example, you can now reset the
object and re-use it for parsing a different set of config
files with the same options.
There are a couple of other minor behavior changes as a
result:
- print_usage() and print_help() no longer works before
the object has been called to parse options
- registration of duplicate short options are no longer
detected until the options are parsed
- the --config-file and --config-dir options aren't
registered until just before parsing the options since
the default set of config files can be specified at
that time
- find_file() can't be used until after the options have
been parsed, again because of the late registration
of --config-file and --config-dir
Finally, an unregister_opt() method is added to support
the re-registeration of the --config-file and --config-dir
options.
Change-Id: I650d8e299e92cbc5d10da47a7ce1b73ca8066bd0
|
|
|
|
|
|
| |
Fixes bug 967808
Change-Id: Ic4c1fc5520cb96f40b6ed87bfff024906f983235
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If openstack.common is not installed, but another module has declared
the openstack namespace an ImportError is thrown since the common doesnt
exist in the openstack namespace. This falls back to importing cfg
directly from ./openstack/common/cfg.py.
Also ensures that openstack/__init__.py exists in the destination
* Fixes LP951197
Change-Id: I88c26fb7cc1aed97e66b068e4f0562b1f00b2b29
|
|
|
|
|
|
|
|
|
| |
Fixes bug #930625
Remove backslash continuations in openstack-common.
Fix type checking taboos.
Change-Id: I49ddb9ff5fa5af760dcfccb52cb4793b71e02f19
|
|
|
|
|
|
|
|
|
|
|
|
| |
nosetests tries to import update.py and fails.
Re-factor the code so that we have a main function that doesn't get
executed on import.
Note: setup.py would break nose similarly, except nose ignores setup.py
by default.
Change-Id: I609019d492f6fc2d7f2e8b6165228f879cf1ddb7
|
|
See: http://wiki.openstack.org/CommonLibrary#Incubation
Change-Id: Ie90d40952909f766fdcac38379bf6b1ac1a0e5c7
|