lp:~harlowja/cloud-init/tox-venvs
- Get this branch:
- bzr branch lp:~harlowja/cloud-init/tox-venvs
Branch merges
- Server Team CI bot: Needs Fixing (continuous-integration)
- cloud-init Commiters: Pending requested
-
Diff: 431 lines (+64/-284)8 files modifiedHACKING.rst (+2/-2)
Makefile (+12/-26)
pylintrc (+0/-19)
test-requirements.txt (+1/-3)
tools/hacking.py (+0/-170)
tools/run-pep8 (+0/-38)
tools/run-pylint (+0/-26)
tox.ini (+49/-0)
Branch information
Recent revisions
- 934. By Joshua Harlow
-
Use a venv for testing and for lint checking
Remove the pep8 & pylint tools and use a venv
with tox instead. Also create a venv that will
run for the given python version to perform the
cloud-init tests.These help remove the need to install the same
dependencies in the root python environment env
to just run the standard set of tests. - 933. By Scott Moser
-
read_file_or_url: raise UrlError with 404 on ENOENT
This makes it easier to call read_file_or_url and handle file or url
errors. Now read_file_or_url will raise a UrlError in either case
on errors. - 931. By Joshua Harlow
-
Fix logexc usage in freebsd distro
- There appeared to be a few logexc calls
that did not pass the logger in, fix those
locations where this occured.
- When a group member adding fails, log the
error and try the next member instead of
failing adding any more members - 930. By Scott Moser
-
Fixes for SmartOS datasource
1. fixed conflation of user-data and cloud-init user-data. Cloud-init
user-data is now namespaced as 'cloud-init:user- data'.
2. user-scripts (not user-data) are now fetched from the meta-data service
each boot and executed as in the scripts directory
3. datacenter name is now namespaced as sdc:datacenter
4. user-scripts will now have '#!/bin/bash' magically prepended
if the 'file' thinks its plain text and it does not start with '#!' - 928. By Joshua Harlow
-
Freebsd cleanups
- Remove direct usage of open() and use the
corresponding helpers instead.
- Fix the non-existence of the copyfile routine
and just use the ones that do exist in the
utils module to do the file backup.
- Use class level constants for the various file
names read, this matches the same usage in the
other distro types. - 927. By Scott Moser
-
pylint and long line fixes.
This fixes up many long lines to be < 80 chars and some other
pylint issues. pylint 1.1 (in trusty) is now complaining about
the lazy logging, so I'll clean that up when I touch things. - 926. By Scott Moser
-
add --dummy-
variables- rgx= param when calling pylint new pylint in trusty complains about '_' variables if we don't do this.
This seems to be ok in older versions of pylint also. - 925. By Scott Moser
-
pep8/pylint fixes
tools/run-pep8 wasn't checking all python files.
tools/run-pylint wasnt checking bin/cloud-initfixed resultant pep8 issues after finding them.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~cloud-init-dev/cloud-init/trunk