Skip to content

Commit

Permalink
updated pylodstorage dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tholzheim committed May 11, 2024
1 parent d574a96 commit 3c32815
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: fill sqlite
if: steps.cache-sqlite.outputs.cache-hit != 'true'
run: |
scripts/getVolumeIndexPages
python scripts/getVolumeIndexPages.py
ceur-ws --recreate
- name: save Sqlite
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
#https://github.com/martinblech/xmltodict
'xmltodict>=0.13.0',
# https://pypi.org/project/pylodstorage/
'pylodstorage>=0.9.2',
'pylodstorage>=0.11.4',
# https://github.com/pyparsing/pyparsing
'pyparsing>=3.0.9',
# https://pypi.org/project/beautifulsoup4/
Expand Down
11 changes: 11 additions & 0 deletions scripts/getVolumeIndexPages.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from io import BytesIO
from pathlib import Path
from zipfile import ZipFile
from urllib.request import urlopen


resp = urlopen("https://github.com/WolfgangFahl/pyCEURmake/releases/download/v0.4.0/volume_index_pages.zip")
zip_file = ZipFile(BytesIO(resp.read()))
target_location = Path.home().joinpath(".ceurws")
target_location.mkdir(parents=True, exist_ok=True)
zip_file.extractall(target_location)
3 changes: 1 addition & 2 deletions tests/test_papertocparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def check_paper_toc_parser(
counter["failure"] += 1
if show_failure:
print(f"{vol_number} paper toc parsing fails with {str(ex)})")
finally:
return paper_records
return paper_records

def test_volExamples(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wikidatasync.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import dataclasses
import pprint
import time
from typing import Union
import unittest
from typing import Union

from ez_wikidata.wdproperty import PropertyMapping, WdDatatype
from ez_wikidata.wikidata import UrlReference
Expand Down

0 comments on commit 3c32815

Please sign in to comment.