Пример #1
0
def test_is_pure():
    assert wheeler.is_pure(
        'tests/fixture/pure_package/dist/test_package-0.1.dev1-py2.py3-none-any.whl'
    )
    assert not wheeler.is_pure(
        'tests/fixture/non-pure_package/dist/test_package-0.1.dev1-cp27-none-linux_x86_64.whl'
    )
Пример #2
0
 def test_is_pure(self):
     self.assertTrue(
         wheeler.is_pure(
             'tests/fixture/pure_package/dist/test_package-0.1.dev1-py2.py3-none-any.whl'
         ))
     self.assertFalse(
         wheeler.is_pure(
             'tests/fixture/non-pure_package/dist/test_package-0.1.dev1-cp27-none-linux_x86_64.whl'
         ))
Пример #3
0
 def _upload_package(self, package, version, wheel_file):
     if self._pure_index_client and wheeler.is_pure(wheel_file):
         logger.debug('Uploading %s %s to pure index %s', package, version, self._pure_index_client.url)
         self._pure_index_client.upload(wheel_file, dry_run=self._dry_run)
     else:
         logger.debug('Uploading %s %s to %s', package, version, self._devpi_client.url)
         self._devpi_client.upload(wheel_file, dry_run=self._dry_run)
Пример #4
0
 def test_is_pure(self):
     self.assertTrue(wheeler.is_pure('tests/fixture/pure_package/dist/test_package-0.1.dev1-py2.py3-none-any.whl'))
     self.assertFalse(wheeler.is_pure('tests/fixture/non-pure_package/dist/test_package-0.1.dev1-cp27-none-linux_x86_64.whl'))