Skip to content

Commit

Permalink
build(lock): specify slide-tc directly
Browse files Browse the repository at this point in the history
  • Loading branch information
JamzumSum committed Dec 31, 2023
1 parent f455c81 commit 88419b8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 36 deletions.
25 changes: 2 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 4 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aioqzone-feed"
version = "1.2.1.dev1"
version = "1.2.1.dev2"
description = "aioqzone plugin that provides higher level apis for processing feeds."
authors = ["aioqzone <zzzzss990315@gmail.com>"]
license = "AGPL-3.0"
Expand All @@ -14,15 +14,11 @@ documentation = "https://aioqzone.github.io/aioqzone-feed"

[tool.poetry.dependencies]
python = "^3.8"
aioqzone = [
{ version = "^1.8.0.dev1", allow-prereleases = true },
{ version = "^1.8.0.dev1", allow-prereleases = true, extras = [
"captcha",
], optional = true },
]
aioqzone = { version = "^1.8.0.dev1", allow-prereleases = true }
slide-tc = { version = "~0.1.1", allow-prereleases = true, optional = true }

[tool.poetry.extras]
captcha = ["aioqzone"]
captcha = ["slide-tc"]

# dependency groups
[tool.poetry.group.test]
Expand Down
3 changes: 1 addition & 2 deletions src/aioqzone_feed/api/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

from aioqzone_feed.api.heartbeat import HeartbeatApi
from aioqzone_feed.message import FeedApiEmitterMixin
from aioqzone_feed.message.feed import FEED_TYPES
from aioqzone_feed.type import FeedContent
from aioqzone_feed.type import FEED_TYPES, FeedContent

log = logging.getLogger(__name__)
MAX_BID = 0x7FFF
Expand Down
4 changes: 1 addition & 3 deletions src/aioqzone_feed/message/feed.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import typing as t

from aioqzone.model import FeedData, ProfileFeedData
from tylisten import hookdef
from tylisten.futstore import FutureStore

from aioqzone_feed.type import BaseFeed, FeedContent
from aioqzone_feed.type import FEED_TYPES, BaseFeed, FeedContent

__all__ = ["raw_feed", "processed_feed", "stop_fetch", "FeedApiEmitterMixin"]
FEED_TYPES = t.Union[FeedData, ProfileFeedData]


@hookdef
Expand Down
2 changes: 2 additions & 0 deletions src/aioqzone_feed/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from aioqzone.model.protocol import ConEntity
from aioqzone.utils.entity import split_entities

FEED_TYPES = Union[FeedData, ProfileFeedData]


@dataclass
class VisualMedia:
Expand Down

0 comments on commit 88419b8

Please sign in to comment.