-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for MIME type ordering in renderers.
- Loading branch information
1 parent
1141e0f
commit 4bad7c5
Showing
8 changed files
with
42 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "dcicsnovault" | ||
version = "9.0.0" | ||
version = "9.0.0.1b1" # TODO: To become 9.1.0 | ||
description = "Storage support for 4DN Data Portals." | ||
authors = ["4DN-DCIC Team <[email protected]>"] | ||
license = "MIT" | ||
|
@@ -123,7 +123,7 @@ pytest-timeout = ">=1.0.0" | |
# 5.2 had soe bugs that were probably only in Python 2, but we require 5.2 here just in case. | ||
# Any narrowing beyond that is just to help 'poetry lock' converge faster. | ||
# And we only need .safe_load in testing, so we're moving this to dev dependencies. -kmp 22-Feb-2022 | ||
PyYAML = ">=5.1,<5.5" | ||
PyYAML = "5.3.1" | ||
"repoze.debug" = ">=1.0.2" | ||
wheel = ">=0.40.0" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# For some reason on Mac M1 (as of July 2023) pyyaml install via poetry is problematic. | ||
pip install pyyaml==5.4.1 | ||
pip install pyyaml==5.3.1 | ||
|
||
CFLAGS="-I$(brew --prefix zlib)/include" LDFLAGS="-L$(brew --prefix zlib)/lib" poetry install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Web browsers send an Accept request header for initial (e.g. non-AJAX) page requests | ||
# which should contain 'text/html' | ||
MIME_TYPE_HTML = 'text/html' | ||
MIME_TYPE_JSON = 'application/json' | ||
MIME_TYPE_LD_JSON = 'application/ld+json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Renderers related functions which may be overriden by an implementing app, | ||
# e.g. Foursight or CGAP portal, using the dcicutils project_utils mechanism. | ||
|
||
from ..mime_types import MIME_TYPE_HTML, MIME_TYPE_JSON, MIME_TYPE_LD_JSON | ||
|
||
|
||
class SnovaultProjectRenderers: | ||
def renderers_mime_types_supported(self): | ||
return [MIME_TYPE_JSON, MIME_TYPE_HTML, MIME_TYPE_LD_JSON] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters