Re: [Web-SIG] A Python Web Application Package and Format

2011-04-15 Thread Éric Araujo
How do you build a release and upload it to PyPi? Upload docs to packages.python.org? setup.py commands. It's a convienent hook with access to metadata in a convienent way that would make an excellent let's make a release! type of command. setup.py should go away. The distutils2 talk from

[Web-SIG] OT: dotted names (Was: Re: A Python Web Application Package and Format)

2011-04-15 Thread Éric Araujo
Hi, As an aside, I wonder why people use dot+colon notation instead of just dots to reference callables. In distutils2 for example we resolve dotted names to find command classes, command hooks and compilers. So what’s the benefit, marginally easier parsing? Regards

Re: [Web-SIG] OT: dotted names (Was: Re: A Python Web Application Package and Format)

2011-04-15 Thread Jim Fulton
On Fri, Apr 15, 2011 at 1:32 PM, Éric Araujo mer...@netwok.org wrote: As an aside, I wonder why people use dot+colon notation instead of just dots to reference callables.  In distutils2 for example we resolve dotted names to find command classes, command hooks and compilers.  So what’s the

Re: [Web-SIG] OT: dotted names (Was: Re: A Python Web Application Package and Format)

2011-04-15 Thread Alice Bevan–McGregor
On 2011-04-15 11:02:17 -0700, Jim Fulton said: On Fri, Apr 15, 2011 at 1:32 PM, Éric Araujo mer...@netwok.org wrote: As an aside, I wonder why people use dot+colon notation instead of just dots to reference callables.  In distutils2 for example we resolve dotted names to find command classes,

Re: [Web-SIG] A Python Web Application Package and Format

2011-04-15 Thread Alice Bevan–McGregor
On 2011-04-14 10:34:59 -0700, Ian Bicking said: I think there's a general concept we should have, which I'll call a script -- but basically it's a script to run (__main__-style), a callable to call (module:name), or a URL to fetch internally. Agreed. The reference notation I mentioned in my

Re: [Web-SIG] OT: dotted names (Was: Re: A Python Web Application Package and Format)

2011-04-15 Thread P.J. Eby
At 02:02 PM 4/15/2011 -0400, Jim Fulton wrote: On Fri, Apr 15, 2011 at 1:32 PM, Éric Araujo mer...@netwok.org wrote: As an aside, I wonder why people use dot+colon notation instead of just dots to reference callables. In distutils2 for example we resolve dotted names to find command classes,

Re: [Web-SIG] OT: dotted names (Was: Re: A Python Web Application Package and Format)

2011-04-15 Thread Fred Drake
On Fri, Apr 15, 2011 at 1:32 PM, Éric Araujo mer...@netwok.org wrote: As an aside, I wonder why people use dot+colon notation instead of just dots to reference callables.  In distutils2 for example we resolve dotted names to find command classes, command hooks and compilers. I advocated using

Re: [Web-SIG] OT: dotted names (Was: Re: A Python Web Application Package and Format)

2011-04-15 Thread exarkun
On 06:22 pm, al...@gothcandy.com wrote: On 2011-04-15 11:02:17 -0700, Jim Fulton said: On Fri, Apr 15, 2011 at 1:32 PM, Éric Araujo mer...@netwok.org wrote: As an aside, I wonder why people use dot+colon notation instead of just dots to reference callables.  In distutils2 for example we

Re: [Web-SIG] OT: dotted names (Was: Re: A Python Web Application Package and Format)

2011-04-15 Thread P.J. Eby
At 04:11 PM 4/15/2011 -0400, Fred Drake wrote: These end users don't really care if the object identified is a class or function in module, a nested attribute on a class, or anything else, so long as it does what it's advertised to do. By not pushing implementation details into the identifier,

Re: [Web-SIG] OT: dotted names (Was: Re: A Python Web Application Package and Format)

2011-04-15 Thread Fred Drake
On Fri, Apr 15, 2011 at 6:06 PM, P.J. Eby p...@telecommunity.com wrote: That would be one advantage of using entry points instead.  ;-)  (i.e., the user doesn't specify the object location, the package author does.) Definitely! I'm certainly all in favor of having something very akin to entry

Re: [Web-SIG] A Python Web Application Package and Format

2011-04-15 Thread Ian Bicking
On Fri, Apr 15, 2011 at 2:05 PM, Alice Bevan–McGregor al...@gothcandy.comwrote: I want to keep this distinct from anything long-running, which is a much more complex deal. The primary application is only potentially long-running. (You could, in theory, deploy an app as CGI, but that way