[Checkins] SVN: zopyx.trashfinder/trunk/ checking egg releas files vs. source release files
Andreas Jung
andreas at andreas-jung.com
Wed Dec 30 02:49:47 EST 2009
Log message for revision 107350:
checking egg releas files vs. source release files
Changed:
U zopyx.trashfinder/trunk/docs/HISTORY.txt
U zopyx.trashfinder/trunk/setup.py
U zopyx.trashfinder/trunk/zopyx/trashfinder/cli.py
-=-
Modified: zopyx.trashfinder/trunk/docs/HISTORY.txt
===================================================================
--- zopyx.trashfinder/trunk/docs/HISTORY.txt 2009-12-30 07:41:06 UTC (rev 107349)
+++ zopyx.trashfinder/trunk/docs/HISTORY.txt 2009-12-30 07:49:47 UTC (rev 107350)
@@ -1,6 +1,11 @@
Changelog
=========
+0.1.2 (2009/12/29)
+-------------------
+
+- added some sanity checks on egg releases files vs. source releases
+
0.1.0 (2009/12/29)
-------------------
Modified: zopyx.trashfinder/trunk/setup.py
===================================================================
--- zopyx.trashfinder/trunk/setup.py 2009-12-30 07:41:06 UTC (rev 107349)
+++ zopyx.trashfinder/trunk/setup.py 2009-12-30 07:49:47 UTC (rev 107350)
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os
-version = '0.1.1'
+version = '0.1.2'
setup(name='zopyx.trashfinder',
version=version,
Modified: zopyx.trashfinder/trunk/zopyx/trashfinder/cli.py
===================================================================
--- zopyx.trashfinder/trunk/zopyx/trashfinder/cli.py 2009-12-30 07:41:06 UTC (rev 107349)
+++ zopyx.trashfinder/trunk/zopyx/trashfinder/cli.py 2009-12-30 07:49:47 UTC (rev 107350)
@@ -26,8 +26,22 @@
# PyPI hosted packages
if urls:
+ have_eggs = False
+ have_sdist = False
for url in urls:
- print ' ', url['url']
+ url = url['url']
+ print ' ', url
+ if url.endswith('.bz2') or url.endswith('.zip') or url.endswith('gz'):
+ have_sdist = True
+ if url.endswith('egg'):
+ have_eggs = True
+
+ if have_eggs and not have_sdist:
+ print 'CRAP: %s has only egg release files but no sdist release file' % package
+
+ if have_eggs and have_sdist:
+ print 'CRAP(possible): %s has egg *and* sdist release file' % package
+
# externally hosted packages
else:
download_url = metadata['download_url']
@@ -44,8 +58,5 @@
print 'CRAP: %s==%s - no author and no maintainer name given' % (package, version)
-
-
-
if __name__ == '__main__':
main()
More information about the checkins
mailing list