wikitextparser 0.55.9__tar.gz → 0.55.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/.github/workflows/tests.yml +5 -5
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/CHANGELOG.rst +5 -1
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/PKG-INFO +1 -1
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/__init__.py +1 -1
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_wikitext.py +2 -2
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/.coveragerc +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/.gitignore +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/.readthedocs.yaml +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/LICENSE.md +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/README.rst +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/CHANGELOG.rst +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/Makefile +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/README.rst +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/conf.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/index.rst +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/make.bat +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/pyproject.toml +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_argument.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_cell.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_comment_bold_italic.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_config.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_externallink.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_parameter.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_parser_function.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_section.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_spans.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_table.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_tag.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_template.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_wikilink.py +0 -0
- {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_wikilist.py +0 -0
|
@@ -13,16 +13,16 @@ jobs:
|
|
|
13
13
|
strategy:
|
|
14
14
|
matrix:
|
|
15
15
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
16
|
-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
|
16
|
+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
17
17
|
env:
|
|
18
18
|
OS: ${{ matrix.os }}
|
|
19
19
|
PYTHON: ${{ matrix.python-version }}
|
|
20
20
|
runs-on: ${{ matrix.os }}
|
|
21
21
|
steps:
|
|
22
22
|
- name: Checkout repo
|
|
23
|
-
uses: actions/checkout@
|
|
23
|
+
uses: actions/checkout@v4
|
|
24
24
|
- name: Set Up Python ${{ matrix.python-version }}
|
|
25
|
-
uses: actions/setup-python@
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
26
|
with:
|
|
27
27
|
python-version: ${{ matrix.python-version }}
|
|
28
28
|
- name: Display Python version
|
|
@@ -35,8 +35,8 @@ jobs:
|
|
|
35
35
|
run: pytest --cov=wikitextparser tests --cov-report=xml --cov-fail-under=80
|
|
36
36
|
- name: Upload coverage to Codecov
|
|
37
37
|
# https://github.com/codecov/codecov-action
|
|
38
|
-
uses: codecov/codecov-action@
|
|
38
|
+
uses: codecov/codecov-action@v4
|
|
39
39
|
with:
|
|
40
40
|
files: ./coverage.xml
|
|
41
41
|
env_vars: OS,PYTHON
|
|
42
|
-
|
|
42
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
v0.55.10
|
|
2
|
+
--------
|
|
3
|
+
* Fixed a bug in ``plain_text`` causing ``IndexError`` when using a custom function to replace ``templates``/``parser_functions``.
|
|
4
|
+
|
|
1
5
|
v0.55.9
|
|
2
6
|
-------
|
|
3
|
-
- Fixed a bug in
|
|
7
|
+
- Fixed a bug in ``plain_text`` not detecting images with multiple dots correctly. (#129)
|
|
4
8
|
|
|
5
9
|
v0.55.8
|
|
6
10
|
-------
|
|
@@ -677,7 +677,7 @@ class WikiText:
|
|
|
677
677
|
remove(b, e)
|
|
678
678
|
|
|
679
679
|
if callable(replace_templates):
|
|
680
|
-
for template in
|
|
680
|
+
for template in parsed.templates:
|
|
681
681
|
b, e = template._span_data[:2] # noqa
|
|
682
682
|
if lst[b] is None: # overwritten
|
|
683
683
|
continue
|
|
@@ -688,7 +688,7 @@ class WikiText:
|
|
|
688
688
|
remove(b, e)
|
|
689
689
|
|
|
690
690
|
if callable(replace_parser_functions):
|
|
691
|
-
for pf in
|
|
691
|
+
for pf in parsed.parser_functions:
|
|
692
692
|
b, e = pf._span_data[:2]
|
|
693
693
|
if lst[b] is None: # already overwritten
|
|
694
694
|
continue
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|