tap2rpm should read configuration from the .tac file it packages.

[email protected] Thu, 12 Nov 2009 05:05:12 -0000
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from TimAllen <[email protected]>:

I have a project which includes a .tac file, which I convert to an RPM with tap2rpm. Because the .tac file is part of the project, the maintainer, protocol, description and long description are the same every time I invoke tap2rpm - and often the version will be similar too. I could bundle a special build-script in my project that records these configuration variables, but it seems like a problem that nearly every tap2rpm user would encounter and thus should be solved once for everyone.

Currently twistd peeks into .tac files looking for a variable with the magic name "application"; I propose tap2rpm (and tap2deb and a hypothetical tap2svc) should peek into .tac files looking for a variable with the magic name "metadata", looking something like this:
{{{
metadata = {
    'maintainer': 'John Doe <[email protected]>',
    'protocol': 'htcpcp',
    'description': 'Daemon for servicing HTCPCP requests',
    'long_description': """
         Provides a TCP-based Hypertext Coffee Pot Control Protocol interface for all
         USB-connected beverage devices.
         """,
    }
}}}

----------
Type     : enhancement
Component: core
Keywords : 
Priority : normal
Nosy     : 
----------
http://twistedmatrix.com/trac/ticket/4082