Commit Graph

18 Commits

Author SHA1 Message Date
Stephen Finucane 868096bb52 Retire cloud-init
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>
2019-04-01 16:48:35 +01:00
malei d0f880277b Put py34 first in the env order of tox
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.

Change-Id: I50f894062cf681a44fe7da2342a74b31898f47e8
2015-10-19 03:26:29 +08:00
Jenkins 20229fb08e Merge "Deprecated tox -downloadcache option removed" 2016-01-08 23:26:29 +00:00
janonymous 36a416726b py26 is no longer supported by Infra's CI
Python 2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it too.

Change-Id: I81d2a088bdf6f6052a45c4fabfdb32a662927098
2015-12-26 15:45:58 +05:30
Ondřej Nový 2109d5a196 Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Icf45281133b540aa556cb9812396328f368d6f02
2015-12-11 21:18:43 +01:00
Daniel Watkins a51119762c Configure basic logging, and make it possible to log to console.
--log-to-console will output messages at INFO and above to the
command-line.  This is super-useful when running cloud-init from a
terminal, when you don't want to have to dig in a log file.

Change-Id: Ieb3db384b73441c19ef463649c94b04ffaac8026
2015-09-04 15:40:22 +01:00
Daniel Watkins 4722397ef4 Convert reporting handlers to be instantiated.
This will allow us to actually have parameters passed in, which we'll
need for handlers with configuration options.

Change-Id: If105b8108d80b49b6da9e16c7520ddcee1f20c8f
2015-07-17 13:08:47 +01:00
Scott Moser 3e9bfcfd7a fix 'tox -e docs' by limiting sphinx versions
pbr has issues invoking sphinx versions >1.3 (http://pad.lv/1379998)

The fix here is two-fold:
 a.) no longer use 'pip install --pre'
     I'd rather spend less time debugging failures due to new pip packages.
 b.) shorten the list of requirements on sphinx as a result of 'a'
     Since 1.3b* versions were pre, and we're no longer installing with --pre
     we do not need to explicitly blacklist them.

At a future date when pbr is available with a fix, we can remove the upper
limit on sphinx.

Change-Id: I696fc3e4ef8803bbb2a95e34501d5330a64ab93c
2015-07-02 17:11:08 -04:00
Joshua Harlow bf5c513472 Add importlib for python 2.6 *only*
Also fixes up a bunch of test issues that are now
being triggered on py2.6

Change-Id: I28b13ee3e1c47e2eb5266bc72c8f2da31220b99f
2015-07-02 09:41:23 -07:00
Daniel Watkins 2557d66fa4 Clean up stale auto-generated autodoc files.
This avoid modules that have been moved/removed from continuing to have
documentation generated for them.  We use git clean to allow us to have
other files in there.

Possibly not an issue on the build hosts, but definitely irritating
locally.

Change-Id: I3403e8227913904a25b6a0866adfcc628d60419e
2015-06-25 15:22:43 +00:00
Scott Moser e708c300aa tox: disable proxies when running nosetests
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
2015-06-25 09:54:55 -04:00
Daniel Watkins 765fe3c1f7 Move required tox version down to 1.6.
Change-Id: I9348711ea9df8121868fd866aae3a1869dab1339
2015-06-23 14:52:51 -06:00
Daniel Watkins 16e1ee3b51 Add doc8 checks to docs tox target.
And fix the one error that it throws up.

Change-Id: I51fb24562b5779fc40b9e8fcd3a62c5ea5478faf
2015-06-12 18:42:17 +01:00
Daniel Watkins 1a307e3af3 Don't use --cover-inclusive; Windows modules break it.
Fixing it should be a relatively minor change in nose, so I'll see if I
can get anywhere with that.

Change-Id: Ic883981d70bf6d4c344821fc45c70f1a0429ce7d
2015-06-11 10:23:38 +01:00
Daniel Watkins be893a9f51 Add tox targets for coverage testing.
These will require a minimum of 90% coverage to pass.

Also remove unnecessary 'deps = {[testenv]deps}' lines; all [testenv:*]
targets use the values in [testenv] for any missing configuration
options.

Change-Id: Ifa311965c0329ce406cfb9e44660240574dacb4a
2015-06-05 21:23:04 +01:00
Scott Moser 2b4e90d8ed LICENSE: license / header redux
- put a brief description of license in LICENSE file
- put full license versions in LICENSE-GPLv3 and LICENSE-Apache2.0
- simplify the per-file header to reference LICENSE

- also, tox.ini: work around httpretty issue

Change-Id: I259ed23767472047da823c1a67085e47afc561d8
2015-05-13 21:26:05 -04:00
Joshua Harlow 154a2ee413 Fix all the current brokeness
Add missing files and tweaks so that the automated
CI/flake8/pep8/docs/... and such work correctly.

Change-Id: I838b02bf0037569065b7c7914f4a68b92d7ebd6a
2015-04-01 11:54:46 -07:00
Scott Moser ee70dff712 initial functial tox 2015-01-21 16:21:49 -05:00