Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- name: Check out repository code
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ name = "olah"
version = "0.4.3"
description = "Self-hosted lightweight huggingface mirror."
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"fastapi", "fastapi-utils", "httpx", "numpy", "pydantic<=2.8.2", "pydantic-settings<=2.4.0", "requests", "toml",
"rich>=10.0.0", "shortuuid", "uvicorn", "tenacity>=8.2.2", "pytz", "cachetools", "GitPython",
"PyYAML", "typing_inspect>=0.9.0", "huggingface_hub", "jinja2", "python-multipart", "portalocker",
"aiofiles", "brotli"
"fastapi>=0.141", "fastapi-utils>=0.8", "httpx>=0.28", "pydantic>=2.13", "pydantic-settings>=2.15",
"requests", "toml", "rich>=10.0.0", "shortuuid", "uvicorn", "tenacity>=9", "pytz", "GitPython",
"PyYAML", "typing_inspect>=0.9.0", "huggingface_hub>=1.27", "jinja2", "python-multipart>=0.0.32",
"portalocker>=4", "peewee>=3.19", "brotli>=1.2"
]

[project.optional-dependencies]
dev = ["black==24.10.0", "pylint==3.3.1", "pytest==8.3.3"]
dev = ["black==24.10.0", "pylint==3.3.1", "pytest==9.1.1", "pytest-asyncio==1.3.0"]

[project.urls]
"Homepage" = "https://github.com/vtuber-plan/olah"
Expand Down
32 changes: 16 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
fastapi==0.115.2
fastapi-utils==0.7.0
GitPython==3.1.43
httpx==0.27.0
pydantic==2.8.2
pydantic-settings==2.4.0
fastapi==0.141.1
fastapi-utils==0.8.0
GitPython==3.1.59
httpx==0.28.1
pydantic==2.13.4
pydantic-settings==2.15.0
toml==0.10.2
huggingface_hub==0.26.0
pytest==8.3.3
cachetools==5.4.0
PyYAML==6.0.1
tenacity==8.5.0
peewee==3.17.6
huggingface_hub==1.27.0
pytest==9.1.1
pytest-asyncio==1.3.0
PyYAML==6.0.3
tenacity==9.1.4
peewee==3.19.0
typing_inspect==0.9.0
jinja2==3.1.4
python-multipart==0.0.9
portalocker==3.1.1
aiofiles==24.1.0
jinja2==3.1.6
python-multipart==0.0.32
portalocker==4.1.0
brotli==1.2.0
3 changes: 3 additions & 0 deletions src/olah/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

from olah.utils.olah_utils import get_olah_path

# The olah home dir (~/.olah) may not exist yet on a fresh install; peewee
# will not create the parent directory itself.
os.makedirs(get_olah_path(), exist_ok=True)
db_path = os.path.join(get_olah_path(), "database.db")
db = SqliteDatabase(db_path)

Expand Down