Skip to content

Commit

Permalink
Merge pull request #70 from J-CPelletier/fix-guilded-age
Browse files Browse the repository at this point in the history
Deploy on earliest supported version
  • Loading branch information
J-CPelletier committed Oct 29, 2023
2 parents 5f1e1f9 + 056dd95 commit 898e9c6
Show file tree
Hide file tree
Showing 6 changed files with 320 additions and 311 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
poetry-version: ["1.4.0"]

steps:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6]
python-version: ["3.8"]
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

Expand Down
613 changes: 314 additions & 299 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ packages = [
python = "^3.8"
click = "^7.1.1"
tqdm = "^4.43.0"
Scrapy = "^2.5.1"
Scrapy = "^2.11.0"
scrapy-splash = "^0.9.0"
scrapy-fake-useragent = "^1.4.4"
pytest-rerunfailures = "^11.1.2"
Expand Down
2 changes: 1 addition & 1 deletion webcomix/scrapy/verification/verification_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from scrapy import Spider

from webcomix.exceptions import CrawlerBlocked, NextLinkNotFound
from webcomix.exceptions import NextLinkNotFound
from webcomix.scrapy.request_factory import RequestFactory
from webcomix.scrapy.util import is_not_end_of_comic
from webcomix.scrapy.verification.web_page import WebPage
Expand Down
6 changes: 0 additions & 6 deletions webcomix/supported_comics.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@
"comic_image_selector": "//div[@id='comic']//img/@src",
"next_page_selector": "//a[contains(@class, 'comic-nav-next')]/@href",
},
"GuildedAge": {
"name": "GuildedAge",
"start_url": "https://guildedage.net/comic/chapter-1-cover/",
"comic_image_selector": "//div[@id='comic']//img/@src",
"next_page_selector": "//a[@class='navi comic-nav-next navi-next']/@href",
},
"TalesOfElysium": {
"name": "TalesOfElysium",
"start_url": "https://ssp-comics.com/comics/toe/?page=1&mode=10",
Expand Down
4 changes: 2 additions & 2 deletions webcomix/tests/test_comic_availability.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
@pytest.mark.slow
@pytest.mark.parametrize("comic_name", supported_comics.keys())
def test_supported_comics(comic_name):
comic = Comic(**supported_comics[comic_name])
comic = Comic(**supported_comics[comic_name], debug=True)
first_pages = comic.verify_xpath()
try:
check_first_pages(first_pages)
except:
except AssertionError:
print("Comic failed! First pages:")
print(first_pages)
assert False
Expand Down

0 comments on commit 898e9c6

Please sign in to comment.