Skip to content
Snippets Groups Projects
Commit f1b90148 authored by Jenkins for Software Heritage's avatar Jenkins for Software Heritage
Browse files

Merge tag 'debian/1.4.2-1_swh1' into debian/buster-swh

parents 94294832 287125e4
No related branches found
No related tags found
No related merge requests found
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: swh.deposit Name: swh.deposit
Version: 1.4.1 Version: 1.4.2
Summary: Software Heritage Deposit Server Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/ Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers Author: Software Heritage developers
......
swh-deposit (1.4.1-1~swh1~bpo10+1) buster-swh; urgency=medium swh-deposit (1.4.2-1~swh1) unstable-swh; urgency=medium
* Rebuild for buster-swh * New upstream release 1.4.2 - (tagged by Antoine R. Dumont
(@ardumont) <ardumont@softwareheritage.org> on 2023-11-23 12:14:27
+0100)
* Upstream changes: - v1.4.2 - settings.production: Allow
extra azure configuration
-- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Mon, 20 Nov 2023 14:00:55 +0000 -- Software Heritage autobuilder (on jenkins-debian1) <jenkins@jenkins-debian1.internal.softwareheritage.org> Thu, 23 Nov 2023 11:20:34 +0000
swh-deposit (1.4.1-1~swh1) unstable-swh; urgency=medium swh-deposit (1.4.1-1~swh1) unstable-swh; urgency=medium
......
Metadata-Version: 2.1 Metadata-Version: 2.1
Name: swh.deposit Name: swh.deposit
Version: 1.4.1 Version: 1.4.2
Summary: Software Heritage Deposit Server Summary: Software Heritage Deposit Server
Home-page: https://forge.softwareheritage.org/source/swh-deposit/ Home-page: https://forge.softwareheritage.org/source/swh-deposit/
Author: Software Heritage developers Author: Software Heritage developers
......
...@@ -123,15 +123,27 @@ if cfg_azure: ...@@ -123,15 +123,27 @@ if cfg_azure:
f"Production: invalid configuration; missing {key} config entry." f"Production: invalid configuration; missing {key} config entry."
) )
# Default options
options = dict(
azure_container=cfg_azure["container_name"],
connection_string=cfg_azure["connection_string"],
)
# Which may be enhanced with some extra options, lookup "object_parameters" in
# https://django-storages.readthedocs.io/en/latest/backends/azure.html
object_parameters = {}
for optional_config_key in ["content_type", "content_disposition"]:
if optional_config_key in cfg_azure:
object_parameters[optional_config_key] = cfg_azure[optional_config_key]
options.update(dict(object_parameters=object_parameters))
STORAGES = { STORAGES = {
"staticfiles": { "staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage" "BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"
}, },
"default": { "default": {
"BACKEND": "storages.backends.azure_storage.AzureStorage", "BACKEND": "storages.backends.azure_storage.AzureStorage",
"OPTIONS": { "OPTIONS": options,
"azure_container": cfg_azure["container_name"],
"connection_string": cfg_azure["connection_string"],
},
}, },
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment