Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'{}__'.format(dependency['namespace_strip']),
))
package_zip = zip_strip_namespace(
package_zip,
namespace = dependency['namespace_strip'],
logger = self.logger,
)
package_zip = ZipfilePackageZipBuilder(package_zip)()
elif 'namespace' in dependency:
self.logger.info('Installing {} version {}'.format(
dependency['namespace'],
dependency['version'],
))
package_zip = InstallPackageZipBuilder(dependency['namespace'], dependency['version'])()
api = self.api_class(self, package_zip, purge_on_delete=self.options['purge_on_delete'])
return api()
def _get_api(self, path=None):
package_zip = InstallPackageZipBuilder(self.options['namespace'], self.options['version'])
return self.api_class(self, package_zip(), purge_on_delete=False)
'{}__'.format(dependency['namespace_strip']),
))
package_zip = zip_strip_namespace(
package_zip,
namespace = dependency['namespace_strip'],
logger = self.logger,
)
package_zip = ZipfilePackageZipBuilder(package_zip)()
elif 'namespace' in dependency:
self.logger.info('Installing {} version {}'.format(
dependency['namespace'],
dependency['version'],
))
package_zip = InstallPackageZipBuilder(dependency['namespace'], dependency['version'])()
api = self.api_class(self, package_zip, purge_on_delete=self.options['purge_on_delete'])
return api()
def _get_api(self, path=None):
package_zip = InstallPackageZipBuilder(self.options['namespace'], self.options['version'])
return self.api_class(self, package_zip(), purge_on_delete=False)
functools.partial(
strip_namespace,
namespace=dependency["namespace_strip"],
logger=self.logger,
),
)
package_zip = ZipfilePackageZipBuilder(package_zip)()
elif "namespace" in dependency:
self.logger.info(
"Installing {} version {}".format(
dependency["namespace"], dependency["version"]
)
)
package_zip = InstallPackageZipBuilder(
dependency["namespace"], dependency["version"]
)()
api = self.api_class(
self, package_zip, purge_on_delete=self.options["purge_on_delete"]
)
return api()