Re: [Distutils] distlib updated to include "entry point" functionality

2012-10-09 Thread Daniel Holth
On Tue, Oct 9, 2012 at 5:45 PM, Vinay Sajip wrote: > PJ Eby telecommunity.com> writes: > >> >> In pkg_resources, entry points are references to any importable >> object. They don't have to be callables. >> >> Note, however, that if you load an entry point which is a module, then >> of course the

Re: [Distutils] distlib updated to include "entry point" functionality

2012-10-09 Thread Vinay Sajip
PJ Eby telecommunity.com> writes: > More to the point, though, if it's not possible for someone to create > a wrapper to reimplement these portions of the pkg_resources API, then > it's going to be harder to get people to port their code. I will give some thought to migration concerns. I'm not s

Re: [Distutils] distlib updated - comments sought

2012-10-09 Thread PJ Eby
On Fri, Oct 5, 2012 at 2:38 PM, Paul Moore wrote: > That's a good point. Actually, writing a "local PyPI server" is much > easier if all you have to implement is the simple static page > interface. So I take back some of my objection - both XML-RPC and the > static page interface make sense to sup

Re: [Distutils] distlib updated to include "entry point" functionality

2012-10-09 Thread PJ Eby
On Tue, Oct 9, 2012 at 5:45 PM, Vinay Sajip wrote: > Clearly, distlib can't do things exactly > the way they're done in pkg_resources and setuptools, since those are not > considered suitable to go into the stdlib, The two aren't 100% connected, even assuming the antecedent were true. Originally

Re: [Distutils] distlib updated to include "entry point" functionality

2012-10-09 Thread Vinay Sajip
PJ Eby telecommunity.com> writes: > > In pkg_resources, entry points are references to any importable > object. They don't have to be callables. > > Note, however, that if you load an entry point which is a module, then > of course the module code will be executed as a side-effect, so > techni

Re: [Distutils] distlib updated to include "entry point" functionality

2012-10-09 Thread PJ Eby
On Mon, Oct 8, 2012 at 5:14 PM, Vinay Sajip wrote: > What do *you* mean by entry point? My understanding is that it represents the > start of some executable code. Wikipedia: > > "In computer programming, an entry point is a memory address, corresponding > to a > point in the code of a computer p

Re: [Distutils] semver (again)

2012-10-09 Thread Fred Drake
On Tue, Oct 9, 2012 at 2:24 PM, Daniel Holth wrote: > How much would it cost to endorse semver? I endorse it for free. :-) Seriously, if a version doesn't conform, I probably don't want to be using that piece of software, because it's versioning model is overly complicated. Integers are cheape

[Distutils] semver (again)

2012-10-09 Thread Daniel Holth
I like semver. My favorite part is point 12: Precedence MUST be calculated by separating the version into major, minor, patch, pre-release, and build identifiers in that order. Major, minor, and patch versions are always compared numerically. Pre-release and build version precedence MUST be determ