Example #1
0
 def test_distribution_at_str(self):
     dist_info_path = self.site_dir / 'distinfo_pkg-1.0.0.dist-info'
     dist = Distribution.at(str(dist_info_path))
     assert dist.version == '1.0.0'
Example #2
0
 def test_distribution_at_pathlib(self):
     """Demonstrate how to load metadata direct from a directory."""
     dist_info_path = self.site_dir / 'distinfo_pkg-1.0.0.dist-info'
     dist = Distribution.at(dist_info_path)
     assert dist.version == '1.0.0'