def test_ctypes_c_dist(self): platform_specific_dist = self.target_dict['platform_specific_ctypes_c_dist'] context, synthetic_target, snapshot_version = self._create_distribution_synthetic_target( platform_specific_dist, extra_targets=[self.target_dict['ctypes_c_library']]) self.assertEqual(['platform_specific_ctypes_c_dist==0.0.0+{}'.format(snapshot_version)], [str(x.requirement) for x in synthetic_target.requirements.value]) local_wheel_products = context.products.get('local_wheels') local_wheel = self._retrieve_single_product_at_target_base( local_wheel_products, platform_specific_dist) self.assertTrue(check_wheel_platform_matches_host(local_wheel))
def test_python_create_platform_specific_distribution(self): platform_specific_dist = self.target_dict['platform_specific'] context, synthetic_target = self._create_distribution_synthetic_target(platform_specific_dist) self.assertEquals(['platform_specific_dist==0.0.0'], [str(x.requirement) for x in synthetic_target.requirements.value]) local_wheel_products = context.products.get('local_wheels') local_wheel = self._retrieve_single_product_at_target_base( local_wheel_products, platform_specific_dist) self.assertTrue(check_wheel_platform_matches_host(local_wheel))