コード例 #1
0
ファイル: base.py プロジェクト: Hexadite/pypicloud-hexadite
 def configure(cls, settings):
     """ Configure the cache method with app settings """
     return {
         'storage': get_storage_impl(settings),
         'allow_overwrite': asbool(settings.get('pypi.allow_overwrite',
                                                False)),
     }
コード例 #2
0
ファイル: base.py プロジェクト: zarlant/pypicloud
 def configure(cls, settings):
     """ Configure the cache method with app settings """
     return {
         "storage": get_storage_impl(settings),
         "allow_overwrite":
         asbool(settings.get("pypi.allow_overwrite", False)),
     }
コード例 #3
0
ファイル: base.py プロジェクト: rubikloud/pypicloud
 def configure(cls, settings):
     """ Configure the cache method with app settings """
     return {
         'storage': get_storage_impl(settings),
         'allow_overwrite':
         asbool(settings.get('pypi.allow_overwrite', False)),
     }
コード例 #4
0
 def configure(cls, settings):
     """ Configure the cache method with app settings """
     return {
         "storage": get_storage_impl(settings),
         "allow_overwrite": asbool(settings.get("pypi.allow_overwrite", False)),
         "allow_delete": asbool(settings.get("pypi.allow_delete", True)),
         "calculate_hashes": asbool(
             settings.get("pypi.calculate_package_hashes", True)
         ),
     }
コード例 #5
0
ファイル: test_storage.py プロジェクト: 418sec/pypicloud
 def setUp(self):
     super(TestAzureStorage, self).setUp()
     self.settings = {
         "pypi.storage": "azure-blob",
         "storage.storage_account_name": "terrytest2",
         "storage.storage_account_key":
         "Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa==",
         "storage.storage_container_name": "pypi",
     }
     storage_func = get_storage_impl(self.settings)
     self.storage = storage_func(MagicMock())
コード例 #6
0
ファイル: base.py プロジェクト: mathcamp/pypicloud
 def configure(cls, settings):
     """ Configure the cache method with app settings """
     return {
         "storage": get_storage_impl(settings),
         "allow_overwrite": asbool(settings.get("pypi.allow_overwrite", False)),
     }