Hello community, here is the log from the commit of package python-textile for openSUSE:Factory checked in at 2020-02-09 20:49:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-textile (Old) and /work/SRC/openSUSE:Factory/.python-textile.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-textile" Sun Feb 9 20:49:35 2020 rev:8 rq:772356 version:4.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-textile/python-textile.changes 2020-01-25 13:25:45.636078638 +0100 +++ /work/SRC/openSUSE:Factory/.python-textile.new.26092/python-textile.changes 2020-02-09 20:49:37.854916594 +0100 @@ -1,0 +2,9 @@ +Sat Feb 1 15:14:57 UTC 2020 - Sebastian Wagner <sebix+novell....@sebix.at> + +- update to version 4.0.1: + - Bugfixes: + - SyntaxWarnings with Python 3.8 i("#71":https://github.com/textile/python-textile/issues/71) + - testsuite: internal error with coverage 5.0.X ("#72":https://github.com/textile/python-textile/issues/72) + - DeprecationWarnings about invalid escape sequences ("#73":https://github.com/textile/python-textile/issues/73) + +------------------------------------------------------------------- Old: ---- textile-4.0.0.tar.gz New: ---- textile-4.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-textile.spec ++++++ --- /var/tmp/diff_new_pack.znUPkE/_old 2020-02-09 20:49:38.846917161 +0100 +++ /var/tmp/diff_new_pack.znUPkE/_new 2020-02-09 20:49:38.846917161 +0100 @@ -20,7 +20,7 @@ %bcond_without test %define skip_python2 1 Name: python-textile -Version: 4.0.0 +Version: 4.0.1 Release: 0 Summary: Textile processing for python License: BSD-3-Clause ++++++ textile-4.0.0.tar.gz -> textile-4.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.0/.coveragerc new/textile-4.0.1/.coveragerc --- old/textile-4.0.0/.coveragerc 2018-04-23 03:53:52.000000000 +0200 +++ new/textile-4.0.1/.coveragerc 2020-01-25 16:43:07.000000000 +0100 @@ -1,5 +1,7 @@ [run] branch = True +source = textile +parallel = True [report] show_missing = True diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.0/CHANGELOG.textile new/textile-4.0.1/CHANGELOG.textile --- old/textile-4.0.0/CHANGELOG.textile 2020-01-12 20:37:33.000000000 +0100 +++ new/textile-4.0.1/CHANGELOG.textile 2020-01-25 16:48:46.000000000 +0100 @@ -1,5 +1,11 @@ h1. Textile Changelog +h2. Version 4.0.1 +* Bugfixes: +** SyntaxWarnings with Python 3.8 i("#71":https://github.com/textile/python-textile/issues/71) +** testsuite: internal error with coverage 5.0.X ("#72":https://github.com/textile/python-textile/issues/72) +** DeprecationWarnings about invalid escape sequences ("#73":https://github.com/textile/python-textile/issues/73) + h2. Version 4.0.0 * Drop support for Python 2, hence the version bump. Update list of PY3K versions to currently-supported versions. If you need to use textile on Python 2.7 or Python 3.3 or 3.4, please use textile Version 3.0.4. * For use in PyPy environments, textile used to work well with the regex package. Lately, it's running into trouble. Please uninstall regex if this is the case for you. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.0/PKG-INFO new/textile-4.0.1/PKG-INFO --- old/textile-4.0.0/PKG-INFO 2020-01-12 21:34:30.000000000 +0100 +++ new/textile-4.0.1/PKG-INFO 2020-01-25 17:04:15.136586400 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: textile -Version: 4.0.0 +Version: 4.0.1 Summary: Textile processing for python. Home-page: http://github.com/textile/python-textile Author: Dennis Burke diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.0/textile/core.py new/textile-4.0.1/textile/core.py --- old/textile-4.0.0/textile/core.py 2020-01-12 16:29:57.000000000 +0100 +++ new/textile-4.0.1/textile/core.py 2020-01-25 16:43:07.000000000 +0100 @@ -17,9 +17,9 @@ Additions and fixes Copyright (c) 2006 Alex Shiels http://thresholdstate.com/ """ - import uuid from urllib.parse import urlparse, urlsplit, urlunsplit, quote, unquote +from collections import OrderedDict from textile.tools import sanitizer, imagesize from textile.regex_strings import (align_re_s, cls_re_s, pnct_re_s, @@ -29,10 +29,6 @@ parse_attributes, pba) from textile.objects import Block, Table - -from collections import OrderedDict - - try: import regex as re except ImportError: @@ -44,7 +40,7 @@ unrestricted_url_schemes = restricted_url_schemes + ('file', 'tel', 'callto', 'sftp', 'data') - btag = ('bq', 'bc', 'notextile', 'pre', 'h[1-6]', 'fn\d+', 'p', '###') + btag = ('bq', 'bc', 'notextile', 'pre', 'h[1-6]', r'fn\d+', 'p', '###') btag_lite = ('bq', 'bc', 'p') note_index = 1 @@ -168,7 +164,6 @@ regex_snippets['space'], 'abr': regex_snippets['abr'], 'nab': regex_snippets['nab'], 'pnct': pnct_re_s}), re.U), ] - # These are the changes that need to be made for characters that occur # at the beginning of the string. self.glyph_search_initial = list(self.glyph_search) @@ -257,7 +252,6 @@ if not self.lite: text = self.placeNoteLists(text) - text = self.retrieve(text) text = text.replace('{0}:glyph:'.format(self.uid), '') @@ -325,7 +319,7 @@ # does the first line of this ol have a start attribute if len(tl) > len(pt): - # no, set it to 1 + # no, set it to 1. if start is None: self.olstarts[tl] = 1 # yes, set it to the given number @@ -350,8 +344,8 @@ except KeyError: self.olstarts[tl] = 1 - nm = re.match("^(?P<nextlistitem>[#\*;:]+)(_|[\d]+)?{0}" - "[ .].*".format(cls_re_s), nextline) + nm = re.match(r"^(?P<nextlistitem>[#\*;:]+)(_|[\d]+)?{0}" + r"[ .].*".format(cls_re_s), nextline) if nm: nl = nm.group('nextlistitem') @@ -363,10 +357,9 @@ atts = pba(atts, restricted=self.restricted) tabs = '\t' * len(tl) - # If start is still None, set it to '', else leave the value - # that we've already formatted. + # If start is still None, set it to '', else leave the value that + # we've already formatted. start = start or '' - # if this item tag isn't in the list, create a new list and # item, else just create the item if tl not in ls: @@ -378,7 +371,6 @@ line = ("\t<{0}{1}>{2}".format(litem, atts, content) if showitem else '') line = '{0}{1}'.format(tabs, line) - if len(nl) <= len(tl): if showitem: line = "{0}</{1}>".format(line, litem) @@ -391,14 +383,12 @@ if len(k) > 1 and v != 2: line = "{0}</{1}>".format(line, litem) del ls[k] - - # Remember the current Textile tag + # Remember the current Textile tag: pt = tl - # This else exists in the original php version. I'm not sure how # to come up with a case where the line would not match. I think # it may have been necessary due to the way php returns matches. - #else: + # else: #line = "{0}\n".format(line) result.append(line) return self.doTagBr(litem, "\n".join(result)) @@ -422,13 +412,12 @@ tre = '|'.join(self.btag) else: tre = '|'.join(self.btag_lite) - # split the text by two or more newlines, retaining the newlines in the # split list text = re.split(r'(\n{2,})', text) # some blocks, when processed, will ask us to output nothing, if that's - # the case, we'd want to drop the whitespace which comes after it. + # the case, we'd want to drop the whitespace which follows it. eat_whitespace = False # check to see if previous block has already been escaped @@ -496,7 +485,7 @@ # no tag specified else: # if we're inside an extended block, add the text from the - # previous line to the front + # previous line to the front. if ext and out: if block.tag == 'p': line = generate_tag(block.tag, line, block.outer_atts) @@ -533,7 +522,6 @@ multiline_para = True else: line = self.doPBr(line) - if not block.tag == 'p': multiline_para = False @@ -559,8 +547,8 @@ if block.eat: eat_whitespace = True - # at this point, we've gone through all the lines, and if there's still - # an extension in effect, we close it here. + # at this point, we've gone through all the lines. if there's still an + # extension in effect, we close it here if ext and out and not block.tag == 'p': block.content = out.pop() block.process() @@ -725,7 +713,7 @@ linkparts = [] i = 0 - while balanced is not 0 or i is 0: # pragma: no branch + while balanced != 0 or i == 0: # pragma: no branch # Starting at the end, pop off the previous part of the # slice's fragments. @@ -748,7 +736,7 @@ # HAL!"":url... In this case we count a zero length in # the last position as a closing quote and others as # opening quotes. - if i is 0: + if i == 0: balanced = balanced + 1 else: balanced = balanced - 1 @@ -763,7 +751,7 @@ break # If the next possibility is empty or ends in a space # we have a closing ". - if (possibility is '' or possibility.endswith(' ')): + if (possibility == '' or possibility.endswith(' ')): # force search exit balanced = 0; @@ -841,7 +829,7 @@ # "text":url?q[]=x][123] will have "[123]" popped off the back, the # remaining closing square brackets will later be tested for balance if (counts[']']): - m = re.search('(?P<url>^.*\])(?P<tight>\[.*?)$', url, flags=re.U) + m = re.search(r'(?P<url>^.*\])(?P<tight>\[.*?)$', url, flags=re.U) if m: url, tight = m.groups() @@ -1259,8 +1247,8 @@ # sort o by key o = OrderedDict(sorted(o.items(), key=lambda t: t[0])) self.notes = o - text_re = re.compile('<p>notelist({0})(?:\:([\w|{1}]))?([\^!]?)(\+?)' - '\.?[\s]*</p>'.format(cls_re_s, syms_re_s), re.U) + text_re = re.compile(r'<p>notelist({0})(?:\:([\w|{1}]))?([\^!]?)(\+?)' + r'\.?[\s]*</p>'.format(cls_re_s, syms_re_s), re.U) text = text_re.sub(self.fNoteLists, text) return text @@ -1410,7 +1398,7 @@ def retrieveURL(self, match): url = self.refCache.get(int(match.group('token')), '') - if url is '': + if url == '': return url if url in self.urlrefs: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.0/textile/version.py new/textile-4.0.1/textile/version.py --- old/textile-4.0.0/textile/version.py 2020-01-12 20:13:03.000000000 +0100 +++ new/textile-4.0.1/textile/version.py 2020-01-25 16:48:46.000000000 +0100 @@ -1 +1 @@ -VERSION = '4.0.0' +VERSION = '4.0.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.0/textile.egg-info/PKG-INFO new/textile-4.0.1/textile.egg-info/PKG-INFO --- old/textile-4.0.0/textile.egg-info/PKG-INFO 2020-01-12 21:34:30.000000000 +0100 +++ new/textile-4.0.1/textile.egg-info/PKG-INFO 2020-01-25 17:04:15.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: textile -Version: 4.0.0 +Version: 4.0.1 Summary: Textile processing for python. Home-page: http://github.com/textile/python-textile Author: Dennis Burke