~ubuntu-branches/ubuntu/trusty/apturl/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Brian Murray, Brian Murray, Colin Watson, Barry Warsaw
  • Date: 2012-06-11 10:32:52 UTC
  • Revision ID: package-import@ubuntu.com-20120611103252-sls6xzdyuxfzt3v0
Tags: 0.5.1ubuntu4
[ Brian Murray ]
* Port to Python 3:
  - Use Python 3 style print functions
* AptUrl/Parser.py:
  - ensure MAX_URL_LEN/10 returns an int

[ Colin Watson ]
* AptUrl/gtk/backend/InstallBackendSynaptic.py:
  - Keep a reference to the data tuple passed to GObject.child_watch_add
    to avoid attempts to destroy it without a thread context.
  - Open temporary synaptic selections file in text mode.

[ Barry Warsaw ]
* Additional Python 3 fixes:
  + Port setup.py to Python 3.
  + Use the new python-apt API since the legacy API is not available in
    Python 3.
  + ki18n() takes bytes.
  + Fix relative imports so the code can be run from source.
  + Fixed some additional packaging paths.
  + Change #! lines to use python3.
  + Changed debian/control and debian/rules to use python3.
  + Change debian/compat == 9
  + apturl now must require python3-aptdaemon.gtk3widgets (i.e. not |
    synaptic) due to the Python 3 port of update-manager.
* Other changes:
  + Remove the need for threads in the KDE front-end.
  + Enable running the test suite via `python3 -m unittest discover`
  + i18n updates.
  + Various and sundry pyflakes, whitespace, style, line length, and
    spelling fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
%:
3
 
        dh --with python2 $@
 
3
        dh $@ --with python3
 
4
 
 
5
override_dh_auto_build:
 
6
        python3 setup.py build
 
7
 
 
8
override_dh_auto_install:
 
9
        python3 ./setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
 
10
 
 
11
override_dh_auto_test:
 
12
        python3 -m unittest discover -vv
4
13
 
5
14
override_dh_auto_clean:
6
15
        rm -f AptUrl/Version.py
7
 
 
8
 
override_dh_auto_install:
9
 
        python ./setup.py install --prefix=$(CURDIR)/debian/tmp/usr
10
 
 
11
 
override_dh_install:
12
 
        dh_install --sourcedir=debian/tmp --fail-missing
 
16
        python3 setup.py clean -a
 
17
        rm -rf build
 
18
        rm -rf *.egg-info
 
19
        find . -name __pycache__ | xargs rm -rf
13
20
 
14
21
 
15
22
PKG=apturl