Skip to content

Commit

Permalink
🐛 Serve flama logo from its repository (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
perdy committed Dec 22, 2023
1 parent 88f87bb commit 9eef9fa
Show file tree
Hide file tree
Showing 15 changed files with 221 additions and 482 deletions.
1 change: 1 addition & 0 deletions flama/background.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
if sys.version_info < (3, 11): # PORT: Remove when stop supporting 3.10 # pragma: no cover

class StrEnum(str, enum.Enum):
@staticmethod
def _generate_next_value_(name, start, count, last_values):
return name.lower()

Expand Down
1 change: 1 addition & 0 deletions flama/config/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
if sys.version_info < (3, 11): # PORT: Remove when stop supporting 3.10 # pragma: no cover

class StrEnum(str, enum.Enum):
@staticmethod
def _generate_next_value_(name, start, count, last_values):
return name.lower()

Expand Down
1 change: 1 addition & 0 deletions flama/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
if sys.version_info < (3, 11): # PORT: Remove when stop supporting 3.10 # pragma: no cover

class StrEnum(str, enum.Enum):
@staticmethod
def _generate_next_value_(name, start, count, last_values):
return name.lower()

Expand Down
1 change: 1 addition & 0 deletions flama/pagination/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
if sys.version_info < (3, 11): # PORT: Remove when stop supporting 3.10 # pragma: no cover

class StrEnum(str, enum.Enum):
@staticmethod
def _generate_next_value_(name, start, count, last_values):
return name.lower()

Expand Down
1 change: 1 addition & 0 deletions flama/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
if sys.version_info < (3, 11): # PORT: Remove when stop supporting 3.10 # pragma: no cover

class StrEnum(str, enum.Enum):
@staticmethod
def _generate_next_value_(name, start, count, last_values):
return name.lower()

Expand Down
1 change: 1 addition & 0 deletions flama/schemas/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
if sys.version_info < (3, 11): # PORT: Remove when stop supporting 3.10 # pragma: no cover

class StrEnum(str, enum.Enum):
@staticmethod
def _generate_next_value_(name, start, count, last_values):
return name.lower()

Expand Down
1 change: 1 addition & 0 deletions flama/serialize/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
if sys.version_info < (3, 11): # PORT: Remove when stop supporting 3.10 # pragma: no cover

class StrEnum(str, enum.Enum):
@staticmethod
def _generate_next_value_(name, start, count, last_values):
return name.lower()

Expand Down
1 change: 1 addition & 0 deletions flama/serialize/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
if sys.version_info < (3, 11): # PORT: Remove when stop supporting 3.10 # pragma: no cover

class StrEnum(str, enum.Enum):
@staticmethod
def _generate_next_value_(name, start, count, last_values):
return name.lower()

Expand Down
681 changes: 209 additions & 472 deletions poetry.lock

Large diffs are not rendered by default.

Binary file added public/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,9 @@ typesystem = "^0.4"
optional = true

[tool.poetry.group.ml.dependencies]
scikit-learn = { version = "^1.3.1", python = ">=3.8,<3.12"}
tensorflow-cpu = [
{ version = "^2.12.0", platform = "linux", python = ">=3.8,<3.9" },
{ version = "^2.14.0", platform = "linux", python = ">=3.9,<3.12"}
]
torch = { version = "2.0.0", python = ">=3.8,<3.12"} # SEE: Hold this version until this issue is fixed https://github.com/pytorch/pytorch/issues/100974
scikit-learn = { version = "~1.3.2", python = ">=3.9" }
tensorflow-cpu = { version = "~2.15.0", platform = "linux", python = ">=3.9,<3.12" }
torch = { version = "~2.1.2", python = ">=3.8,<3.12"}

[tool.black]
line-length = 120
Expand Down
5 changes: 1 addition & 4 deletions templates/src/pages/schemas/docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ function DocsPage({ specUrl, baseUrl }: DocsPageProps) {

const elements = document.createElement('elements-api')
elements.setAttribute('apiDescriptionUrl', specUrl)
elements.setAttribute(
'logo',
'https://raw.githubusercontent.com/vortico/flama-site/master/public/favicon/icon-512.png'
)
elements.setAttribute('logo', 'https://raw.githubusercontent.com/vortico/flama/master/public/icon-32.png')
elements.setAttribute('basePath', baseUrl)

document.head.appendChild(script)
Expand Down

0 comments on commit 9eef9fa

Please sign in to comment.