← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~smoser/cloud-init:bug/package-build-no-stylechecks into cloud-init:master

 

The proposal to merge ~smoser/cloud-init:bug/package-build-no-stylechecks into cloud-init:master has been updated.

Commit Message changed to:

tox/build: do not package depend on style requirements.

When the style/checking dependencies were updated in
test-requirements.txt, the debian package build dependencies created
by ./packages/bddeb were also updated.  Pycodestyle was added to the list
in order to pin its version.  That broke the package build for 16.04.  The
reason for this is simply that python3-pycodestyle is not available in
16.04.

The change here is to remove style dependencies from test-requirements,
and add them to the tox environments directly.  We had previously changed
the package build process to not run pep8 or flake8 simply to avoid having
to code to N different versions of style checkers (3bcb72c593f).

The link between package build and test-requirements still exists, though.
So future breakage can occur if any package is added to
test-requirements.txt (or requirements.txt) if the target distro release
does not have a python3-<packagename> in its archive.

There is also a bit of a tox.ini cleanup here, in that we do not have to
explictly list '-rrequirements.txt' as the setup.py pulls those in.  And
lastly, we drop the -rtest-requirements.txt from the base 'testenv', and
add these test requirements only to environments that need to run test.

Finally, a change to packages/debian/control.in to drop the build
dependencies that were listed for style checking and also a dependency
on iproute2 which was a bad unit test that has been previously fixed.

For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/324541
-- 
Your team cloud-init commiters is requested to review the proposed merge of ~smoser/cloud-init:bug/package-build-no-stylechecks into cloud-init:master.


References