Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-textile for openSUSE:Factory checked in at 2021-12-05 22:46:01 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-textile (Old) and /work/SRC/openSUSE:Factory/.python-textile.new.31177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-textile" Sun Dec 5 22:46:01 2021 rev:10 rq:935653 version:4.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-textile/python-textile.changes 2020-05-19 14:48:58.856136172 +0200 +++ /work/SRC/openSUSE:Factory/.python-textile.new.31177/python-textile.changes 2021-12-05 22:46:27.261575042 +0100 @@ -1,0 +2,9 @@ +Sat Nov 27 10:13:30 UTC 2021 - Sebastian Wagner <sebix+novell....@sebix.at> + +- - update to version 4.0.2: + - Bugfixes: + - Support non-http schemas in url refs ("#75":https://github.com/textile/python-textile/pull/75) + - pytest-runner is deprecated ("#77":https://github.com/textile/python-textile/issues/77) +*** other changes related to CI infrastructure + +------------------------------------------------------------------- Old: ---- textile-4.0.1.tar.gz New: ---- textile-4.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-textile.spec ++++++ --- /var/tmp/diff_new_pack.FwGNOv/_old 2021-12-05 22:46:27.825573204 +0100 +++ /var/tmp/diff_new_pack.FwGNOv/_new 2021-12-05 22:46:27.829573191 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-textile # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-textile -Version: 4.0.1 +Version: 4.0.2 Release: 0 Summary: Textile processing for python License: BSD-3-Clause @@ -35,7 +35,7 @@ Requires: python-html5lib >= 1.0.1 Requires: python-six Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Recommends: python-regex %python_subpackages ++++++ textile-4.0.1.tar.gz -> textile-4.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/CHANGELOG.textile new/textile-4.0.2/CHANGELOG.textile --- old/textile-4.0.1/CHANGELOG.textile 2020-01-25 16:48:46.000000000 +0100 +++ new/textile-4.0.2/CHANGELOG.textile 2021-11-23 16:42:11.000000000 +0100 @@ -1,5 +1,11 @@ h1. Textile Changelog +h2. Version 4.0.2 +* Bugfixes: +** Support non-http schemas in url refs ("#75":https://github.com/textile/python-textile/pull/75) +** pytest-runner is deprecated ("#77":https://github.com/textile/python-textile/issues/77) +*** other changes related to CI infrastructure + h2. Version 4.0.1 * Bugfixes: ** SyntaxWarnings with Python 3.8 i("#71":https://github.com/textile/python-textile/issues/71) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/MANIFEST.in new/textile-4.0.2/MANIFEST.in --- old/textile-4.0.1/MANIFEST.in 2019-06-08 19:37:33.000000000 +0200 +++ new/textile-4.0.2/MANIFEST.in 2021-11-23 21:58:21.000000000 +0100 @@ -1,2 +1,8 @@ include MANIFEST.in include tests/fixtures/README.txt +include tests/test_*.py +include README.textile +include pytest.ini +include .coveragerc +include CHANGELOG.textile +include CONTRIBUTORS.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/PKG-INFO new/textile-4.0.2/PKG-INFO --- old/textile-4.0.1/PKG-INFO 2020-01-25 17:04:15.136586400 +0100 +++ new/textile-4.0.2/PKG-INFO 2021-11-23 22:01:26.874439500 +0100 @@ -1,12 +1,11 @@ Metadata-Version: 2.1 Name: textile -Version: 4.0.1 +Version: 4.0.2 Summary: Textile processing for python. Home-page: http://github.com/textile/python-textile Author: Dennis Burke Author-email: ikiruden...@gmail.com License: UNKNOWN -Description: UNKNOWN Keywords: textile,text,html markup Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable @@ -21,7 +20,12 @@ Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Software Development :: Libraries :: Python Modules -Requires-Python: ~=3.5 +Requires-Python: >=3.5 Provides-Extra: develop Provides-Extra: imagesize +License-File: LICENSE.txt + +UNKNOWN + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/README.textile new/textile-4.0.2/README.textile --- old/textile-4.0.1/README.textile 2020-01-12 21:46:19.000000000 +0100 +++ new/textile-4.0.2/README.textile 2021-11-23 15:49:13.000000000 +0100 @@ -1,4 +1,4 @@ -!https://travis-ci.org/textile/python-textile.svg!:https://travis-ci.org/textile/python-textile !https://coveralls.io/repos/github/textile/python-textile/badge.svg!:https://coveralls.io/github/textile/python-textile?branch=master !https://codecov.io/github/textile/python-textile/coverage.svg!:https://codecov.io/github/textile/python-textile !https://img.shields.io/pypi/pyversions/textile! !https://img.shields.io/pypi/wheel/textile! +!https://travis-ci.org/textile/python-textile.svg!:https://travis-ci.org/textile/python-textile !https://codecov.io/github/textile/python-textile/coverage.svg!:https://codecov.io/github/textile/python-textile !https://img.shields.io/pypi/pyversions/textile! !https://img.shields.io/pypi/wheel/textile! h1. python-textile @@ -43,3 +43,15 @@ h3. Notes: * Active development supports Python 3.5 or later. + +h3. Running Tests + +To run the test suite, use pytest. `pytest-cov` is required as well. + +When textile is installed locally: + +bc.. pytest + +When textile is not installed locally: + +bc.. PYTHONPATH=. pytest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/pytest.ini new/textile-4.0.2/pytest.ini --- old/textile-4.0.1/pytest.ini 2020-01-01 20:20:47.000000000 +0100 +++ new/textile-4.0.2/pytest.ini 2021-11-23 15:49:13.000000000 +0100 @@ -1,3 +1,3 @@ [pytest] testpaths = tests -addopts = --cov=textile --cov-report=html --cov-append --cov-report=term-missing \ No newline at end of file +addopts = --cov=textile --cov-report=html --cov-append --cov-report=term-missing diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/setup.cfg new/textile-4.0.2/setup.cfg --- old/textile-4.0.1/setup.cfg 2020-01-25 17:04:15.136586400 +0100 +++ new/textile-4.0.2/setup.cfg 2021-11-23 22:01:26.874439500 +0100 @@ -1,6 +1,3 @@ -[aliases] -test = pytest - [egg_info] tag_build = tag_date = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/setup.py new/textile-4.0.2/setup.py --- old/textile-4.0.1/setup.py 2020-01-12 21:47:21.000000000 +0100 +++ new/textile-4.0.2/setup.py 2021-11-23 21:57:25.000000000 +0100 @@ -4,21 +4,6 @@ import sys -class PyTest(TestCommand): - user_options = [('pytest-args=', 'a', "Arguments to pass to pytest")] - - def initialize_options(self): - TestCommand.initialize_options(self) - self.pytest_args = [] - - def run_tests(self): - import shlex - #import here, cause outside the eggs aren't loaded - import pytest - errno = pytest.main(shlex.split(self.pytest_args)) - sys.exit(errno) - - def get_version(): basedir = os.path.dirname(__file__) with open(os.path.join(basedir, 'textile/version.py')) as f: @@ -48,6 +33,7 @@ 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', 'Topic :: Software Development :: Libraries :: Python Modules', ], keywords='textile,text,html markup', @@ -60,10 +46,8 @@ 'imagesize': ['Pillow>=3.0.0'], }, entry_points={'console_scripts': ['pytextile=textile.__main__:main']}, - setup_requires=['pytest-runner'], tests_require=['pytest', 'pytest-cov'], - cmdclass = {'test': PyTest}, include_package_data=True, zip_safe=False, - python_requires='~=3.5', + python_requires='>=3.5', ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/tests/fixtures/README.txt new/textile-4.0.2/tests/fixtures/README.txt --- old/textile-4.0.1/tests/fixtures/README.txt 2020-01-12 21:46:19.000000000 +0100 +++ new/textile-4.0.2/tests/fixtures/README.txt 2021-11-23 15:49:13.000000000 +0100 @@ -1,4 +1,4 @@ - <p><a href="https://travis-ci.org/textile/python-textile"><img alt="" src="https://travis-ci.org/textile/python-textile.svg" /></a> <a href="https://coveralls.io/github/textile/python-textile?branch=master"><img alt="" src="https://coveralls.io/repos/github/textile/python-textile/badge.svg" /></a> <a href="https://codecov.io/github/textile/python-textile"><img alt="" src="https://codecov.io/github/textile/python-textile/coverage.svg" /></a> <img alt="" src="https://img.shields.io/pypi/pyversions/textile" /> <img alt="" src="https://img.shields.io/pypi/wheel/textile" /></p> + <p><a href="https://travis-ci.org/textile/python-textile"><img alt="" src="https://travis-ci.org/textile/python-textile.svg" /></a> <a href="https://codecov.io/github/textile/python-textile"><img alt="" src="https://codecov.io/github/textile/python-textile/coverage.svg" /></a> <img alt="" src="https://img.shields.io/pypi/pyversions/textile" /> <img alt="" src="https://img.shields.io/pypi/wheel/textile" /></p> <h1>python-textile</h1> @@ -48,4 +48,16 @@ <ul> <li>Active development supports Python 3.5 or later.</li> - </ul> \ No newline at end of file + </ul> + + <h3>Running Tests</h3> + + <p>To run the test suite, use pytest. `pytest-cov` is required as well.</p> + + <p>When textile is installed locally:</p> + +<pre><code>pytest + +When textile is not installed locally:</code></pre> + +<pre>PYTHONPATH=. pytest</pre> \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/tests/test_getRefs.py new/textile-4.0.2/tests/test_getRefs.py --- old/textile-4.0.1/tests/test_getRefs.py 2018-04-23 03:53:52.000000000 +0200 +++ new/textile-4.0.2/tests/test_getRefs.py 2021-11-23 15:49:13.000000000 +0100 @@ -9,3 +9,13 @@ result = t.urlrefs expect = {'Google': 'http://www.google.com'} assert result == expect + + t2 = Textile() + + result = t2.getRefs("my ftp [ftp]ftp://example.com") + expect = 'my ftp ' + assert result == expect + + result = t2.urlrefs + expect = {'ftp': 'ftp://example.com'} + assert result == expect diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/textile/core.py new/textile-4.0.2/textile/core.py --- old/textile-4.0.1/textile/core.py 2020-01-25 16:43:07.000000000 +0100 +++ new/textile-4.0.2/textile/core.py 2021-11-23 15:49:13.000000000 +0100 @@ -212,6 +212,15 @@ else: self.url_schemes = self.unrestricted_url_schemes + all_schemes_re_s = '|'.join([ + '(?:{0})'.format(scheme) + for scheme in self.url_schemes + ]) + self.url_ref_regex = re.compile( + r'(?:(?<=^)|(?<=\s))\[(.+)\]\s?((?:{0}:\/\/|\/)\S+)(?=\s|$)'.format(all_schemes_re_s), + re.U + ) + def parse(self, text, rel=None, sanitize=False): """Parse the input text as textile and return html output.""" self.notes = OrderedDict() @@ -612,10 +621,7 @@ def getRefs(self, text): """Capture and store URL references in self.urlrefs.""" - pattern = re.compile(r'(?:(?<=^)|(?<=\s))\[(.+)\]((?:http(?:s?):\/\/|\/)\S+)(?=\s|$)', - re.U) - text = pattern.sub(self.refs, text) - return text + return self.url_ref_regex.sub(self.refs, text) def refs(self, match): flag, url = match.groups() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/textile/version.py new/textile-4.0.2/textile/version.py --- old/textile-4.0.1/textile/version.py 2020-01-25 16:48:46.000000000 +0100 +++ new/textile-4.0.2/textile/version.py 2021-11-23 15:51:07.000000000 +0100 @@ -1 +1 @@ -VERSION = '4.0.1' +VERSION = '4.0.2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/textile.egg-info/PKG-INFO new/textile-4.0.2/textile.egg-info/PKG-INFO --- old/textile-4.0.1/textile.egg-info/PKG-INFO 2020-01-25 17:04:15.000000000 +0100 +++ new/textile-4.0.2/textile.egg-info/PKG-INFO 2021-11-23 22:01:26.000000000 +0100 @@ -1,12 +1,11 @@ Metadata-Version: 2.1 Name: textile -Version: 4.0.1 +Version: 4.0.2 Summary: Textile processing for python. Home-page: http://github.com/textile/python-textile Author: Dennis Burke Author-email: ikiruden...@gmail.com License: UNKNOWN -Description: UNKNOWN Keywords: textile,text,html markup Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable @@ -21,7 +20,12 @@ Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 Classifier: Topic :: Software Development :: Libraries :: Python Modules -Requires-Python: ~=3.5 +Requires-Python: >=3.5 Provides-Extra: develop Provides-Extra: imagesize +License-File: LICENSE.txt + +UNKNOWN + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/textile-4.0.1/textile.egg-info/SOURCES.txt new/textile-4.0.2/textile.egg-info/SOURCES.txt --- old/textile-4.0.1/textile.egg-info/SOURCES.txt 2020-01-25 17:04:15.000000000 +0100 +++ new/textile-4.0.2/textile.egg-info/SOURCES.txt 2021-11-23 22:01:26.000000000 +0100 @@ -5,7 +5,6 @@ MANIFEST.in README.textile pytest.ini -setup.cfg setup.py tests/test_attributes.py tests/test_block.py