Commits

Thomas Lotze committed c50d443

use pkginfo >= 0.9, avoid using pkg_resources for introspecting metadata

pkginfo 0.9 contains a fix for <https://bugs.launchpad.net/pkginfo/+bug/934311>;.

  • Participants
  • Parent commits 646db7e

Comments (0)

Files changed (5)

 0.2 (unreleased)
 ================
 
+- Use pkginfo >= 0.9 which contains a fix for finding metadata of installed
+  namespace packages (see <https://bugs.launchpad.net/pkginfo/+bug/934311>).
+
 
 0.1 (2012-03-05)
 ================
     install_requires=[
         'PasteScript',
         'distribute',
+        'pkginfo>=0.9',
         ],
 
     extras_require={
         'doc': [
             'Sphinx>=1.0',
-            'pkginfo',
             'sphinxcontrib-cheeseshop',
             'sphinxcontrib-issuetracker',
             ],

tl/pkg/template.py

 import os.path
 import paste.script.templates
 import paste.util.template
-import pkg_resources
+import pkginfo
 import shutil
 import subprocess
 
 
-tl_pkg = pkg_resources.get_distribution('tl.pkg')
+tl_pkg = pkginfo.Installed('tl.pkg')
 
 config = ConfigParser.ConfigParser()
 try:

tl/pkg/tests/test_tl_pkg.py

 import os
 import os.path
 import paste.script.command
-import pkg_resources
+import pkginfo
 import shutil
 import subprocess
 import sys
 
     def test_package_has_tl_pkg_version_pinned_to_active(self):
         self.expand_template()
-        tl_pkg = pkg_resources.get_distribution('tl.pkg')
+        tl_pkg = pkginfo.Installed('tl.pkg')
         self.assertIn('tl.pkg = %s\n' % tl_pkg.version,
                       self.content('versions/versions.cfg'))
 

versions/versions.cfg

 
 [versions]
 gocept.testing = 1.3
-pkginfo = 0.8
+pkginfo = 0.9
 sphinxcontrib-cheeseshop = 0.2
 sphinxcontrib-issuetracker = 0.9
 tl.buildout-virtual-python = 0.2