AntiCompositeNumber
a42c728744
nodes: Add __getitem__, __setitem__, and __delitem__ to Template
These are just aliases for existing methods, without the ability to
specifiy additional parameters. However, including them makes Template
more dict-like, so it's a good idea to have them.
pirms 4 gadiem
AntiCompositeNumber
c8dbc5f8cd
nodes: add a `default` param to Template.get
Similar to dict.get, Template.get with a default param supplied will
return that value instead of raising an exception. If default is unset,
Template.get will keep its previous behavior and raise an exception.
pirms 4 gadiem
Ben Kurtovic
8c4b5928eb
Merge pull request #240 from legoktm/macos-wheels
Use Github Actions to build macOS wheels too
pirms 4 gadiem
Kunal Mehta
6e144d3657
Use Github Actions to build macOS wheels
For 3.5+ on the latest macOS version.
pirms 4 gadiem
Ben Kurtovic
6ff88262af
Pointless changes to action
pirms 4 gadiem
Kunal Mehta
8fdf75ccad
Use Github Actions to build manylinux1 wheels
Just like the Windows wheels, these allow for Linux users to install
mwparserfromhell and use the faster CTokenizer without needing to
have build tools installed.
Under the hood, this uses pypa manylinux1 docker image to build and
tag the wheels, then publishes them to pypi if a new tag was pushed.
Fixes #170 .
pirms 4 gadiem
Ben Kurtovic
93f704f05f
Merge pull request #234 from legoktm/python2-rm
Drop Python 2 support
pirms 4 gadiem
Kunal Mehta
91ed26d864
Set python_requires in setup.py to ">= 3.4"
In addition to replacing the manual version check, this will also
instruct pip to download an older version of mwparserfromhell for
users running earlier Python versions rather than just getting something
broken.
pirms 4 gadiem
Kunal Mehta
7e5297fbe6
Drop Python 2 support
Fixes #221 .
pirms 4 gadiem
Ben Kurtovic
ea9b5ce0e2
Merge pull request #230 from nyurik/move-smartlist
move smart_list into sub-package/multiple files
pirms 4 gadiem
Yuri Astrakhan
4065624150
updated comment/license
pirms 4 gadiem
Yuri Astrakhan
aa37425a9b
move smart_list into sub-package/multiple files
Step one of refactoring - making SmartList into its own
package, with each class having its own file. No code
changes were made.
Note that SmartList and ListProxy import each other,
so had to import SmartList as a full package name
rather than use from ... import ... construct.
pirms 4 gadiem
Ben Kurtovic
3fcbe7b404
Merge pull request #228 from nyurik/org
ignore InteliJ IDEA files
pirms 4 gadiem
Yuri Astrakhan
ce4254fd19
ignore InteliJ IDEA files
pirms 4 gadiem
Ben Kurtovic
416c7f6b78
Merge pull request #225 from nyurik/patch-2
add missing public items to __all__
pirms 4 gadiem
Yuri Astrakhan
e66a2db0ed
add missing public items to __all__
Added a few more public classes, and sorted the __all__ value.
The Attribute and Parameter classes are not included as they can
be imported from the `mwparserfromhell.nodes.extras` without
linter complaining. They could be added to this __all__ too.
pirms 4 gadiem
Ben Kurtovic
1d5db41751
Add Python 3.8 to CI
pirms 5 gadiem
Ben Kurtovic
56e776a578
Update .travis.yml test running
pirms 5 gadiem
Ben Kurtovic
b09b619709
Switch to 'unittest discover' over 'setup.py test'
pirms 5 gadiem
Ben Kurtovic
b3c98efd22
Fix a parsing bug involving deeply nested style tags ( fixes #224 )
pirms 5 gadiem
Ben Kurtovic
2a4e1f4316
Add contexts.describe() for debugging
pirms 5 gadiem
Ben Kurtovic
ee99c7bd41
Experiment concluded
pirms 5 gadiem
Ben Kurtovic
83b58655ea
Experiment with DeepSource
pirms 5 gadiem
Ben Kurtovic
b6e4c59004
Switch to requests for basic API example ( closes #219 ); update links
pirms 5 gadiem
Ben Kurtovic
6136b1b205
Make Wikicode.matches() treat _ and space as equivalent ( fixes #216 )
pirms 5 gadiem
Ben Kurtovic
9965709934
Version bump; update release script; update Travis
pirms 5 gadiem
Ben Kurtovic
18646f712f
release/0.5.4
pirms 5 gadiem
Ben Kurtovic
8c5f554406
Add guard against a rare crash in the C tokenizer
pirms 5 gadiem
Ben Kurtovic
98dc30902d
Version bump
pirms 5 gadiem
Ben Kurtovic
3d116713b2
release/0.5.3
pirms 5 gadiem
Ben Kurtovic
fa98aad408
Bump copyright [skip ci]
pirms 5 gadiem
Ben Kurtovic
4775131717
Fix not memoizing bad routes after failing inside a table ( fixes #206 )
pirms 5 gadiem
Ben Kurtovic
6e61c99c90
Update API query example; clarify docstring
pirms 5 gadiem
Ben Kurtovic
708bee59e1
Minor cleanup
pirms 5 gadiem
Ben Kurtovic
83bcb902b8
Support manual construction of Node objects ( fixes #214 )
pirms 5 gadiem
Ben Kurtovic
0ae5f6d641
Fix regression in previous commit on _ListProxy transformations ( fixes #213 )
pirms 5 gadiem
Ben Kurtovic
840a88bcd6
Fix Wikicode transformation methods on empty sections ( fixes #212 )
pirms 5 gadiem
Ben Kurtovic
2c0b9e5795
Version bump, fix release script again [ci skip]
pirms 6 gadiem
Ben Kurtovic
8a88198aae
release/0.5.2
pirms 6 gadiem
Ben Kurtovic
5ce918e007
Update changelog [ci skip]
pirms 6 gadiem
Ben Kurtovic
a21d0d6946
Proper README syntax highlighting
pirms 6 gadiem
Ben Kurtovic
2c206bc16b
Fix crash due to PyList_GET_SIZE being applied to a dict ( fixes #208 )
pirms 6 gadiem
Ben Kurtovic
62fce8f1ee
Apply previous commit ( 59369e3
) to docs [ci skip]
pirms 6 gadiem
Ben Kurtovic
02151e24f7
Merge pull request #207 from BryghtShadow/patch-1 [ci-skip]
fix example: wrap dict.values in list()
pirms 6 gadiem
Shii Kayano
59369e3c35
fix example: wrap dict.values in list()
In Python 3, `dict.values` returns a dict_values object, which does not support indexing.
pirms 6 gadiem
Ben Kurtovic
6de7d41733
Fix signals getting stuck inside the C tokenizer ( #206 )
pirms 6 gadiem
Ben Kurtovic
de6e671c40
Update changelog, remove now-unneeded test discovery script, cleanup
pirms 6 gadiem
Ben Kurtovic
563901fa95
Merge pull request #204 from hugovk/rm-eol
Drop support for EOL Python 2.6, 3.2 and 3.3
pirms 6 gadiem
Hugo
f372d3d495
Upgrade unit test asserts
pirms 6 gadiem
Hugo
e457b39f32
Upgrade Python syntax with pyupgrade https://github.com/asottile/pyupgrade
pirms 6 gadiem