-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
873 additions
and
1,628 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,2 @@ | ||
.venv | ||
**/__pycache__ | ||
**/.venv | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/bin | ||
**/charts | ||
**/docker-compose* | ||
**/compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
# README.md |
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
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,23 +1,31 @@ | ||
FROM python:3.12 | ||
FROM ghcr.io/astral-sh/uv:python3.12-bookworm | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV POETRY_VIRTUALENVS_IN_PROJECT=1 | ||
|
||
RUN apt update && \ | ||
apt install -y --no-install-recommends neovim mediainfo && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
ENV EDITOR=nvim | ||
|
||
ENV UV_COMPILE_BYTECODE=1 | ||
ENV UV_LINK_MODE=copy | ||
|
||
WORKDIR /app | ||
|
||
COPY pyproject.toml poetry.lock ./ | ||
RUN pip install poetry && \ | ||
poetry install --without dev --no-root && \ | ||
rm -rf ~/.cache/ | ||
RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ | ||
--mount=type=bind,source=uv.lock,target=uv.lock \ | ||
--mount=type=cache,target=/root/.cache/uv \ | ||
uv sync --frozen --no-dev --no-install-project | ||
|
||
COPY sachi sachi | ||
COPY README.md . | ||
RUN poetry install --only-root | ||
|
||
ENV EDITOR=nvim | ||
ENTRYPOINT [ "poetry", "run", "sachi" ] | ||
RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \ | ||
--mount=type=bind,source=uv.lock,target=uv.lock \ | ||
--mount=type=cache,target=/root/.cache/uv \ | ||
uv sync --frozen --no-dev | ||
|
||
ENV PATH="/app/.venv/bin:$PATH" | ||
|
||
ENTRYPOINT [ "sachi" ] | ||
VOLUME [ "/root/.config/sachi" ] |
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 was deleted.
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,40 +1,32 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "sachi" | ||
version = "0.2.2-dev" | ||
description = "Terminal media files renamer (FileBot alternative)" | ||
authors = ["NextFire <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/NextFire/sachi" | ||
requires-python = ">=3.12,<3.13" | ||
dependencies = [ | ||
"typer==0.12.5", | ||
"textual==0.82.0", | ||
"tomlkit==0.13.2", | ||
"pydantic==2.9.2", | ||
"aiohttp[speedups]==3.10.9", | ||
"yarl==1.13.1", | ||
"backoff==2.2.1", | ||
"jinja2==3.1.4", | ||
"pymediainfo==6.1.0", | ||
"guessit==3.8.0", | ||
"setuptools==75.1.0", # guessit | ||
] | ||
|
||
[tool.poetry.scripts] | ||
sachi = "sachi:cli_app" | ||
|
||
[tool.poetry.dependencies] | ||
python = "~3.12" | ||
typer = "0.12.5" | ||
textual = "0.82.0" | ||
tomlkit = "0.13.2" | ||
pydantic = "2.9.2" | ||
aiohttp = { version = "3.10.9", extras = ["speedups"] } | ||
yarl = "1.13.1" | ||
backoff = "2.2.1" | ||
jinja2 = "3.1.4" | ||
pymediainfo = "6.1.0" | ||
guessit = "3.8.0" | ||
setuptools = { version = "75.1.0", markers = "python_version >= '3.12'" } # guessit | ||
[tool.uv] | ||
dev-dependencies = ["pyright==1.1.383", "ruff==0.6.9", "textual-dev==1.6.1"] | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pyright = "1.1.383" | ||
ruff = "0.6.9" | ||
textual-dev = "1.6.1" | ||
[project.scripts] | ||
sachi = "sachi:cli_app" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.ruff] | ||
target-version = "py312" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.ruff.lint] | ||
extend-select = ["I"] |
Oops, something went wrong.