-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a bunch more files for packaging.
- Loading branch information
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
0.1 | ||
=== | ||
|
||
* Basic support for converting parsed MediaWiki wikicode to HTML. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include LICENSE | ||
include CHANGELOG.rst | ||
include README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
mwcomposerfromhell | ||
################## | ||
|
||
**mwcomposerfromhell** is a Python package that provides an easy-to-use composer | ||
to convert the MediaWiki wikicode to HTML via `mwparserfromhell`_. It supports | ||
Python 3. | ||
|
||
.. _mwparserfromhell: https://github.com/earwig/mwparserfromhell/ | ||
|
||
Usage | ||
----- | ||
|
||
Normal usage is rather straightforward (where ``text`` is page text):: | ||
|
||
>>> import mwparserfromhell | ||
>>> import mwcomposerfromhell | ||
>>> wikicode = mwparserfromhell.parse(text) | ||
>>> html = mwcomposerfromhell.compose(wikicode) | ||
|
||
``html`` is a ``str`` object for the output HTML. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,12 @@ def long_description(): | |
name='mwcomposerfromhell', | ||
version="0.1", | ||
packages=find_packages(), | ||
description='', | ||
description='Convert the parsed MediaWiki wikicode (using mwparserfromhell) to HTML.', | ||
long_description=long_description(), | ||
author='Patrick Cloke', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Development Status :: 3 - Alpha', | ||
'Intended Audience :: Developers', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: Internet', | ||
|