pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/py-creole Update to 1.0.5
details: https://anonhg.NetBSD.org/pkgsrc/rev/b0482614eea9
branches: trunk
changeset: 609858:b0482614eea9
user: wen <wen%pkgsrc.org@localhost>
date: Thu Oct 11 15:35:09 2012 +0000
description:
Update to 1.0.5
Based on PR #46593 submitted by Wen Heping(myself)
Upstream changes:
v1.0.5 - 2012-09-03
made automatic protocol links more strict: Only whitespace before and at the end are allowed.
Bugfix: Don't allow ftp:/broken (Only one slash) to be a link.
v1.0.4
html2rest: Handle double link/image substitution and raise better error messages
Bugfix in unittests (include test README file in python package). Thanks to Wen Heping for reporting this.
v1.0.3
Bugfix: AttributeError: 'module' object has no attribute 'interesting_cdata' from HTMLParser patch. Thanks to Wen Heping for reporting this.
Fix a bug in get_long_description() ReSt test for Py3k and his unittests.
Use Travis CI, too.
v1.0.2
Fix "AttributeError: 'NoneType' object has no attribute 'parent'" in html2creole.
v1.0.1
Fix "TypeError: expected string or buffer" in rest2html.
Bugfix in exception handling.
v1.0.0
Change API: Replace 'parser_kwargs' and 'emitter_kwargs' with separate arguments. (More information on API Wiki Page)
v0.9.2
Turn zip_safe in setup.py on and change unittests API.
v0.9.1
Many Bugfixes, tested with CPython 2.6, 2.7, 3.2 and PyPy v1.6
v0.9.0
Add Python v3 support (like http://python3porting.com/noconv.html strategy)
move unittests into creole/tests/
Tested with Python 2.7.1, 3.2 and PyPy v1.6.1 15798ab8cf48 jit
v0.8.5
Bugfix in html2creole: ignore links without href
v0.8.4
Bugfix in html parser if list tag has attributes: https://code.google.com/p/python-creole/issues/detail?id=19#c4
v0.8.3
Better error message if given string is not unicode: https://code.google.com/p/python-creole/issues/detail?id=19
v0.8.2
Bugfix in get_long_description() error handling (local variable 'long_description_origin' referenced before assignment)
v0.8.1
Bugfix for installation under python 2.5
Note: setup helper changed: rename GetLongDescription(...) to get_long_description(...)
v0.8
New GetLongDescription() helper for setup.py, see: https://code.google.com/p/python-creole/wiki/UseInSetup
v0.7.3
Bugfix in html2rest:
table without <th> header
new line after table
create reference hyperlinks in table cells intead of embedded urls.
Don't always use raise_unknown_node()
Add child content to raise_unknown_node()
v0.7.2
Activate ---- to <hr> in html2rest
Update demo.py
v0.7.1
Bugfix if docutils are not installed
API change: rest2html is now here: from creole.rest2html.clean_writer import rest2html
v0.7.0
NEW: Add a html2reStructuredText converter (only a subset of reSt supported)
v0.6.1
Bugfix: separate lines with one space in "wiki style line breaks" mode
v0.6
NEW: html2textile converter
some API changed!
v0.5
API changed:
Html2CreoleEmitter optional argument 'unknown_emit' takes now a callable for handle unknown html tags.
No macros used as default in creole2html converting.
We remove the support for callable macros. Only dict and modules are allowed.
remove unknown html tags is default behaviour in html2creole converting.
restructure and cleanup sourcecode files.
v0.4
only emit children of empty tags like div and span (contributed by Eric O'Connell)
remove inter wiki links and doesn't check the protocol
v0.3.3
Use when {{{ ... }}} is inline and not <pre>, see: PyLucid Forum Thread
Bugfix in html2creole: insert newline before new list. TODO: apply to all block tags: issues 16
v0.3.2
Bugfix for spaces after Headline: issues 15
v0.3.1
Make argument 'block_rules' in Parser() optional
v0.3.0
creole2html() has the optional parameter 'blog_line_breaks' to switch from default blog to wiki line breaks
v0.2.8
bugfix in setup.py
v0.2.7
handle obsolete non-closed <br> tag
v0.2.6
bugfix in setup.py
Cleanup DocStrings
add unittests
diffstat:
textproc/py-creole/Makefile | 38 +++++-
textproc/py-creole/PLIST | 187 ++++++++++++++++++++++++-----
textproc/py-creole/distinfo | 9 +-
textproc/py-creole/patches/patch-setup.py | 15 ++
4 files changed, 205 insertions(+), 44 deletions(-)
diffs (290 lines):
diff -r 634d930647b1 -r b0482614eea9 textproc/py-creole/Makefile
--- a/textproc/py-creole/Makefile Thu Oct 11 15:29:39 2012 +0000
+++ b/textproc/py-creole/Makefile Thu Oct 11 15:35:09 2012 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2012/10/04 00:22:01 cheusov Exp $
+# $NetBSD: Makefile,v 1.5 2012/10/11 15:35:09 wen Exp $
#
-VERS= 0.2.5
+VERS= 1.0.5
DISTNAME= python-creole-${VERS}
PKGNAME= ${PYPKGPREFIX}-creole-${VERS}
-PKGREVISION= 1
EGG_NAME= python_creole-${VERS}
CATEGORIES= textproc www python
MASTER_SITES= http://pypi.python.org/packages/source/p/python-creole/
@@ -17,8 +16,41 @@
PKG_DESTDIR_SUPPORT= user-destdir
+DEPENDS+= ${PYPKGPREFIX}-docutils>=0:../../textproc/py-docutils
+DEPENDS+= ${PYPKGPREFIX}-textile>=0:../../textproc/py-textile
+
USE_LANGUAGES= #none
+SUBST_CLASSES+= env
+SUBST_SED.env= -e "s,\#! */usr/bin/env *python[0-9.]*,\#!${PYTHONBIN},"
+SUBST_MESSAGE.env= Fixing path to python.
+SUBST_STAGE.env= post-patch
+SUBST_FILES.env= creole/exceptions.py
+SUBST_FILES.env+= creole/html2creole/emitter.py
+SUBST_FILES.env+= creole/html2rest/emitter.py
+SUBST_FILES.env+= creole/html2textile/emitter.py
+SUBST_FILES.env+= creole/html_parser/parser.py
+SUBST_FILES.env+= creole/html_tools/deentity.py
+SUBST_FILES.env+= creole/html_tools/strip_html.py
+SUBST_FILES.env+= creole/html_tools/text_tools.py
+SUBST_FILES.env+= creole/rest2html/clean_writer.py
+SUBST_FILES.env+= creole/shared/base_emitter.py
+SUBST_FILES.env+= creole/shared/document_tree.py
+SUBST_FILES.env+= creole/shared/unknown_tags.py
+SUBST_FILES.env+= creole/tests/__init__.py
+SUBST_FILES.env+= creole/tests/all_tests.py
+SUBST_FILES.env+= creole/tests/test_creole2html.py
+SUBST_FILES.env+= creole/tests/test_cross_compare_all.py
+SUBST_FILES.env+= creole/tests/test_cross_compare_creole.py
+SUBST_FILES.env+= creole/tests/test_cross_compare_rest.py
+SUBST_FILES.env+= creole/tests/test_cross_compare_textile.py
+SUBST_FILES.env+= creole/tests/test_html2creole.py
+SUBST_FILES.env+= creole/tests/test_html2rest.py
+SUBST_FILES.env+= creole/tests/test_html2textile.py
+SUBST_FILES.env+= creole/tests/test_rest2html.py
+SUBST_FILES.env+= creole/tests/test_setup_utils.py
+SUBST_FILES.env+= creole/tests/test_utils.py
+
PYTHON_SELF_CONFLICT= yes
.include "../../lang/python/egg.mk"
diff -r 634d930647b1 -r b0482614eea9 textproc/py-creole/PLIST
--- a/textproc/py-creole/PLIST Thu Oct 11 15:29:39 2012 +0000
+++ b/textproc/py-creole/PLIST Thu Oct 11 15:35:09 2012 +0000
@@ -1,45 +1,158 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2010/02/11 13:01:54 joerg Exp $
+@comment $NetBSD: PLIST,v 1.2 2012/10/11 15:35:09 wen Exp $
${PYSITELIB}/creole/__init__.py
${PYSITELIB}/creole/__init__.pyc
${PYSITELIB}/creole/__init__.pyo
-${PYSITELIB}/creole/creole2html.py
-${PYSITELIB}/creole/creole2html.pyc
-${PYSITELIB}/creole/creole2html.pyo
-${PYSITELIB}/creole/creole_parser.py
-${PYSITELIB}/creole/creole_parser.pyc
-${PYSITELIB}/creole/creole_parser.pyo
-${PYSITELIB}/creole/default_macros.py
-${PYSITELIB}/creole/default_macros.pyc
-${PYSITELIB}/creole/default_macros.pyo
-${PYSITELIB}/creole/html2creole.py
-${PYSITELIB}/creole/html2creole.pyc
-${PYSITELIB}/creole/html2creole.pyo
+${PYSITELIB}/creole/creole2html/__init__.py
+${PYSITELIB}/creole/creole2html/__init__.pyc
+${PYSITELIB}/creole/creole2html/__init__.pyo
+${PYSITELIB}/creole/creole2html/emitter.py
+${PYSITELIB}/creole/creole2html/emitter.pyc
+${PYSITELIB}/creole/creole2html/emitter.pyo
+${PYSITELIB}/creole/creole2html/parser.py
+${PYSITELIB}/creole/creole2html/parser.pyc
+${PYSITELIB}/creole/creole2html/parser.pyo
+${PYSITELIB}/creole/creole2html/rules.py
+${PYSITELIB}/creole/creole2html/rules.pyc
+${PYSITELIB}/creole/creole2html/rules.pyo
+${PYSITELIB}/creole/exceptions.py
+${PYSITELIB}/creole/exceptions.pyc
+${PYSITELIB}/creole/exceptions.pyo
+${PYSITELIB}/creole/html2creole/__init__.py
+${PYSITELIB}/creole/html2creole/__init__.pyc
+${PYSITELIB}/creole/html2creole/__init__.pyo
+${PYSITELIB}/creole/html2creole/emitter.py
+${PYSITELIB}/creole/html2creole/emitter.pyc
+${PYSITELIB}/creole/html2creole/emitter.pyo
+${PYSITELIB}/creole/html2rest/__init__.py
+${PYSITELIB}/creole/html2rest/__init__.pyc
+${PYSITELIB}/creole/html2rest/__init__.pyo
+${PYSITELIB}/creole/html2rest/emitter.py
+${PYSITELIB}/creole/html2rest/emitter.pyc
+${PYSITELIB}/creole/html2rest/emitter.pyo
+${PYSITELIB}/creole/html2textile/__init__.py
+${PYSITELIB}/creole/html2textile/__init__.pyc
+${PYSITELIB}/creole/html2textile/__init__.pyo
+${PYSITELIB}/creole/html2textile/emitter.py
+${PYSITELIB}/creole/html2textile/emitter.pyc
+${PYSITELIB}/creole/html2textile/emitter.pyo
+${PYSITELIB}/creole/html_parser/__init__.py
+${PYSITELIB}/creole/html_parser/__init__.pyc
+${PYSITELIB}/creole/html_parser/__init__.pyo
+${PYSITELIB}/creole/html_parser/config.py
+${PYSITELIB}/creole/html_parser/config.pyc
+${PYSITELIB}/creole/html_parser/config.pyo
+${PYSITELIB}/creole/html_parser/parser.py
+${PYSITELIB}/creole/html_parser/parser.pyc
+${PYSITELIB}/creole/html_parser/parser.pyo
+${PYSITELIB}/creole/html_tools/__init__.py
+${PYSITELIB}/creole/html_tools/__init__.pyc
+${PYSITELIB}/creole/html_tools/__init__.pyo
+${PYSITELIB}/creole/html_tools/deentity.py
+${PYSITELIB}/creole/html_tools/deentity.pyc
+${PYSITELIB}/creole/html_tools/deentity.pyo
+${PYSITELIB}/creole/html_tools/strip_html.py
+${PYSITELIB}/creole/html_tools/strip_html.pyc
+${PYSITELIB}/creole/html_tools/strip_html.pyo
+${PYSITELIB}/creole/html_tools/text_tools.py
+${PYSITELIB}/creole/html_tools/text_tools.pyc
+${PYSITELIB}/creole/html_tools/text_tools.pyo
+${PYSITELIB}/creole/py3compat.py
+${PYSITELIB}/creole/py3compat.pyc
+${PYSITELIB}/creole/py3compat.pyo
+${PYSITELIB}/creole/rest2html/__init__.py
+${PYSITELIB}/creole/rest2html/__init__.pyc
+${PYSITELIB}/creole/rest2html/__init__.pyo
+${PYSITELIB}/creole/rest2html/clean_writer.py
+${PYSITELIB}/creole/rest2html/clean_writer.pyc
+${PYSITELIB}/creole/rest2html/clean_writer.pyo
+${PYSITELIB}/creole/setup_utils.py
+${PYSITELIB}/creole/setup_utils.pyc
+${PYSITELIB}/creole/setup_utils.pyo
+${PYSITELIB}/creole/shared/HTMLParsercompat.py
+${PYSITELIB}/creole/shared/HTMLParsercompat.pyc
+${PYSITELIB}/creole/shared/HTMLParsercompat.pyo
+${PYSITELIB}/creole/shared/__init__.py
+${PYSITELIB}/creole/shared/__init__.pyc
+${PYSITELIB}/creole/shared/__init__.pyo
+${PYSITELIB}/creole/shared/base_emitter.py
+${PYSITELIB}/creole/shared/base_emitter.pyc
+${PYSITELIB}/creole/shared/base_emitter.pyo
+${PYSITELIB}/creole/shared/document_tree.py
+${PYSITELIB}/creole/shared/document_tree.pyc
+${PYSITELIB}/creole/shared/document_tree.pyo
+${PYSITELIB}/creole/shared/example_macros.py
+${PYSITELIB}/creole/shared/example_macros.pyc
+${PYSITELIB}/creole/shared/example_macros.pyo
+${PYSITELIB}/creole/shared/html_parser.py
+${PYSITELIB}/creole/shared/html_parser.pyc
+${PYSITELIB}/creole/shared/html_parser.pyo
+${PYSITELIB}/creole/shared/markup_table.py
+${PYSITELIB}/creole/shared/markup_table.pyc
+${PYSITELIB}/creole/shared/markup_table.pyo
+${PYSITELIB}/creole/shared/unknown_tags.py
+${PYSITELIB}/creole/shared/unknown_tags.pyc
+${PYSITELIB}/creole/shared/unknown_tags.pyo
+${PYSITELIB}/creole/shared/utils.py
+${PYSITELIB}/creole/shared/utils.pyc
+${PYSITELIB}/creole/shared/utils.pyo
+${PYSITELIB}/creole/tests/__init__.py
+${PYSITELIB}/creole/tests/__init__.pyc
+${PYSITELIB}/creole/tests/__init__.pyo
+${PYSITELIB}/creole/tests/all_tests.py
+${PYSITELIB}/creole/tests/all_tests.pyc
+${PYSITELIB}/creole/tests/all_tests.pyo
+${PYSITELIB}/creole/tests/test_README.creole
+${PYSITELIB}/creole/tests/test_TODOs.py
+${PYSITELIB}/creole/tests/test_TODOs.pyc
+${PYSITELIB}/creole/tests/test_TODOs.pyo
+${PYSITELIB}/creole/tests/test_creole2html.py
+${PYSITELIB}/creole/tests/test_creole2html.pyc
+${PYSITELIB}/creole/tests/test_creole2html.pyo
+${PYSITELIB}/creole/tests/test_cross_compare_all.py
+${PYSITELIB}/creole/tests/test_cross_compare_all.pyc
+${PYSITELIB}/creole/tests/test_cross_compare_all.pyo
+${PYSITELIB}/creole/tests/test_cross_compare_creole.py
+${PYSITELIB}/creole/tests/test_cross_compare_creole.pyc
+${PYSITELIB}/creole/tests/test_cross_compare_creole.pyo
+${PYSITELIB}/creole/tests/test_cross_compare_rest.py
+${PYSITELIB}/creole/tests/test_cross_compare_rest.pyc
+${PYSITELIB}/creole/tests/test_cross_compare_rest.pyo
+${PYSITELIB}/creole/tests/test_cross_compare_textile.py
+${PYSITELIB}/creole/tests/test_cross_compare_textile.pyc
+${PYSITELIB}/creole/tests/test_cross_compare_textile.pyo
+${PYSITELIB}/creole/tests/test_html2creole.py
+${PYSITELIB}/creole/tests/test_html2creole.pyc
+${PYSITELIB}/creole/tests/test_html2creole.pyo
+${PYSITELIB}/creole/tests/test_html2rest.py
+${PYSITELIB}/creole/tests/test_html2rest.pyc
+${PYSITELIB}/creole/tests/test_html2rest.pyo
+${PYSITELIB}/creole/tests/test_html2textile.py
+${PYSITELIB}/creole/tests/test_html2textile.pyc
+${PYSITELIB}/creole/tests/test_html2textile.pyo
+${PYSITELIB}/creole/tests/test_macros.py
+${PYSITELIB}/creole/tests/test_macros.pyc
+${PYSITELIB}/creole/tests/test_macros.pyo
+${PYSITELIB}/creole/tests/test_rest2html.py
+${PYSITELIB}/creole/tests/test_rest2html.pyc
+${PYSITELIB}/creole/tests/test_rest2html.pyo
+${PYSITELIB}/creole/tests/test_setup_utils.py
+${PYSITELIB}/creole/tests/test_setup_utils.pyc
+${PYSITELIB}/creole/tests/test_setup_utils.pyo
+${PYSITELIB}/creole/tests/test_utils.py
+${PYSITELIB}/creole/tests/test_utils.pyc
+${PYSITELIB}/creole/tests/test_utils.pyo
+${PYSITELIB}/creole/tests/utils/__init__.py
+${PYSITELIB}/creole/tests/utils/__init__.pyc
+${PYSITELIB}/creole/tests/utils/__init__.pyo
+${PYSITELIB}/creole/tests/utils/base_unittest.py
+${PYSITELIB}/creole/tests/utils/base_unittest.pyc
+${PYSITELIB}/creole/tests/utils/base_unittest.pyo
+${PYSITELIB}/creole/tests/utils/utils.py
+${PYSITELIB}/creole/tests/utils/utils.pyc
+${PYSITELIB}/creole/tests/utils/utils.pyo
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/${EGG_INFODIR}/zip-safe
-${PYSITELIB}/tests/__init__.py
-${PYSITELIB}/tests/__init__.pyc
-${PYSITELIB}/tests/__init__.pyo
-${PYSITELIB}/tests/run_all_tests.py
-${PYSITELIB}/tests/run_all_tests.pyc
-${PYSITELIB}/tests/run_all_tests.pyo
-${PYSITELIB}/tests/test_creole2html.py
-${PYSITELIB}/tests/test_creole2html.pyc
-${PYSITELIB}/tests/test_creole2html.pyo
-${PYSITELIB}/tests/test_cross_compare.py
-${PYSITELIB}/tests/test_cross_compare.pyc
-${PYSITELIB}/tests/test_cross_compare.pyo
-${PYSITELIB}/tests/test_html2creole.py
-${PYSITELIB}/tests/test_html2creole.pyc
-${PYSITELIB}/tests/test_html2creole.pyo
-${PYSITELIB}/tests/utils/__init__.py
-${PYSITELIB}/tests/utils/__init__.pyc
-${PYSITELIB}/tests/utils/__init__.pyo
-${PYSITELIB}/tests/utils/base_unittest.py
-${PYSITELIB}/tests/utils/base_unittest.pyc
-${PYSITELIB}/tests/utils/base_unittest.pyo
-${PYSITELIB}/tests/utils/utils.py
-${PYSITELIB}/tests/utils/utils.pyc
-${PYSITELIB}/tests/utils/utils.pyo
+share/doc/py-creole/README.creole
diff -r 634d930647b1 -r b0482614eea9 textproc/py-creole/distinfo
--- a/textproc/py-creole/distinfo Thu Oct 11 15:29:39 2012 +0000
+++ b/textproc/py-creole/distinfo Thu Oct 11 15:35:09 2012 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2010/02/11 13:01:54 joerg Exp $
+$NetBSD: distinfo,v 1.2 2012/10/11 15:35:09 wen Exp $
-SHA1 (python-creole-0.2.5.tar.gz) = cdc05b235a1ec66153b4078b7cbfea2efebfa248
-RMD160 (python-creole-0.2.5.tar.gz) = 05f5e579a5b886402bd832ed64b3b66b5536641d
-Size (python-creole-0.2.5.tar.gz) = 31024 bytes
+SHA1 (python-creole-1.0.5.tar.gz) = fabef2732acdca81704f16f29222006d8b9e95a3
+RMD160 (python-creole-1.0.5.tar.gz) = c7079a6f46e2e726058944f12b204d9b174f32df
+Size (python-creole-1.0.5.tar.gz) = 66232 bytes
+SHA1 (patch-setup.py) = 87fedc68753bd108c6c87b0ce6d5187e3627371b
diff -r 634d930647b1 -r b0482614eea9 textproc/py-creole/patches/patch-setup.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/py-creole/patches/patch-setup.py Thu Oct 11 15:35:09 2012 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2012/10/11 15:35:09 wen Exp $
+
+Install README.creole into right directory.
+
+--- setup.py.orig 2012-10-11 06:13:34.000000000 +0000
++++ setup.py
+@@ -44,7 +44,7 @@ setup(
+ url='http://code.google.com/p/python-creole/',
+ packages=find_packages(),
+ include_package_data=True, # include package data under svn source control
+- data_files=[("", ["README.creole"])], # README used in unittest test_setup_utils.py
++ data_files=[("share/doc/py-creole", ["README.creole"])], # README used in unittest test_setup_utils.py
+ zip_safe=True, # http://packages.python.org/distribute/setuptools.html#setting-the-zip-safe-flag
+ keywords="creole markup creole2html html2creole rest2html html2rest html2textile",
+ classifiers=[
Home |
Main Index |
Thread Index |
Old Index