Rename project to signal-cal-bot
- package src/signal-cal-bot -> src/signal_cal_bot - distribution and CLI entry point: signal-cal-bot - env vars CALBOT_* -> SIGNAL_CAL_BOT_* - database file, container names, user agents and logs renamed - docs and compose updated
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import annotations
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
from calbot.expand import parse_events
|
||||
from signal_cal_bot.expand import parse_events
|
||||
|
||||
FIXTURE = Path(__file__).parent / "fixtures" / "tec-like.ics.txt"
|
||||
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ from pathlib import Path
|
||||
|
||||
import httpx
|
||||
|
||||
from calbot.feed import Feed, FeedResponse, normalize_feed_url
|
||||
from calbot.store import Store
|
||||
from signal_cal_bot.feed import Feed, FeedResponse, normalize_feed_url
|
||||
from signal_cal_bot.store import Store
|
||||
|
||||
NOW = datetime(2026, 11, 18, 12, 0, tzinfo=timezone.utc)
|
||||
EMPTY_FEED = b"BEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:-//test//EN\r\nEND:VCALENDAR\r\n"
|
||||
|
||||
@@ -3,9 +3,9 @@ from __future__ import annotations
|
||||
from datetime import datetime, timezone
|
||||
from zoneinfo import ZoneInfo
|
||||
|
||||
from calbot.config import FormatConfig
|
||||
from calbot.expand import Event
|
||||
from calbot.format import (
|
||||
from signal_cal_bot.config import FormatConfig
|
||||
from signal_cal_bot.expand import Event
|
||||
from signal_cal_bot.format import (
|
||||
find_postcode,
|
||||
format_hashtags,
|
||||
format_time_range,
|
||||
|
||||
@@ -5,8 +5,8 @@ import io
|
||||
import httpx
|
||||
from PIL import Image
|
||||
|
||||
from calbot.config import ImagesConfig
|
||||
from calbot.images import ImageService
|
||||
from signal_cal_bot.config import ImagesConfig
|
||||
from signal_cal_bot.images import ImageService
|
||||
|
||||
|
||||
def make_service(tmp_path, **overrides) -> ImageService:
|
||||
|
||||
@@ -6,7 +6,7 @@ from zoneinfo import ZoneInfo
|
||||
|
||||
import httpx
|
||||
|
||||
from calbot.config import (
|
||||
from signal_cal_bot.config import (
|
||||
AnnounceConfig,
|
||||
CalendarConfig,
|
||||
Config,
|
||||
@@ -17,17 +17,17 @@ from calbot.config import (
|
||||
SignalConfig,
|
||||
WatchdogConfig,
|
||||
)
|
||||
from calbot.expand import Event
|
||||
from calbot.feed import Feed, FeedResponse, normalize_feed_url
|
||||
from calbot.scheduler import (
|
||||
from signal_cal_bot.expand import Event
|
||||
from signal_cal_bot.feed import Feed, FeedResponse, normalize_feed_url
|
||||
from signal_cal_bot.scheduler import (
|
||||
Bot,
|
||||
clamp_send_at,
|
||||
in_window,
|
||||
next_window_start,
|
||||
reminder_time,
|
||||
)
|
||||
from calbot.store import PageInfo, Store
|
||||
from calbot.watchdog import Watchdog
|
||||
from signal_cal_bot.store import PageInfo, Store
|
||||
from signal_cal_bot.watchdog import Watchdog
|
||||
|
||||
LONDON = ZoneInfo("Europe/London")
|
||||
UTC = timezone.utc
|
||||
|
||||
Reference in New Issue
Block a user