This appears to be an unmaintained fork of the original code, which
lives elsewhere [1]. Kill it.
[1] https://github.com/cloud-init/cloud-init
Change-Id: I1f57197f1f67aa6adce152b5e4acc63a72277c6a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
this improves tox-venv to:
a.) consider ./.tox as the tox dir
useful if you run tox-venv from ~/bin and you're in cloud-init dir
with .tox there.
if no tox.ini and .tox are in this dir, fall back to using
the old look ${0%/*}/../.tox
b.) support '--list'
ie, running tox-venv adds support to tox-venv so you can list environments
explicitly
c.) outputs the list of available environments with --help
a '*' at the end indicates the environment appears presnt.
d.) any environment not present will be created with unless '--no-create'
e.) 4 spaces instead of 3 for indentation consistency with python
Example usage:
$ tox-venv docs python --version
Python 3.4.3+
Change-Id: I8a3d07c27fc3e4e41421e59ac5f47628a3612b83
httpretty does not handle proxy well, but the need for http_proxy and
https_proxy is present if you're needing to install pip packages
behind a proxy.
Right now this will fail:
http_proxy=http://my.proxy/ tox --recreate
Example failures are in
UrlHelperWaitForUrlsTest.test_url_wait_for
it seems reasonable that we would never want proxy set when running tests
as we should never be doing real http traffic.
This just wraps our calls to nosetests with something that removes
the http_proxy friends.
Change-Id: I96585acaed0c8d70e1925b3859c85c87d1e07b2f
Fixed all complaints from running "make pep8". Also version locked
pep8 in test-requirements.txt to ensure that pep8 requirements don't
change without an explicit commit.
This just does python rewrites of these tools that were shell or sed or
grep. Clearly the user of cloud-init has python, but it turns out that
getting sane versions of sed or grep on different unixes is less than
simple.
There are just some cleanups here, and use of simply 'sed' rather than
grep and cut. The motivation is to support running with non gnu
'grep' that doesn't have -P.
It seems like at least RHEL does not have the "--stderr" option
but instead only supports the short version "-s" so add a check
that will switch from the long version to the short version when
RHEL is detected.
of the init class are reset so that when they are
regenerated that they will use the updated data
instead of using previous data (since they weren't reset).
1. Remove the usage of the path.join function now that all code should
be going through the util file methods (and they can be mocked out as
needed).
2. Adjust all occurences of the above join function to either not use it
or replace it with the standard os.path.join (which can also be mocked
out as needed)
3. Fix pylint from complaining about the tests folder 'helpers.py' not
being found.
4. Add a pylintrc file that is used instead of the options hidden in the
'run_pylint' tool.