packaging TurboGears applications

2006-10-04 Thread Gustavo Noronha Silva
Hello,

I'm toying with packaging the WhatWhat Status[0], a simple but cool
TurboGears[1] application, mainly to figure out some best practice and
understand what problems we'll need to solve.

I'd like to have some people, mainly those doing real work with
TurboGears, review the package I have up to now:

http://people.debian.org/~kov/stuff/

I have minimally patched whatwhat to read config files from two
places:

 0. /var/cache/turbogears/whatwhat/prod.cfg
 1. /etc/turbogears/whatwhat/prod.cfg

In that order. The 0 file is created automatically by the package using
the debconf answers; the second one is for admin customization of the
options.

Right now the package uses dbconfig-common to setup the database, and
writes the configuration information to the /var/ hosted file. It will
hardcode localhost as the host for now, though; I'm working around a
dbconfig-common problem which I'll report or figure is my fault: I'd
like to make it use the postgres user using ident on socket and set the
application to use tcp/ip and password for its own needs.

Another problem is how to assign a port for the application.
Right now it has no configuration directive automatically added, which
makes it try the default port: 8080. I have not done anything on this
front yet. I provide a simple initscript which starts whatwhat's
builtin server.

I don't know if testing for open ports on postinst and filling the
best candidate to the /var/ hosted file is a nice idea, and if it would
be possible to use a single paste-based application to mount all of the
installed turbogears applications, and let the administrator do whatever
"production" setup she sees fit.

The package does have problems, and I'll be working on them. I'd like
to have input on these practical questions, so I can think of writing a
small policy and go forward to thinking about 'how to integrate TG
extensions and widgets' in Debian packaging, as well =). Ah, you will
need the experimental python-sqlobject package.

See you,

[0]: http://cleverdevil.org/whatwhat
[1]: http://www.turbogears.org/; TG 1.0b1 is in Etch, using the
SQLAlchemy backend as default, since the SQLObject version it requires
is not released, thus not suitable for unstable as of yet. But it's
there. Yay!

-- 
  Gustavo Noronha Silva <[EMAIL PROTECTED]>
http://www.debian.org/ | http://kov.eti.br/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Bug#381389: dh_pycentral patch

2006-10-04 Thread Raphael Hertzog
Context for debian-python: we're deprecating dh_python on Joey's request
and thus move the logic of substvars generation into
dh_pycentral/dh_pysupport. debhelper/python-central/python-support will
be jointly uploaded in 2 days (the packages are in DELAYED/2-days right now)
to make that happen.

We need to make sure that we didn't break anything by doing so.

On Tue, 03 Oct 2006, Joey Hess wrote:
> Ok, done in a new version of debhelper I've uploaded to the 3-day
> delayed queue. Only 3 days left to sort everything out..

I prepared an updated of python-central which integrates the dh_python
code into dh_pycentral. It's here:
http://people.debian.org/~hertzog/packages/python-central.patch
http://people.debian.org/~hertzog/packages/python-central_0.5.6.dsc
Doko has more changes for python-central, he will merge my changes
and upload the final package into DELAYED/2-day.

Now it's time to test the combination. Someone should install
the three packages:
http://people.debian.org/~hertzog/packages/python-central_0.5.6_all.deb
http://people.debian.org/~hertzog/packages/debhelper_5.0.39_all.deb
http://people.debian.org/~hertzog/packages/python-support_0.5.3_all.deb
(I had to use dpkg --force-conflicts -i *.deb, giving dpkg -iGROEB *.deb didn't
work)

And then recompile many python packages using
python-support/python-central and watch out differences (in the generated
dependencies in particular).

Some help is welcome. My first tests with dh_pycentral are good but I only
checked 2 packages.

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]