Skip to content

Commit

Permalink
JFetcher v3.5.0
Browse files Browse the repository at this point in the history
功能变动:

- 将日志统一存储到 `logs` 数据库中
- 更新使用的 Python 版本到 3.12
- 固定 CI 流程使用的 Python 版本
  • Loading branch information
FHU-yezi committed Oct 15, 2024
2 parents 89438b4 + c1ad6f8 commit 161aa0d
Show file tree
Hide file tree
Showing 7 changed files with 248 additions and 212 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install Python
run: uv python install
run: uv python install 3.12
- name: Install Dependencies
run: uv sync --all-extras
- name: Lint With Ruff
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim
FROM python:3.12-slim

ENV TZ Asia/Shanghai

Expand Down
1 change: 1 addition & 0 deletions config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
[logging]
display_level = "DEBUG"
save_level = "DEBUG"
table = "jfetcher"

[notify]
enabled = true
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ networks:

services:
main:
image: jfetcher:3.4.1
image: jfetcher:3.5.0
container_name: jfetcher
build: .
volumes:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "jfetcher"
version = "3.4.1"
version = "3.5.0"
description = "简书数据采集工具"
readme = "README.md"
license = {file = "LICENSE"}
Expand All @@ -12,7 +12,7 @@ dependencies = [
"jkit>=3.0.0a16",
"prefect<3.0.0",
"psycopg[binary]>=3.2.0",
"sshared[config,mongo,postgres]>=0.11.0",
"sshared[config,mongo,postgres]>=0.14.0",
]

[tool.uv]
Expand Down
3 changes: 2 additions & 1 deletion utils/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
logger = Logger(
display_level=CONFIG.logging.display_level,
save_level=CONFIG.logging.save_level,
connection_string=CONFIG.postgres.connection_string
connection_string=CONFIG.postgres.logging_connection_string,
table=CONFIG.logging.table,
)


Expand Down
446 changes: 240 additions & 206 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit 161aa0d

Please sign in to comment.