~ps-jenkins/ubuntu-system-image/ubuntu-utopic-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: CI bot
  • Date: 2014-09-17 17:56:35 UTC
  • mfrom: (236.1.3 citrain-24.0u1)
  • Revision ID: ps-jenkins@lists.canonical.com-20140917175635-vinboezbdhcojvh9
* New upstream release.
  - LP: #1353178 - The channel.ini file can override the device name by
    setting `[service]device`.
  - LP: #1324241 - Add optional instrumentation to collect code coverage
    data during test suite run via tox.
  - LP: #1279970 - When an exception occurs in a `system-image-dbus`
    D-Bus method, signal, or callback, this exception is logged in the
    standard log file, and the process exits.  Also, `[system]loglevel`
    can now take an optional ":level" prefix which can be used to set
    the log level for the D-Bus API methods.  By default, they log at
    `ERROR` level, but can be set lower for debugging purposes.
  - LP: #1365646 - Don't crash when releasing an unacquired checking lock.
  - LP: #1365761 - When checking files for `last_update_date()` ignore
    PermissionErrors and just keep checking the fall backs.
  - LP: #1369714 - `system-image-cli --dbus` has been deprecated and
    will be removed in the future.
* d/control: Remove tox as a build dependency to avoid having to MIR tox,
  virtualenv, and pip.
* d/rules:
  - Call nose2 explicitly to avoid use of tox.
  - Remove unnecessary override_dh_auto_clean rule.
* d/system-image-common.post{inst,rm}: `set -e` to make lintian happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
%:
9
9
        dh $@ --with python3 --buildsystem=pybuild
10
10
 
11
 
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
12
 
test-python%:
13
 
        unset http_proxy; unset https_proxy; export HOME=/tmp; \
 
11
override_dh_auto_test:
 
12
        unset http_proxy; unset https_proxy; \
14
13
        export SYSTEMIMAGE_REACTOR_TIMEOUT=1200; \
15
14
        export SYSTEMIMAGE_DBUS_DAEMON_HUP_SLEEP_SECONDS=2; \
16
 
        nodot=$(shell echo $* | cut --complement -b 2); \
17
 
        tox -e py$${nodot}
18
 
 
19
 
override_dh_auto_test: $(PYTHON3:%=test-python%)
20
 
else
21
 
override_dh_auto_test:
22
 
endif
 
15
        PYBUILD_SYSTEM=custom \
 
16
        PYBUILD_TEST_ARGS="{interpreter} -m nose2 -v" dh_auto_test
23
17
 
24
18
# pybuild can't yet handle Python 3 packages that don't start with "python3-".
25
19
# See bug #751908 - In the meantime, this override isn't perfect, but it gets
57
51
        rst2man dbus-manpage.rst > debian/tmp/system-image-dbus.man
58
52
        rst2man ini-manpage.rst > debian/tmp/client-ini.man
59
53
        dh_installman
60
 
 
61
 
override_dh_auto_clean:
62
 
        dh_auto_clean
63
 
        rm -rf build
64
 
        rm -rf *.egg-info