summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* pkg build ci: Add make ci-deps-<distro> target to install pkgsChad Smith2017-06-131-0/+8
| | | | | | | | | | | | | | | | | | | | | | This change adds a couple of makefile targets for ci environments to install all necessary dependencies for package builds and test runs. It adds a number of arguments to ./tools/read-dependencies to facilitate reading pip dependencies, translating pip deps to system package names and optionally installing needed system-package dependencies on the local system. This relocates all package dependency and translation logic into ./tools/read-dependencies instead of duplication found in packages/brpm and packages/bddeb. In this branch, we also define buildrequires as including all runtime requires when rendering cloud-init.spec.in and debian/control files because our package build infrastructure will also be running all unit test during the package build process so we need runtime deps at build time. Additionally, this branch converts packages/(redhat|suse)/cloud-init.spec.in from cheetah templates to jinja to allow building python3 envs.
* cloud.cfg: move to a template. setup.py changes along the way.Scott Moser2017-06-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Here we move the config/cloud.cfg to be rendered as a template. That allows us to maintain deltas between distros in one place. Currently we use 'variant' variable to make decisions. A tools/render-cloudcfg is provided to render the file. There were changes to setup.py, MANIFEST.in to allow us to put all files into a virtual env installation and to render the cloud-config file in 'install' or 'bdist' targets. We have also included some config changes that were found in the redhat distro spec. * include some config changes from the redhat distro spec. The rendered cloud.cfg has some differences. Ubuntu: white space and comment changes only. Freebsd: - whitespace changes and comment changes - datasource_list definition moved to be closer to 'datasource'. - enable modules: migrator, write_files - move package-update-upgrade-install to final. The initial work was done by Josh Harlow.
* Makefile: add deb-src and srpm targets. use PYVER more places.Scott Moser2017-06-081-5/+15
| | | | | This just adds targets for deb-src and srpm, and uses PYVER anywhere where we run a python program.
* makefile: fix python 2/3 detection in the MakefileChad Smith2017-06-081-2/+2
| | | | | | | | Fix detection of python in a non-python3 environment. The old path always used python3. The 2 fixes here are: a.) escape the '$' before the subshell. b.) use shell builtin 'command -v' rather than 'which' in case 'which' is not available.
* make deb: Add devscripts dependency for make deb. Cleanup packages/bddeb.Chad Smith2017-05-161-0/+4
| | | | | | | | | | | | Add a simple dependency check to "make deb" target for devscripts. Rework a bit of the logic in package/bddeb to drop superfluous STD_NAMED_PACKAGES to avoid duplication of requirements already listed in (test-)?requiremets.txt. All "standard" packages can be assumed to have either python3- or python- prefix if not listed in NONSTD_NAMED_PACKAGES. This branch also moves logic inside write_debian_folder which is unneeded up in main. LP: #1685935
* Remove style checking during build and add latest style checks to toxJoshua Powers2017-02-061-1/+4
| | | | | | | | | | | - make check will no longer run the style checks, that way package builds wont fail on a style difference in versions of the style tools in that distro. - created style-check make file target to continue to run pep8 and pyflakes - added tox envs 'tip-pycodestyle' and 'tip-pyflakes' to run latest style checking. These are not enabled by default run of tox. LP: #1652329
* build: fix running Make on a branch with tags other than masterScott Moser2017-01-231-3/+4
| | | | | | | | running 'make' on a git branch other than master would fail with complaint that the tools/read-version reported a different version than the code. Change to only consider tags starting with 0-9 in read-version.
* validate-yaml: use python rather than explicitly python3Scott Moser2017-01-111-1/+1
| | | | | | | | The change here is to use '/usr/bin/env python' in validate-yaml.py as all other tools/*.py do. Additionally, change the Makefile to invoke validate-yaml.py with the python that it has selected for other things (PYVER).
* drop modification of version during make-tarball, tools changes.Scott Moser2016-08-051-8/+11
| | | | | | | | | | | | | Modification of the tarball became problematic, as it meant that any tool extracting source would find the orig source tarball different. I found this unusable when trying to use 'gbp buildpackage'. Other changes here are to better support using python3 or python2 for the build. Makefile will try to call the right python version and can be told which python to use. read-version: by adding 'tiny_p' and avoiding the import of cloudinit.util, we need less dependencies to run this.
* Apply pep8, pyflakes fixes for python2 and 3Scott Moser2016-03-041-12/+30
|\ | | | | | | | | | | | | | | | | | | Update make check target to run pep8 and run pyflakes or pyflakes3 depending on the value of 'PYVER'. This way the python3 build environment does not need python2 and vice versa. Also have make check run the 'yaml' test. tox: have tox run pep8 in the pyflakes
| * Apply pep8, pyflakes fixes for python2 and 3 Ryan Harper2016-03-031-8/+14
| |\ |/ / | | | | Update make check target to use pep8, pyflakes, pyflakes3.
| * Fix pyflake/pyflake3 errorsRyan Harper2016-03-031-1/+0
| | | | | | | | | | Now we can run make check to assess pep8, pyflakes for python2 or 3 And execute unittests via nosetests (2 and 3).
| * Update pep8 runner and fix pep8 issuesRyan Harper2016-03-031-4/+5
| |
| * Makefile: add make check target to run pep8, pyflakes, unittestsRyan Harper2016-03-031-0/+10
| | | | | | | | | | Run a check of pep8, pyflakes (py27), pyflakes3 (py34), and use nosetest and nosetest3 to run unittests. We should pass all of these.
* | make package build run testsScott Moser2016-03-031-2/+2
| |
* | run pyflakes in more places, fix falloutScott Moser2016-03-031-2/+4
|/ | | | | this makes 'make' run pyflakes, so failures there will stop a build. also adds it to tox.
* fix 'Make pyflakes'Scott Moser2015-05-011-1/+1
|
* further remove evidence of pylint.Scott Moser2014-08-261-1/+1
| | | | | This just removes comments '# pylint:' things and other code remnents of pylint.
* Remove pylintJay Faulkner2014-08-261-3/+0
| | | | | pylint was not passing, and per smoser in IRC pylint can/should be removed.
* merge requirement changesJoshua Harlow2014-01-201-5/+18
|\ | | | | | | | | | | | | | | | | This splits up 'Requires' into requirements.txt and test-requirements.txt to differenciate the build dependencies and runtime dependencies. one sticky thing still exists in that the packages/bddeb doesn't: - list any Build-Depends - address versions in the requirements.txt
| * Add output when starting to run testsJoshua Harlow2014-01-191-0/+1
| |
| * Phony not phoneJoshua Harlow2014-01-191-1/+1
| |
| * Run pyc cleaning before running testsJoshua Harlow2014-01-171-4/+6
| |
| * Update makefile to install from updated requirements filesJoshua Harlow2014-01-171-3/+12
|/
* fix indentation a bit in MakefileScott Moser2013-07-171-3/+3
|
* Add support for building a SLES rpm packageJuerg Haefliger2013-06-271-3/+7
|
* Add a check on the changelog version comparing to the code version.Joshua Harlow2012-11-141-2/+10
|
* Add a makefile yaml checking targetJoshua Harlow2012-11-071-1/+8
| | | | | and fix the cases where the cc yaml is not correct.
* trivial: -name first is faster due to no need for statScott Moser2012-11-071-1/+1
|
* Helpful cleanups.harlowja2012-10-271-4/+4
| | | | | | | | | | | | | | | | 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.
* fix pylint in all files used by ./tools/run-pylintScott Moser2012-08-091-1/+1
| | | | | | | 'make pylint' was not checking tests and tools. This fixies a bunch of pylint/pep8 issues in that code. It also enables 'make pylint' to check them.
* Makefile: change deb and rpm targets to not change working dirScott Moser2012-07-091-2/+2
| | | | 'cd packages && ./bddeb' is no longer necessary.
* Add a section for building an rpm and a section for building a debJoshua Harlow2012-06-261-1/+7
|
* 1. Separate the pep8 check from the pylint checkharlowja2012-06-231-1/+4
| | | | | a. This allows them to be run as different tools (if desired) 2. Adjust the makefile to have a 'make pep8' section which can run this new script
* Pass along any environment settings via the variable 'noseopts'Joshua Harlow2012-06-211-1/+1
|
* Add in the new binary to be used in files found.Joshua Harlow2012-06-201-0/+1
|
* 1. Add in a clean section that will remove the /var/lib/cloud dir and the ↵Joshua Harlow2012-06-181-1/+5
| | | | cloud.log file (helpful for testing)
* Add the running of 2to3 via the makefile.Joshua Harlow2012-06-161-1/+4
|
* Updated so that pylint and pyflakes will now run over cloudinit/ and bin/ ↵Joshua Harlow2012-06-151-2/+4
| | | | python files
* Tweak Makefile to just run unittests for the "all" target.Mike Milner2012-01-121-4/+4
|
* Add initial unit test framework.Mike Milner2012-01-121-0/+14
Add initial tests for mergedict.