~ubuntu-branches/ubuntu/saucy/python-keyring/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Dmitry Shachnev, Jakub Wilk, Dmitry Shachnev
  • Date: 2013-06-22 11:03:11 UTC
  • mfrom: (1.1.6) (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130622110311-hnoz93tbfi0wwtf6
Tags: 1.4-1
* Team upload.

[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Dmitry Shachnev ]
* New upstream release (closes: #697215).
* Added convert-crypto-keyring script for conversion of pre-0.9 Crypto
  keyrings to the new format.
* Recommend python[3]-secretstorage, as the default backend now uses it.
* Suggest python[3]-gi and gir1.2-gnomekeyring-1.0, as the GNOME Keyring
  backend now uses it.
* Suggest python-gdata, python-keyczar and python[3]-[py]kde4, as other
  backends use them (closes: #618760).
* Drop all previous patches, applied upstream.
* debian/patches/no-pytest-runner.patch: do not require pytest-runner,
  it is not in Debian.
* debian/patches/fix-importkiller.patch: fix ImportKiller not working
  with Python 3.x (fixes the testsuite).
* debian/patches/catch-dbus-errors.patch: catch D-Bus errors when checking
  if SecretService is supported (can be dropped when the next SecretStorage
  version is released, where this is fixed).
* Bump Standards-Version to 3.9.4 and debhelper compat level to 9.
* Disable HTTP traffic in debian/rules.
* Run upstream testsuite during build; simplify other debian/rules parts.
* Bump python-defaults build-dependency to ensure that python2.7 is
  available, as we use it directly in tests.
* Build-depend on python[3]-mock and python[3]-crypto, for the testsuite.
* Remove build directory, egg-info directory and .pyc files in clean
  target.
* Update some file names to match upstream renamings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
#DH_VERBOSE=1
4
4
 
5
 
PYTHON2=$(shell pyversions -vr)
6
 
PYTHON3=$(shell py3versions -vr)
 
5
PYTHON2=$(shell pyversions -r)
 
6
PYTHON3=$(shell py3versions -r)
 
7
 
 
8
# Send HTTP traffic to “discard” service
 
9
export http_proxy = http://127.0.1.1:9/
 
10
export https_proxy = ${http_proxy}
7
11
 
8
12
%:
9
13
        dh $@ --with python2,python3
10
14
 
 
15
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
11
16
override_dh_auto_test:
12
 
        echo "nocheck set, skipping tests"
 
17
        set -ex; python2.7 -m unittest discover -v;
 
18
        set -ex; cd build/lib; for py in $(PYTHON3); do \
 
19
                $$py -m unittest discover -v; \
 
20
        done;
 
21
endif
 
22
 
 
23
override_dh_auto_clean:
 
24
        rm -rf build keyring.egg-info
 
25
        find -type f -name *.pyc -delete
13
26
 
14
27
override_dh_auto_build:
15
28
        dh_auto_build
16
29
        set -ex; for py in $(PYTHON3) ; do \
17
 
                python$$py setup.py build; \
 
30
                $$py setup.py build; \
18
31
        done;
19
32
 
20
33
override_dh_auto_install:
21
34
        dh_auto_install
22
35
        set -ex; for py in $(PYTHON3) ; do \
23
 
                python$$py setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
 
36
                $$py setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
24
37
        done;
25
38
 
26
39
override_dh_installchangelogs:
27
 
        dh_installchangelogs -k CHANGES.txt
 
40
        dh_installchangelogs -k CHANGES.rst
28
41
 
29
42
get-orig-source:
30
43
        uscan --force-download --repack --verbose