Преглед изворни кода

Update changelog; minor tweak to file headers

tags/v0.6
Ben Kurtovic пре 3 година
родитељ
комит
b7b3b2e33e
59 измењених фајлова са 34 додато и 64 уклоњено
  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 Прегледај датотеку

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


+ 9
- 2
CHANGELOG Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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


Loading…
Откажи
Сачувај