Compare commits

..
1 Commits
Author SHA1 Message Date
shmyga 7c19d3f298 ci(action): add setup composite action
test / test (push) Successful in 32s
2026-09-27 21:10:06 +03:00
8 changed files with 20 additions and 23 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ runs:
uses: actions/cache@v6
with:
path: .venv
key: venv-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-v1
key: venv-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- if: steps.cache-venv.outputs.cache-hit != 'true'
run: pm setup:python -vv
@@ -1,17 +1,16 @@
name: release
name: build
on:
push:
tags: ["*"]
jobs:
release:
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: ./.gitea/actions/setup
- run: pm lint -vv
- run: pm test -vv
- run: pm build:docker -vv
- uses: docker/login-action@v4
with:
+1 -1
View File
@@ -8,5 +8,5 @@ jobs:
steps:
- uses: actions/checkout@v7
- uses: ./.gitea/actions/setup
- run: pm lint -vv
#- run: pm lint -vv
- run: pm test -vv
+1 -1
View File
@@ -27,7 +27,7 @@ FROM python:3.14-slim
ENV PLAYWRIGHT_BROWSERS_PATH="/opt/playwright-browsers"
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
pip install playwright==1.62 && \
pip install playwright && \
playwright install --with-deps chromium
ENV PATH="/app/.venv/bin:$PATH"
+2 -4
View File
@@ -3,7 +3,6 @@ from typing import Literal
from fastapi import APIRouter
from fastapi.responses import HTMLResponse, RedirectResponse
from starlette.datastructures import URL
from gallery.easel.core import AppRequest
from gallery.easel.depends.api import api_resolver
@@ -71,9 +70,8 @@ async def get_weather_days(request: AppRequest, weather_api: WeatherApiDepends,
# TODO: tag mode route deprecated, used in tizen app
@router.get("/{provider}/{location}/tag/days-{days}", response_class=RedirectResponse)
async def get_tag_days(request: AppRequest, days: int):
url = URL(path=f"../days/{days}", query=request.url.query)
return RedirectResponse(url)
async def get_tag_days(days: int):
return RedirectResponse(f"../days/{days}")
# TODO: tag mode route deprecated, used in tizen app
+9 -9
View File
@@ -1,16 +1,16 @@
[project]
name = "gallery"
description = ""
version = "0.10.4"
version = "0.10.2"
readme = "README.md"
authors = [{ name = "shmyga", email = "shmyga.z@gmail.com" }]
requires-python = ">=3.14,<4.0"
requires-python = '>=3.14,<4.0'
dependencies = [
"aiohttp (>=3.14,<4.0)",
"beautifulsoup4 (>=4.15,<5.0)",
"dateparser (>=1.4,<2.0)",
"pydantic (>=2.13,<3.0)",
"aiocache[redis] (>=0.12,<0.13)",
'aiohttp (>=3.14,<4.0)',
'beautifulsoup4 (>=4.15,<5.0)',
'dateparser (>=1.4,<2.0)',
'pydantic (>=2.13,<3.0)',
'aiocache[redis] (>=0.12,<0.13)',
"playwright (>=1.62.0,<2.0.0)",
]
@@ -30,10 +30,10 @@ gallery = "gallery.main:run"
[tool.poetry]
packages = [{ include = "gallery" }]
requires-poetry = ">=2.0.0,<3.0.0"
requires-poetry = '>=2.0.0,<3.0.0'
[build-system]
requires = ["poetry-core (>=2.0.0,<3.0.0)"]
requires = ['poetry-core (>=2.0.0,<3.0.0)']
build-backend = "poetry.core.masonry.api"
[tool.black]
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "gallery",
"version": "0.10.4",
"version": "0.10.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "gallery",
"version": "0.10.4",
"version": "0.10.2",
"license": "ISC",
"dependencies": {
"@popperjs/core": "^2.11.8",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "gallery",
"version": "0.10.4",
"version": "0.10.2",
"type": "module",
"scripts": {
"build": "webpack --mode production",