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.
Files changed (31) hide show
  1. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/.github/workflows/tests.yml +5 -5
  2. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/CHANGELOG.rst +5 -1
  3. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/PKG-INFO +1 -1
  4. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/__init__.py +1 -1
  5. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_wikitext.py +2 -2
  6. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/.coveragerc +0 -0
  7. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/.gitignore +0 -0
  8. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/.readthedocs.yaml +0 -0
  9. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/LICENSE.md +0 -0
  10. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/README.rst +0 -0
  11. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/CHANGELOG.rst +0 -0
  12. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/Makefile +0 -0
  13. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/README.rst +0 -0
  14. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/conf.py +0 -0
  15. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/index.rst +0 -0
  16. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/docs/make.bat +0 -0
  17. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/pyproject.toml +0 -0
  18. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_argument.py +0 -0
  19. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_cell.py +0 -0
  20. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_comment_bold_italic.py +0 -0
  21. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_config.py +0 -0
  22. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_externallink.py +0 -0
  23. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_parameter.py +0 -0
  24. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_parser_function.py +0 -0
  25. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_section.py +0 -0
  26. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_spans.py +0 -0
  27. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_table.py +0 -0
  28. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_tag.py +0 -0
  29. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_template.py +0 -0
  30. {wikitextparser-0.55.9 → wikitextparser-0.55.10}/wikitextparser/_wikilink.py +0 -0
  31. {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@v3
23
+ uses: actions/checkout@v4
24
24
  - name: Set Up Python ${{ matrix.python-version }}
25
- uses: actions/setup-python@v4
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@v3
38
+ uses: codecov/codecov-action@v4
39
39
  with:
40
40
  files: ./coverage.xml
41
41
  env_vars: OS,PYTHON
42
- fail_ci_if_error: false
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 plain text not detecting images with multiple dots correctly. (#129)
7
+ - Fixed a bug in ``plain_text`` not detecting images with multiple dots correctly. (#129)
4
8
 
5
9
  v0.55.8
6
10
  -------
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wikitextparser
3
- Version: 0.55.9
3
+ Version: 0.55.10
4
4
  Summary: A simple parsing tool for MediaWiki's wikitext markup.
5
5
  Keywords: MediaWiki,wikitext,parser
6
6
  Author-email: 5j9 <5j9@users.noreply.github.com>
@@ -1,5 +1,5 @@
1
1
  # Scheme: [N!]N(.N)*[{a|b|rc}N][.postN][.devN]
2
- __version__ = '0.55.9'
2
+ __version__ = '0.55.10'
3
3
 
4
4
  from . import _wikitext
5
5
  from ._argument import Argument # noqa: F401
@@ -677,7 +677,7 @@ class WikiText:
677
677
  remove(b, e)
678
678
 
679
679
  if callable(replace_templates):
680
- for template in self.templates:
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 self.parser_functions:
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