summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)Author
2015-02-11add tools/tox-venv for running in a tox envScott Moser
2015-02-10make bddeb work with python3 or python2Scott Moser
painful, and not perfect, but at this point the output builds on a vivid system python2 (bddeb --python2) or python3. * remove use of cheetah by bddeb in favor of builtin renderer * add '--python2' flag to bddeb and knowledge of python 2 and python3 package names. * read-dependencies can now read test-requirements also. * differenciate from build-requirements and runtime requirements.
2015-01-22Low hanging Python 3 fruit.Barry Warsaw
2015-01-06tools/run-pep8: remove leading ',' fed to --ignoreScott Moser
--ignore was being called with ',E121,E...' rather than 'E121,E...'. that resulted in odd behavior, missing the pep8 errors that are fixed here.
2014-12-09tools/ccfg-merge-debug: fix for updated user-data/vendor-dataScott Moser
this was broken previously when user-data and vender-data were brought together.
2014-09-29tools/build-on-freebsd: e2fsprogs provides blkidScott Moser
2014-09-29tools/build-on-freebsd: add blkid and e2fsprogrsScott Moser
2014-09-29tools/build-on-freebsd: sort pkgs listScott Moser
2014-09-03fix: Since these now actually exist in ports, install them properlyHarm Weites
(with pkg).
2014-09-02merge from trunkScott Moser
2014-08-26further remove evidence of pylint.Scott Moser
This just removes comments '# pylint:' things and other code remnents of pylint.
2014-08-26fix(pep8): Fix various pep8 violations and version-lock pep8Jay Faulkner
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.
2014-08-23change: Rename the config file to cloud.cfg-freebsd so it doesn'tHarm Weites
get copied per default. Packaging will take care of installing this configfile on the BSD platform.
2014-08-23fix: Use the correct variable.Harm Weites
2014-08-22build-on-freebsd: minor cleanups/bikesheddingScott Moser
2014-08-14fix: Install the python package that will install the required link toHarm Weites
the python2.7 binary. This defaults to 2.7, which is fine.
2014-08-10change: Install everything in the right location on both Linux (whichHarm Weites
ofcourse already was good) and FreeBSD (which realy likes /usr/local for this).
2014-08-10change: Save and restore the SSH keys between builds.Harm Weites
2014-08-09change: Make note of another python lib pypi takes care of.Harm Weites
2014-08-09change: Create a symlink to python2.7, to make sure running plain pythonHarm Weites
works.
2014-08-09new: Some datasources (like Smartos) use dmidecode to gather some specificHarm Weites
information, so install it.
2014-08-09fix: More dependencies.Harm Weites
2014-08-09new: Buildscript for installing on FreeBSD. This should do until aHarm Weites
proper port is created.
2014-02-28tools/make-tarball: add ability to include uncommited changesScott Moser
if you have UNCOMMITTED=1 in environment then the tree will contain uncommitted changes.
2014-01-24add --dummy-variables-rgx= param when calling pylintScott Moser
new pylint in trusty complains about '_' variables if we don't do this. This seems to be ok in older versions of pylint also.
2014-01-24pep8/pylint fixesScott Moser
tools/run-pep8 wasn't checking all python files. tools/run-pylint wasnt checking bin/cloud-init fixed resultant pep8 issues after finding them.
2014-01-22tools/read-dependencies tools/read-version: rewrite in pythonScott Moser
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.
2014-01-17Update makefile to install from updated requirements filesJoshua Harlow
2013-09-11fix read-versionScott Moser
2013-09-11better checking and portability in read-dependencies and read-versionScott Moser
2013-09-08tools/read-dependencies, read-version: cleanups, and use sed not grepScott Moser
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.
2013-04-17add debug output to ccfg-merge-debugScott Moser
Exeptions were being swallowed completely and no way to even see them other than log.
2013-04-09tools: fix [some] shell quoting problemsScott Moser
There were problems with these tools if the path had a space. This should make these tools safe. There are others that still have problems.
2013-04-09tools: fix [some] shell quoting problemsScott Moser
There were problems with these tools if the path had a space. This should make these tools safe. There are others that still have problems.
2013-04-03add merge debug toolScott Moser
2013-01-21Add in a tool to help make mime multipart messages.Joshua Harlow
2012-12-04replace if..else based on presense of /etc/redhat-release with use of -sScott Moser
instead of using '--stderr' on non-rhel based on the presense of /etc/redhat-release, just use the short form '-s' everywhere.
2012-11-28Check for running inside RHEL and adjust the logging options.Joshua Harlow
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. LP: #1083715
2012-11-10whitespace / indentation cleanupsScott Moser
These changes were pulled out of the previous merge (cc_yum_add_repo) as they were unrelated there. Re-applying them here.
2012-11-09Merge the yaml/cloud config examples checking tool.Joshua Harlow
2012-11-09Fix pep8 warnings.Joshua Harlow
2012-11-08Ensure that at needed stages the local variablesJoshua Harlow
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). LP: #1076811
2012-11-08Add non-zero exit code whenJoshua Harlow
bad yamls are found instead of returning zero in that case.
2012-11-08work with zsh by using 'emulate -L sh'.Scott Moser
This makes zsh act like 'sh', but only for the function local function. This way, we do not affect the user's shell, but get the behavior we want.
2012-11-08remove unused variable 'cr'. fix usage of 'value' to local 'val'Scott Moser
2012-11-08revert old zsh fix (revno 697)Scott Moser
2012-11-07Add a makefile yaml checking targetJoshua Harlow
and fix the cases where the cc yaml is not correct.
2012-11-07test and path cleanups.Joshua Harlow
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.
2012-11-06tools/Z99-cloud-locale-test.sh: avoid warning when shell is zshScott Moser
LP: #1073077
2012-10-27Helpful cleanups.harlowja
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.