[issue4908] adding a get_metadata in distutils

2010-04-08 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue4908] adding a get_metadata in distutils

2009-10-28 Thread Tarek Ziadé
Tarek Ziadé added the comment: This patch will be applied for the part that makes DistributionMetadata load files. The other part is waiting for PEP 376. -- priority: -> normal resolution: -> accepted versions: +Python 3.2 -Python 3.1 ___ Python t

[issue4908] adding a get_metadata in distutils

2009-01-30 Thread Floris Bruynooghe
Changes by Floris Bruynooghe : -- nosy: +flub ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue4908] adding a get_metadata in distutils

2009-01-24 Thread Ray
Ray added the comment: There wouldn't be an easy way to read the distutils setup.py info at all in 2.4? i suppose i could write something specific for our environment. On 1/24/09, Tarek Ziadé wrote: > > Tarek Ziadé added the comment: > > Well since Python 2.4 doesn't have the egg-info feat

[issue4908] adding a get_metadata in distutils

2009-01-24 Thread Tarek Ziadé
Tarek Ziadé added the comment: Well since Python 2.4 doesn't have the egg-info feature, that is another story. ___ Python tracker ___ ___ Pytho

[issue4908] adding a get_metadata in distutils

2009-01-23 Thread Ray
Ray added the comment: any chance of getting a patch that would work in 2.4? ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue4908] adding a get_metadata in distutils

2009-01-14 Thread Tarek Ziadé
Tarek Ziadé added the comment: I have improved the patch (uploaded here) (some cases are not done yet, still work in progress) Ray, it should work with egg generated by setuptools now, (zipped as well) Andi, right ! -> fixed in the current patch ___ Python

[issue4908] adding a get_metadata in distutils

2009-01-14 Thread Tarek Ziadé
Changes by Tarek Ziadé : Removed file: http://bugs.python.org/file12692/get_metadata.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue4908] adding a get_metadata in distutils

2009-01-14 Thread Tarek Ziadé
Changes by Tarek Ziadé : Added file: http://bugs.python.org/file12746/get_metadata.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue4908] adding a get_metadata in distutils

2009-01-12 Thread Andi Albrecht
Andi Albrecht added the comment: Is it intended that when reading PKG-INFO files the PEP 314 attributes (provides, requires, obsoletes) are only set if version is exactly "1.1"? I'd expected that those attributes are available regardless of the metadata version of the parsed file (with None as

[issue4908] adding a get_metadata in distutils

2009-01-12 Thread Ray
Ray added the comment: I've tested it out using the straight distutils installation, and it works great! ___ Python tracker ___ ___ Python-bugs

[issue4908] adding a get_metadata in distutils

2009-01-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: yes the patch doesn't treat the eggs installed with easy_install yet, just plain distutils I'll let you know when EGG_INFO/PKG-INFO is ready (should be in the coming days) ___ Python tracker

[issue4908] adding a get_metadata in distutils

2009-01-12 Thread Ray
Ray added the comment: The patch didn't install correctly using 'patch', but I manually merged the changes into my environment (Ubuntu 8.10 running 2.5.2) - I'll upload the diff rejections if they'll be helpful. After installing, I attempted to use the new code to determine the version number,

[issue4908] adding a get_metadata in distutils

2009-01-11 Thread Tarek Ziadé
Tarek Ziadé added the comment: heres a first simple draft, that works on .egg-info files, (the Description extractor needs to rework, but this patch is enough to discuss the feature) -- keywords: +patch Added file: http://bugs.python.org/file12692/get_metadata.diff ___

[issue4908] adding a get_metadata in distutils

2009-01-11 Thread Tarek Ziadé
Tarek Ziadé added the comment: It looks like the best way to do this is to: - make distutils.dist.DistributionMetadata also read existing egg-info files - add get_metadata in pkgutil instead of distutils, and make it use distutils.dist.DistributionMetadata _

[issue4908] adding a get_metadata in distutils

2009-01-10 Thread Ray
Changes by Ray : -- nosy: +rayterrill ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue4908] adding a get_metadata in distutils

2009-01-10 Thread Tarek Ziadé
New submission from Tarek Ziadé : Let's add a "get_metadata" API in Distutils that would return in a dictionary the content of the .egg-info file introduced into Python 2.5. >>> from distutils import get_metadata >>> get_metadata('ThePackage') {..} (Working on a prototype) -- as