Merge lp:~allenap/python-oops-tools/use-psycopg2-2.4.1 into lp:python-oops-tools

Proposed by Gavin Panella
Status: Merged
Approved by: Gavin Panella
Approved revision: 21
Merged at revision: 24
Proposed branch: lp:~allenap/python-oops-tools/use-psycopg2-2.4.1
Merge into: lp:python-oops-tools
Diff against target: 25 lines (+4/-0)
2 files modified
setup.py (+1/-0)
versions.cfg (+3/-0)
To merge this branch: bzr merge lp:~allenap/python-oops-tools/use-psycopg2-2.4.1
Reviewer Review Type Date Requested Status
Diogo Matsubara (community) Approve
Review via email: mp+82537@code.launchpad.net

Commit message

Mandate psycopg2 2.4.1.

Description of the change

This forces the use of psycopg2 2.4.1 so that environments in Lucid
and Oneiric more closely resemble one another, and to avoid hitting
an incompatibility between Django 1.3 and pyscopg2 2.4.2.

To post a comment you must log in.
Revision history for this message
Diogo Matsubara (matsubara) wrote :

Looks good. Thanks Gavin!

review: Approve
Revision history for this message
Launchpad PQM Bot (launchpad-pqm) wrote :

The attempt to merge lp:~allenap/python-oops-tools/use-psycopg2-2.4.1 into lp:python-oops-tools failed.Below is the output from the failed tests.

find . -type f -name '*.py[co]' -exec rm -f {} \;
rm -f bin/buildout
rm -f src/oopstools/settings.py
bzr clean-tree --unknown --force
bzr up download-cache
python bootstrap.py \
  --setup-source=ez_setup.py \
  --download-base=download-cache/dist --eggs=eggs
Download error: [Errno 101] Network is unreachable -- Some packages may not be found!
Download error: [Errno 101] Network is unreachable -- Some packages may not be found!
Generated script '/home/pqm/pqm-workdir/oops-tools/bin/buildout'.
bin/buildout configuration:db-port=5433
Develop: '/home/pqm/pqm-workdir/oops-tools/.'
Getting distribution for 'psycopg2==2.4.1'.
An error occured when trying to install psycopg2 2.4.1.Look above this message for any errors thatwere output by easy_install.

W: line 3 [buildbot-staging]: Deprecated key 'location' used
I: This option will be removed in the future; please update your configuration
W: line 1 [pqm]: Deprecated key 'location' used
I: This option will be removed in the future; please update your configuration
W: line 2 [pqm-oops-tools]: Deprecated key 'location' used
I: This option will be removed in the future; please update your configuration
I: [pqm-oops-tools chroot] Running command: "cd /home/pqm/pqm-workdir/oops-tools && make check"
Nothing to delete.
+N dist/psycopg2-2.4.1.tar.gz
All changes applied successfully.
Updated to revision 50 of branch http://bazaar.launchpad.net/~launchpad/lazr-source-dependencies/download-cache
Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.
error: Setup script exited with 1
While:
  Installing.
  Getting section filetemplates.
  Initializing part filetemplates.
  Getting distribution for 'psycopg2==2.4.1'.
Error: Couldn't install: psycopg2 2.4.1
make: *** [bin/buildout] Error 1

Revision history for this message
Gavin Panella (allenap) wrote :

I've filed an RT to address the landing issue:

  #49246 libpq-dev needed on python-oops-tools Tarmac chroot
    https://rt.admin.canonical.com//Ticket/Display.html?id=49246

Revision history for this message
Launchpad PQM Bot (launchpad-pqm) wrote :

Attempt to merge lp:~allenap/python-oops-tools/use-psycopg2-2.4.1 into lp:python-oops-tools failed due to merge conflicts:

text conflict in versions.cfg

21. By Gavin Panella

Merge trunk, resolving 1 conflict.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'setup.py'
2--- setup.py 2011-11-21 03:42:03 +0000
3+++ setup.py 2011-11-30 17:09:25 +0000
4@@ -59,6 +59,7 @@
5 'oops',
6 'oops-amqp',
7 'oops-datedir-repo',
8+ 'psycopg2',
9 'pytz',
10 'setuptools',
11 'South',
12
13=== modified file 'versions.cfg'
14--- versions.cfg 2011-11-21 03:42:03 +0000
15+++ versions.cfg 2011-11-30 17:09:25 +0000
16@@ -22,6 +22,9 @@
17 oops = 0.0.10
18 oops-amqp = 0.0.4
19 oops-datedir-repo = 0.0.14
20+# XXX: 2011-11-17 GavinPanella bug=891249: pyscopg2 2.4.2 is
21+# incompatible with Django 1.3, but 2.4.1 works fine.
22+psycopg2 = 2.4.1
23 setuptools = 0.6c11
24 z3c.recipe.filetemplate = 2.0.3
25 z3c.recipe.sphinxdoc = 0.0.8

Subscribers

People subscribed via source and target branches

to all changes: