Skip to content

Commit 12b7e57

Browse files
committed
Using libzim 8.1.0
- Updating test to new libzim getArticleCount() behavior
1 parent 4641f5a commit 12b7e57

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- v*
77

88
env:
9-
LIBZIM_VERSION: 8.0.0
9+
LIBZIM_VERSION: 8.1.0
1010
LIBZIM_INCLUDE_PATH: include/zim
1111
TWINE_USERNAME: __token__
1212
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: test
22
on: [push]
33

44
env:
5-
LIBZIM_VERSION: 8.0.0
5+
LIBZIM_VERSION: 8.1.0
66
LIBZIM_INCLUDE_PATH: include/zim
77
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
88
PROFILE: 1

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- Using libzim 8.1.0
13+
814
## [2.0.0] - 2022-09-06
915

1016
### Removed

tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
@task
17-
def download_libzim(c, version="7.2.2"):
17+
def download_libzim(c, version="8.1.0"):
1818
"""download C++ libzim binary"""
1919

2020
if platform.machine() != "x86_64" or platform.system() not in ("Linux", "Darwin"):

tests/test_libzim_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"is_valid": True,
7979
"entry_count": 371,
8080
"all_entry_count": 371,
81-
"article_count": 284,
81+
"article_count": 129,
8282
"suggestion_string": "lucky",
8383
"suggestion_count": 1,
8484
"suggestion_result": ["A/That_Lucky_Old_Sun"],
@@ -266,7 +266,7 @@ def all_zims(tmpdir_factory):
266266
temp_dir = tmpdir_factory.mktemp("data")
267267

268268
libzim_urls = [
269-
f"https://github.com/kiwix/kiwix-lib/raw/master/test/data/{name}"
269+
f"https://github.com/kiwix/libkiwix/raw/master/test/data/{name}"
270270
for name in ("zimfile.zim", "example.zim", "corner_cases.zim")
271271
] + ["https://github.com/openzim/zim-testing-suite/raw/main/data/nons/small.zim"]
272272

0 commit comments

Comments
 (0)