Parcourir la source

Update changelog; minor tweak to file headers

tags/v0.6
Ben Kurtovic il y a 3 ans
Parent
révision
b7b3b2e33e
59 fichiers modifiés avec 34 ajouts et 64 suppressions
  1. +1
    -1
      .travis.yml
  2. +9
    -2
      CHANGELOG
  3. +1
    -2
      README.rst
  4. +8
    -0
      appveyor.yml
  5. +13
    -4
      docs/changelog.rst
  6. +0
    -1
      mwparserfromhell/__init__.py
  7. +0
    -1
      mwparserfromhell/definitions.py
  8. +0
    -1
      mwparserfromhell/nodes/__init__.py
  9. +0
    -1
      mwparserfromhell/nodes/_base.py
  10. +0
    -1
      mwparserfromhell/nodes/argument.py
  11. +0
    -1
      mwparserfromhell/nodes/comment.py
  12. +0
    -1
      mwparserfromhell/nodes/external_link.py
  13. +0
    -1
      mwparserfromhell/nodes/extras/__init__.py
  14. +0
    -1
      mwparserfromhell/nodes/extras/attribute.py
  15. +0
    -1
      mwparserfromhell/nodes/extras/parameter.py
  16. +0
    -1
      mwparserfromhell/nodes/heading.py
  17. +0
    -1
      mwparserfromhell/nodes/html_entity.py
  18. +0
    -1
      mwparserfromhell/nodes/tag.py
  19. +0
    -1
      mwparserfromhell/nodes/template.py
  20. +0
    -1
      mwparserfromhell/nodes/text.py
  21. +0
    -1
      mwparserfromhell/nodes/wikilink.py
  22. +0
    -1
      mwparserfromhell/parser/__init__.py
  23. +0
    -1
      mwparserfromhell/parser/builder.py
  24. +0
    -1
      mwparserfromhell/parser/contexts.py
  25. +0
    -1
      mwparserfromhell/parser/errors.py
  26. +0
    -1
      mwparserfromhell/parser/tokenizer.py
  27. +0
    -1
      mwparserfromhell/parser/tokens.py
  28. +0
    -1
      mwparserfromhell/smart_list/__init__.py
  29. +0
    -1
      mwparserfromhell/smart_list/list_proxy.py
  30. +0
    -1
      mwparserfromhell/smart_list/smart_list.py
  31. +0
    -1
      mwparserfromhell/string_mixin.py
  32. +0
    -1
      mwparserfromhell/utils.py
  33. +0
    -1
      mwparserfromhell/wikicode.py
  34. +0
    -2
      scripts/memtest.py
  35. +2
    -1
      setup.py
  36. +0
    -1
      tests/_test_tokenizer.py
  37. +0
    -1
      tests/_test_tree_equality.py
  38. +0
    -1
      tests/test_argument.py
  39. +0
    -1
      tests/test_attribute.py
  40. +0
    -1
      tests/test_builder.py
  41. +0
    -1
      tests/test_comment.py
  42. +0
    -1
      tests/test_ctokenizer.py
  43. +0
    -1
      tests/test_docs.py
  44. +0
    -1
      tests/test_external_link.py
  45. +0
    -1
      tests/test_heading.py
  46. +0
    -1
      tests/test_html_entity.py
  47. +0
    -1
      tests/test_parameter.py
  48. +0
    -1
      tests/test_parser.py
  49. +0
    -1
      tests/test_pytokenizer.py
  50. +0
    -1
      tests/test_roundtripping.py
  51. +0
    -1
      tests/test_smart_list.py
  52. +0
    -1
      tests/test_string_mixin.py
  53. +0
    -1
      tests/test_tag.py
  54. +0
    -1
      tests/test_template.py
  55. +0
    -1
      tests/test_text.py
  56. +0
    -1
      tests/test_tokens.py
  57. +0
    -1
      tests/test_utils.py
  58. +0
    -1
      tests/test_wikicode.py
  59. +0
    -1
      tests/test_wikilink.py

+ 1
- 1
.travis.yml Voir le fichier

@@ -5,7 +5,7 @@ python:
- 3.6
- 3.7
- 3.8
- 3.9-dev
- 3.9
arch:
- amd64
- ppc64le


+ 9
- 2
CHANGELOG Voir le fichier

@@ -1,10 +1,17 @@
v0.6 (unreleased):

- Added support for Python 3.8.
- Dropped support for end-of-life Python 3.4.
Thanks to everyone for their patience with this release!

- Breaking change: dropped support for end-of-life Python 2.7 and 3.4.
- Added support for Python 3.8 and 3.9.
- Added binary wheels for Linux and macOS.
- Updated Wikicode.matches() to recognize underscores as being equivalent
to spaces. (#216)
- Add a 'default' parameter to Template.get, and implement dict-style item
access for template parameters. (#252)
- Fixed a rare parsing bug involving deeply nested style tags. (#224)
- Updated HTML tag definitions.
- Internal refactoring and cleanup.

v0.5.4 (released May 15, 2019):



+ 1
- 2
README.rst Voir le fichier

@@ -41,8 +41,7 @@ Normal usage is rather straightforward (where ``text`` is page text):
>>> wikicode = mwparserfromhell.parse(text)

``wikicode`` is a ``mwparserfromhell.Wikicode`` object, which acts like an
ordinary ``str`` object with some extra methods.
For example:
ordinary ``str`` object with some extra methods. For example:

>>> text = "I has a template! {{foo|bar|baz|eggs=spam}} See it?"
>>> wikicode = mwparserfromhell.parse(text)


+ 8
- 0
appveyor.yml Voir le fichier

@@ -54,6 +54,14 @@ environment:
PYTHON_VERSION: "3.8"
PYTHON_ARCH: "64"

- PYTHON: "C:\\Python39"
PYTHON_VERSION: "3.9"
PYTHON_ARCH: "32"

- PYTHON: "C:\\Python39-x64"
PYTHON_VERSION: "3.9"
PYTHON_ARCH: "64"

install:
- "%PIP% install --disable-pip-version-check --user --upgrade pip"
- "%PIP% install wheel twine"


+ 13
- 4
docs/changelog.rst Voir le fichier

@@ -7,12 +7,21 @@ v0.6
Unreleased
(`changes <https://github.com/earwig/mwparserfromhell/compare/v0.5.4...develop>`__):

- Added support for Python 3.8.
- Dropped support for end-of-life Python 3.4.
- Updated Wikicode.matches() to recognize underscores as being equivalent
to spaces. (`#216 <https://github.com/earwig/mwparserfromhell/issues/216>`_)
Thanks to everyone for their patience with this release!

- Breaking change: dropped support for end-of-life Python 2.7 and 3.4.
- Added support for Python 3.8 and 3.9.
- Added binary wheels for Linux and macOS.
- Updated :meth:`.Wikicode.matches` to recognize underscores as being
equivalent to spaces.
(`#216 <https://github.com/earwig/mwparserfromhell/issues/216>`_)
- Add a `default` parameter to :meth:`.Template.get`, and implement dict-style
item access for template parameters.
(`#252 <https://github.com/earwig/mwparserfromhell/issues/252>`_)
- Fixed a rare parsing bug involving deeply nested style tags.
(`#224 <https://github.com/earwig/mwparserfromhell/issues/224>`_)
- Updated HTML tag definitions.
- Internal refactoring and cleanup.

v0.5.4
------


+ 0
- 1
mwparserfromhell/__init__.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/definitions.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/__init__.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/_base.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/argument.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/comment.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/external_link.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/extras/__init__.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/extras/attribute.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/extras/parameter.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/heading.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/html_entity.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/tag.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/template.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/text.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/nodes/wikilink.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/parser/__init__.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/parser/builder.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/parser/contexts.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2019 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/parser/errors.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/parser/tokenizer.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/parser/tokens.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/smart_list/__init__.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
# Copyright (C) 2019-2020 Yuri Astrakhan <YuriAstrakhan@gmail.com>
#


+ 0
- 1
mwparserfromhell/smart_list/list_proxy.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
# Copyright (C) 2019-2020 Yuri Astrakhan <YuriAstrakhan@gmail.com>
#


+ 0
- 1
mwparserfromhell/smart_list/smart_list.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
# Copyright (C) 2019-2020 Yuri Astrakhan <YuriAstrakhan@gmail.com>
#


+ 0
- 1
mwparserfromhell/string_mixin.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/utils.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
mwparserfromhell/wikicode.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 2
scripts/memtest.py Voir le fichier

@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 2
- 1
setup.py Voir le fichier

@@ -30,7 +30,7 @@ from setuptools.command.build_ext import build_ext

from mwparserfromhell import __version__

with open("README.rst", encoding='utf-8') as fp:
with open("README.rst") as fp:
long_docs = fp.read()

use_extension = True
@@ -97,6 +97,7 @@ setup(
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Text Processing :: Markup"
],
)

+ 0
- 1
tests/_test_tokenizer.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/_test_tree_equality.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_argument.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_attribute.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_builder.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2019 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_comment.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_ctokenizer.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_docs.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_external_link.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_heading.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_html_entity.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_parameter.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_parser.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_pytokenizer.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2019 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_roundtripping.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_smart_list.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_string_mixin.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_tag.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_template.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_text.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_tokens.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_utils.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2016 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_wikicode.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


+ 0
- 1
tests/test_wikilink.py Voir le fichier

@@ -1,4 +1,3 @@
#
# Copyright (C) 2012-2020 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy


Chargement…
Annuler
Enregistrer