[Python-modules-commits] [pymarkups] 01/07: Import pymarkups_1.0.1.orig.tar.gz

Dmitry Shachnev mitya57 at moszumanska.debian.org
Tue Dec 22 14:53:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch master
in repository pymarkups.

commit 0768be7e854c23da085ed231a8b1f9c145dcd6ea
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Tue Dec 22 17:43:09 2015 +0300

    Import pymarkups_1.0.1.orig.tar.gz
---
 .travis.yml               | 1 +
 MANIFEST.in               | 3 +--
 Markups.egg-info/PKG-INFO | 4 ++--
 PKG-INFO                  | 4 ++--
 changelog                 | 7 +++++++
 markups/__init__.py       | 2 +-
 markups/mdx_mathjax.py    | 3 +--
 markups/textile.py        | 6 +++---
 setup.cfg                 | 4 ++--
 setup.py                  | 3 ++-
 10 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 06a0a65..4ad4dd0 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,5 +6,6 @@ python:
   - "3.3"
   - "3.4"
   - "3.5"
+  - "pypy"
 install: pip install Markdown docutils textile
 script: python -m unittest discover -s tests -v
diff --git a/MANIFEST.in b/MANIFEST.in
index f1b9bc4..9cae138 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,6 +1,5 @@
 include LICENSE
 include README.rst
 include changelog
-include examples/example-template.html
 recursive-include docs *.rst conf.py
-recursive-include tests *.py *.rst *.html
+recursive-include tests *.py
diff --git a/Markups.egg-info/PKG-INFO b/Markups.egg-info/PKG-INFO
index 8085107..1eab7cc 100644
--- a/Markups.egg-info/PKG-INFO
+++ b/Markups.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: Markups
-Version: 1.0.0
+Version: 1.0.1
 Summary: A wrapper around various text markups
 Home-page: https://github.com/retext-project/pymarkups
 Author: Dmitry Shachnev
@@ -48,7 +48,7 @@ Description:
         .. _GitHub: https://github.com/retext-project/pymarkups
         
 Platform: UNKNOWN
-Classifier: Development Status :: 4 - Beta
+Classifier: Development Status :: 5 - Production/Stable
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
diff --git a/PKG-INFO b/PKG-INFO
index 8085107..1eab7cc 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: Markups
-Version: 1.0.0
+Version: 1.0.1
 Summary: A wrapper around various text markups
 Home-page: https://github.com/retext-project/pymarkups
 Author: Dmitry Shachnev
@@ -48,7 +48,7 @@ Description:
         .. _GitHub: https://github.com/retext-project/pymarkups
         
 Platform: UNKNOWN
-Classifier: Development Status :: 4 - Beta
+Classifier: Development Status :: 5 - Production/Stable
 Classifier: License :: OSI Approved :: BSD License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
diff --git a/changelog b/changelog
index a01ca6c..40dbdae 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,10 @@
+Version 1.0.1, 2015-12-22
+=========================
+
+* The Textile markup now uses the recommended python-textile API.
+* Fixed warnings during installation.
+* Python-Markdown Math extension updated to the latest version.
+
 Version 1.0, 2015-12-13
 =======================
 
diff --git a/markups/__init__.py b/markups/__init__.py
index ecc73fa..1fe1018 100644
--- a/markups/__init__.py
+++ b/markups/__init__.py
@@ -10,7 +10,7 @@ from markups.markdown import MarkdownMarkup
 from markups.restructuredtext import ReStructuredTextMarkup
 from markups.textile import TextileMarkup
 
-__version_tuple__ = (1, 0, 0)
+__version_tuple__ = (1, 0, 1)
 __version__ = '.'.join(map(str, __version_tuple__))
 
 builtin_markups = [MarkdownMarkup, ReStructuredTextMarkup, TextileMarkup]
diff --git a/markups/mdx_mathjax.py b/markups/mdx_mathjax.py
index a9edba1..ca7ab60 100644
--- a/markups/mdx_mathjax.py
+++ b/markups/mdx_mathjax.py
@@ -40,7 +40,6 @@ class MathExtension(markdown.extensions.Extension):
                 node.text = markdown.util.AtomicString(m.group(3))
             return node
 
-        configs = self.getConfigs()
         inlinemathpatterns = (
             markdown.inlinepatterns.Pattern(r'(?<!\\|\$)(\$)([^\$]+)(\$)'),  #  $...$
             markdown.inlinepatterns.Pattern(r'(?<!\\)(\\\()(.+?)(\\\))')     # \(...\)
@@ -50,7 +49,7 @@ class MathExtension(markdown.extensions.Extension):
             markdown.inlinepatterns.Pattern(r'(?<!\\)(\\\[)(.+?)(\\\])'),    # \[...\]
             markdown.inlinepatterns.Pattern(r'(?<!\\)(\\begin{([a-z]+?\*?)})(.+?)(\\end{\3})')
         )
-        if not configs['enable_dollar_delimiter']:
+        if not self.getConfig('enable_dollar_delimiter'):
             inlinemathpatterns = inlinemathpatterns[1:]
         for i, pattern in enumerate(inlinemathpatterns):
             pattern.handleMatch = handle_match_inline
diff --git a/markups/textile.py b/markups/textile.py
index f489c1a..086b7ad 100644
--- a/markups/textile.py
+++ b/markups/textile.py
@@ -31,8 +31,8 @@ class TextileMarkup(AbstractMarkup):
 
 	def __init__(self, filename=None):
 		AbstractMarkup.__init__(self, filename)
-		from textile.core import Textile
-		self.parser = Textile()
+		from textile import textile
+		self.textile = textile
 
 	def get_document_body(self, text):
-		return self.parser.parse(text)
+		return self.textile(text)
diff --git a/setup.cfg b/setup.cfg
index 6bc2ff3..a669c45 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,5 @@
 [egg_info]
-tag_date = 0
-tag_build = 
 tag_svn_revision = 0
+tag_build = 
+tag_date = 0
 
diff --git a/setup.py b/setup.py
index 9baaa40..1848881 100755
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,8 @@ from os.path import dirname, join
 with open(join(dirname(__file__), 'README.rst')) as readme_file:
 	long_description = '\n' + readme_file.read()
 
-classifiers = ['Development Status :: 4 - Beta',
+classifiers = [
+	'Development Status :: 5 - Production/Stable',
 	'License :: OSI Approved :: BSD License',
 	'Operating System :: OS Independent',
 	'Programming Language :: Python',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pymarkups.git



More information about the Python-modules-commits mailing list