~ubuntu-branches/ubuntu/precise/python-keyring/precise-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Carl Chenet
  • Date: 2012-02-14 12:07:30 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120214120730-ekuysup9a2s5yl9d
Tags: 0.7.1-1
* New upstream version (Closes: #656680, #624690)
* debian/control
  - Add X-Python-Version for Python 3.2
  - Add B-D for Python 3.2
  - Add unzip for B-D to repack upstream sources
  - Add python3-keyring description
  - Recommends python3-crypto for Python3 binary package
* Add python-keyring.install and python3-keyring.install files
* debian/rules
  - Execute unit tests if available
  - repack upstream sources
* debian/watch
  - New URL to catch upstream sources

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
#DH_VERBOSE=1
 
4
 
 
5
PYTHON2=$(shell pyversions -vr)
 
6
PYTHON3=$(shell py3versions -vr)
 
7
 
3
8
%:
4
 
        dh $@ --with python2
 
9
        dh $@ --with python2,python3
 
10
 
 
11
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 
12
test-python2.7:
 
13
        # The test suite needs a functioning $HOME.
 
14
        mkdir -p build/home
 
15
        HOME=$(CURDIR)/build/home \
 
16
        python$* -m unittest discover
 
17
 
 
18
test-python%:
 
19
        @echo "Test suite does not run in Python $@.  Skipping."
 
20
 
 
21
override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%)
 
22
else
 
23
        @echo "nocheck set, skipping tests"
 
24
endif
 
25
 
 
26
override_dh_auto_build:
 
27
        dh_auto_build
 
28
        set -ex; for py in $(PYTHON3) ; do \
 
29
                python$$py setup.py build; \
 
30
        done;
 
31
 
 
32
override_dh_auto_install:
 
33
        dh_auto_install
 
34
        set -ex; for py in $(PYTHON3) ; do \
 
35
                python$$py setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
 
36
        done;
5
37
 
6
38
override_dh_installchangelogs:
7
39
        dh_installchangelogs -k CHANGES.txt
 
40
 
 
41
get-orig-source:
 
42
        uscan --force-download --repack --verbose