-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support "Get More" when using H5 (#97)
* feat: h5 supports "get more" * ci: update dependabot.yml * relock * fix dependabot syntax * relock --------- Co-authored-by: JamzumSum <[email protected]>
- Loading branch information
1 parent
d426d8d
commit f66ed5c
Showing
6 changed files
with
75 additions
and
34 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "aioqzone-feed" | ||
version = "0.13.2.dev4" | ||
version = "0.13.3.dev1" | ||
description = "aioqzone plugin providing higher level api for processing feed." | ||
authors = ["aioqzone <[email protected]>"] | ||
license = "AGPL-3.0" | ||
|
@@ -14,9 +14,20 @@ documentation = "https://aioqzone.github.io/aioqzone-feed" | |
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
aioqzone = { version = "^0.12.10.dev7", source = "PyPI", allow-prereleases = true } | ||
aioqzone = { version = "^0.12.11.dev2", source = "PyPI", allow-prereleases = true } | ||
exceptiongroup = { version = ">=1.1.1", python = "<3.11" } | ||
|
||
lxml = { version = "*", optional = false } | ||
cssselect = { version = "*", optional = false } | ||
|
||
numpy = { version = "*", optional = false } | ||
pillow = { version = "*", optional = false } | ||
|
||
# prepare for aioqzone v13 | ||
[tool.poetry.extras] | ||
captcha = ["numpy", "pillow"] # equals to aioqzone[captcha] | ||
web = ["lxml", "cssselect"] # equals to aioqzone[lxml] | ||
|
||
# dependency groups | ||
[tool.poetry.group.test] | ||
optional = false | ||
|
@@ -67,3 +78,7 @@ line_length = 99 | |
[tool.black] | ||
line-length = 99 | ||
target-version = ['py38'] | ||
|
||
[tool.pyright] | ||
pythonVersion = "3.8" | ||
pythonPlatform = "All" |
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 +1,10 @@ | ||
from .web import FeedWebApi as FeedApi | ||
try: | ||
import lxml | ||
except ImportError: | ||
# if lxml extras is not installed, use h5 api | ||
from .h5 import FeedH5Api as FeedApi | ||
else: | ||
# in v12 the default manner is web api | ||
from .web import FeedWebApi as FeedApi | ||
|
||
del lxml |
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