def get_info(self):
        """Check PyPI for the latest version of the package.

        Returns the 'info' block of the PyPI JSON as JSON. This contains
        all the information that PyPI has on the release.

        """
        return None if self.is_editable else package_info(self.url)
Ejemplo n.º 2
0
 def test_version_diff(self):
     self.assertEqual(package_url('foo'), u"http://pypi.python.org/pypi/foo/json")
     self.assertEqual(package_info('foo'), TEST_INFO)
     self.assertEqual(package_version(TEST_INFO), Version(TEST_INFO.get('version')))
     self.assertEqual(package_licence(TEST_INFO), TEST_INFO.get('license'))