Re: [Distutils] Should metadata known about compatibility?
Oops, I got off list by accident..
On Tue, Apr 14, 2009 at 9:27 PM, Hanno Schlichting
Hi Tarek,
Tarek Ziadé wrote:
On Tue, Apr 14, 2009 at 9:07 PM, Hanno Schlichting
wrote: Hi,
I'd like to suggest that distutils metadata should gain a way of specifying compatibility with packages in addition to the requirement of packages.
What are the use cases?
- A package wants to express that it works with both Python 2 and 3.
You may use the classifiers for this use case (Martin has added soem trove classifier for python 2/3)
Right, which restricts this system to Python itself and won't make it possible to use it for other packages. Adding classifiers for each major version of each framework seems tedious.
- A package wants to express that it works with TurboGears 2 or Plone 4
How it would be different from install_requires (that can point to Plone==3.xx)
Many plug-ins would be compatible with both Plone 3.x and Plone 4.x. So they only require Plone >= 3. The additional information is "works with Plone 3" and "Plone 4".
I think the classifiers works pretty well there. (If we look at your use cases, and the classifiers browsing features at PyPI) The only problem I can see is the fact that they have to be added "manually" at PyPI. If we put apart this problem, do you see any remaining problem ? Cheers Tarek
Tarek Ziadé wrote:
On Tue, Apr 14, 2009 at 9:27 PM, Hanno Schlichting
wrote: Tarek Ziadé wrote:
On Tue, Apr 14, 2009 at 9:07 PM, Hanno Schlichting
wrote: I'd like to suggest that distutils metadata should gain a way of specifying compatibility with packages in addition to the requirement of packages.
I think the classifiers works pretty well there. (If we look at your use cases, and the classifiers browsing features at PyPI)
Right, it seems to be a bit of an abuse to use classifiers which include version numbers, but it might work well enough. What I care most about is to have a defined way of stating this information, so we can build tools on top of it. I'd like to have Plone get the ability to get a button saying "Check for upgrade" which can produce a version list of locally installed packages, post them to a service at plone.org and get back a result saying: "There's a new version of Plone out, but 3 of your 9 installed plug-ins are not yet available for this version."
The only problem I can see is the fact that they have to be added "manually" at PyPI. If we put apart this problem, do you see any remaining problem ?
Yes, but this might just as well be solved by documenting the procedure for requesting new classifiers clearly. Hanno
participants (2)
-
Hanno Schlichting
-
Tarek Ziadé