Skip to content

Commit

Permalink
Add minimal version mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteinberg committed Jan 8, 2025
1 parent 63ca218 commit e7d9405
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions perma_web/perma/settings/deployments/settings_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,10 @@
# Before deployment, we suppress the addition of new capture jobs when this file is present
DEPLOYMENT_SENTINEL = '/tmp/perma-deployment-pending'

# for inclusion in datapackage.json for user uploads; to be replaced with a
# short commit hash in deployments
PERMA_VERSION = 'dev'

# Which settings should be available in all Django templates,
# without needing to explicitly pass them via the view?
TEMPLATE_VISIBLE_SETTINGS = (
Expand Down
2 changes: 1 addition & 1 deletion perma_web/perma/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def preserve_perma_wacz(uploaded_file, warc_url, mime_type, guid, url, title, cr
"description": f"User upload for {url}",
"mainPageURL": warc_url,
"created": ts_string,
"software": "Perma.cc", # version?
"software": f"Perma.cc {settings.PERMA_VERSION}",
"resources": [
{
"name": "pages.jsonl",
Expand Down

0 comments on commit e7d9405

Please sign in to comment.