Hello community, here is the log from the commit of package python-pelican for openSUSE:Factory checked in at 2019-10-11 15:18:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pelican (Old) and /work/SRC/openSUSE:Factory/.python-pelican.new.2352 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pelican" Fri Oct 11 15:18:51 2019 rev:8 rq:737233 version:4.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pelican/python-pelican.changes 2019-09-26 20:40:35.674645007 +0200 +++ /work/SRC/openSUSE:Factory/.python-pelican.new.2352/python-pelican.changes 2019-10-11 15:20:16.895614640 +0200 @@ -1,0 +2,13 @@ +Thu Oct 10 18:01:58 UTC 2019 - BenoƮt Monin <benoit.mo...@gmx.fr> + +- update to version 4.1.3: + * Fix quick-start docs regarding pelican --listen + * Set default listen address to 127.0.0.1 + * Add extra/optional Markdown dependency to setup.py + * Use correct SSH port syntax for rsync in tasks.py + * Place all deprecated settings handling together + * Add related project URLs for display on PyPI + * Skip some tests on Windows that can't pass due to filesystem + differences + +------------------------------------------------------------------- Old: ---- pelican-4.1.2.tar.gz New: ---- pelican-4.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pelican.spec ++++++ --- /var/tmp/diff_new_pack.ojAYUG/_old 2019-10-11 15:20:20.979603414 +0200 +++ /var/tmp/diff_new_pack.ojAYUG/_new 2019-10-11 15:20:20.979603414 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pelican -Version: 4.1.2 +Version: 4.1.3 Release: 0 Summary: A tool to generate a static blog from reStructuredText or Markdown input files License: AGPL-3.0-only ++++++ pelican-4.1.2.tar.gz -> pelican-4.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/PKG-INFO new/pelican-4.1.3/PKG-INFO --- old/pelican-4.1.2/PKG-INFO 2019-09-23 20:21:15.000000000 +0200 +++ new/pelican-4.1.3/PKG-INFO 2019-10-09 20:45:18.000000000 +0200 @@ -1,12 +1,15 @@ -Metadata-Version: 1.2 +Metadata-Version: 2.1 Name: pelican -Version: 4.1.2 +Version: 4.1.3 Summary: Static site generator supporting reStructuredText and Markdown source content. Home-page: https://getpelican.com/ -Author: Alexis Metaireau +Author: Justin Mayer Author-email: auth...@getpelican.com -Maintainer: Justin Mayer License: AGPLv3 +Project-URL: Documentation, https://docs.getpelican.com/ +Project-URL: Funding, https://donate.getpelican.com/ +Project-URL: Source, https://github.com/getpelican/pelican +Project-URL: Tracker, https://github.com/getpelican/pelican/issues Description: Pelican |build-status| |pypi-version| ===================================== @@ -75,6 +78,17 @@ Release history ############### + 4.1.3 - 2019-10-09 + ================== + + * Fix quick-start docs regarding `pelican --listen` + * Set default listen address to 127.0.0.1 + * Add extra/optional Markdown dependency to setup.py + * Use correct SSH port syntax for rsync in tasks.py + * Place all deprecated settings handling together + * Add related project URLs for display on PyPI + * Skip some tests on Windows that can't pass due to filesystem differences + 4.1.2 - 2019-09-23 ================== @@ -485,6 +499,7 @@ * First working version +Keywords: static web site generator SSG reStructuredText Markdown Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console @@ -500,3 +515,4 @@ Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Internet :: WWW/HTTP Classifier: Topic :: Software Development :: Libraries :: Python Modules +Provides-Extra: Markdown diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/docs/changelog.rst new/pelican-4.1.3/docs/changelog.rst --- old/pelican-4.1.2/docs/changelog.rst 2019-09-23 20:21:14.000000000 +0200 +++ new/pelican-4.1.3/docs/changelog.rst 2019-10-09 20:45:17.000000000 +0200 @@ -1,6 +1,17 @@ Release history ############### +4.1.3 - 2019-10-09 +================== + +* Fix quick-start docs regarding `pelican --listen` +* Set default listen address to 127.0.0.1 +* Add extra/optional Markdown dependency to setup.py +* Use correct SSH port syntax for rsync in tasks.py +* Place all deprecated settings handling together +* Add related project URLs for display on PyPI +* Skip some tests on Windows that can't pass due to filesystem differences + 4.1.2 - 2019-09-23 ================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pelican/__init__.py new/pelican-4.1.3/pelican/__init__.py --- old/pelican-4.1.2/pelican/__init__.py 2019-09-23 20:20:18.000000000 +0200 +++ new/pelican-4.1.3/pelican/__init__.py 2019-10-09 20:44:13.000000000 +0200 @@ -11,7 +11,6 @@ import multiprocessing import os import pprint -import re import sys import time import traceback @@ -52,7 +51,6 @@ # define the default settings self.settings = settings - self._handle_deprecation() self.path = settings['PATH'] self.theme = settings['THEME'] @@ -94,65 +92,6 @@ logger.debug('Restoring system path') sys.path = _sys_path - def _handle_deprecation(self): - - if self.settings.get('CLEAN_URLS', False): - logger.warning('Found deprecated `CLEAN_URLS` in settings.' - ' Modifying the following settings for the' - ' same behaviour.') - - self.settings['ARTICLE_URL'] = '{slug}/' - self.settings['ARTICLE_LANG_URL'] = '{slug}-{lang}/' - self.settings['PAGE_URL'] = 'pages/{slug}/' - self.settings['PAGE_LANG_URL'] = 'pages/{slug}-{lang}/' - - for setting in ('ARTICLE_URL', 'ARTICLE_LANG_URL', 'PAGE_URL', - 'PAGE_LANG_URL'): - logger.warning("%s = '%s'", setting, self.settings[setting]) - - if self.settings.get('AUTORELOAD_IGNORE_CACHE'): - logger.warning('Found deprecated `AUTORELOAD_IGNORE_CACHE` in ' - 'settings. Use --ignore-cache instead.') - self.settings.pop('AUTORELOAD_IGNORE_CACHE') - - if self.settings.get('ARTICLE_PERMALINK_STRUCTURE', False): - logger.warning('Found deprecated `ARTICLE_PERMALINK_STRUCTURE` in' - ' settings. Modifying the following settings for' - ' the same behaviour.') - - structure = self.settings['ARTICLE_PERMALINK_STRUCTURE'] - - # Convert %(variable) into {variable}. - structure = re.sub(r'%\((\w+)\)s', r'{\g<1>}', structure) - - # Convert %x into {date:%x} for strftime - structure = re.sub(r'(%[A-z])', r'{date:\g<1>}', structure) - - # Strip a / prefix - structure = re.sub('^/', '', structure) - - for setting in ('ARTICLE_URL', 'ARTICLE_LANG_URL', 'PAGE_URL', - 'PAGE_LANG_URL', 'DRAFT_URL', 'DRAFT_LANG_URL', - 'ARTICLE_SAVE_AS', 'ARTICLE_LANG_SAVE_AS', - 'DRAFT_SAVE_AS', 'DRAFT_LANG_SAVE_AS', - 'PAGE_SAVE_AS', 'PAGE_LANG_SAVE_AS'): - self.settings[setting] = os.path.join(structure, - self.settings[setting]) - logger.warning("%s = '%s'", setting, self.settings[setting]) - - for new, old in [('FEED', 'FEED_ATOM'), ('TAG_FEED', 'TAG_FEED_ATOM'), - ('CATEGORY_FEED', 'CATEGORY_FEED_ATOM'), - ('TRANSLATION_FEED', 'TRANSLATION_FEED_ATOM')]: - if self.settings.get(new, False): - logger.warning( - 'Found deprecated `%(new)s` in settings. Modify %(new)s ' - 'to %(old)s in your settings and theme for the same ' - 'behavior. Temporarily setting %(old)s for backwards ' - 'compatibility.', - {'new': new, 'old': old} - ) - self.settings[old] = self.settings[new] - def run(self): """Run the generators and return""" start_time = time.time() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pelican/settings.py new/pelican-4.1.3/pelican/settings.py --- old/pelican-4.1.2/pelican/settings.py 2019-09-23 20:20:18.000000000 +0200 +++ new/pelican-4.1.3/pelican/settings.py 2019-10-09 20:44:13.000000000 +0200 @@ -170,7 +170,7 @@ 'WRITE_SELECTED': [], 'FORMATTED_FIELDS': ['summary'], 'PORT': 8000, - 'BIND': '', + 'BIND': '127.0.0.1', } PYGMENTS_RST_OPTIONS = None @@ -442,6 +442,67 @@ 'Falling back to default.', key) settings[key] = DEFAULT_CONFIG[key] + # CLEAN_URLS + if settings.get('CLEAN_URLS', False): + logger.warning('Found deprecated `CLEAN_URLS` in settings.' + ' Modifying the following settings for the' + ' same behaviour.') + + settings['ARTICLE_URL'] = '{slug}/' + settings['ARTICLE_LANG_URL'] = '{slug}-{lang}/' + settings['PAGE_URL'] = 'pages/{slug}/' + settings['PAGE_LANG_URL'] = 'pages/{slug}-{lang}/' + + for setting in ('ARTICLE_URL', 'ARTICLE_LANG_URL', 'PAGE_URL', + 'PAGE_LANG_URL'): + logger.warning("%s = '%s'", setting, settings[setting]) + + # AUTORELOAD_IGNORE_CACHE -> --ignore-cache + if settings.get('AUTORELOAD_IGNORE_CACHE'): + logger.warning('Found deprecated `AUTORELOAD_IGNORE_CACHE` in ' + 'settings. Use --ignore-cache instead.') + settings.pop('AUTORELOAD_IGNORE_CACHE') + + # ARTICLE_PERMALINK_STRUCTURE + if settings.get('ARTICLE_PERMALINK_STRUCTURE', False): + logger.warning('Found deprecated `ARTICLE_PERMALINK_STRUCTURE` in' + ' settings. Modifying the following settings for' + ' the same behaviour.') + + structure = settings['ARTICLE_PERMALINK_STRUCTURE'] + + # Convert %(variable) into {variable}. + structure = re.sub(r'%\((\w+)\)s', r'{\g<1>}', structure) + + # Convert %x into {date:%x} for strftime + structure = re.sub(r'(%[A-z])', r'{date:\g<1>}', structure) + + # Strip a / prefix + structure = re.sub('^/', '', structure) + + for setting in ('ARTICLE_URL', 'ARTICLE_LANG_URL', 'PAGE_URL', + 'PAGE_LANG_URL', 'DRAFT_URL', 'DRAFT_LANG_URL', + 'ARTICLE_SAVE_AS', 'ARTICLE_LANG_SAVE_AS', + 'DRAFT_SAVE_AS', 'DRAFT_LANG_SAVE_AS', + 'PAGE_SAVE_AS', 'PAGE_LANG_SAVE_AS'): + settings[setting] = os.path.join(structure, + settings[setting]) + logger.warning("%s = '%s'", setting, settings[setting]) + + # {,TAG,CATEGORY,TRANSLATION}_FEED -> {,TAG,CATEGORY,TRANSLATION}_FEED_ATOM + for new, old in [('FEED', 'FEED_ATOM'), ('TAG_FEED', 'TAG_FEED_ATOM'), + ('CATEGORY_FEED', 'CATEGORY_FEED_ATOM'), + ('TRANSLATION_FEED', 'TRANSLATION_FEED_ATOM')]: + if settings.get(new, False): + logger.warning( + 'Found deprecated `%(new)s` in settings. Modify %(new)s ' + 'to %(old)s in your settings and theme for the same ' + 'behavior. Temporarily setting %(old)s for backwards ' + 'compatibility.', + {'new': new, 'old': old} + ) + settings[old] = settings[new] + return settings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pelican/tests/test_contents.py new/pelican-4.1.3/pelican/tests/test_contents.py --- old/pelican-4.1.2/pelican/tests/test_contents.py 2019-09-23 20:20:18.000000000 +0200 +++ new/pelican-4.1.3/pelican/tests/test_contents.py 2019-10-09 20:44:13.000000000 +0200 @@ -14,9 +14,10 @@ from pelican.contents import Article, Author, Category, Page, Static from pelican.settings import DEFAULT_CONFIG from pelican.signals import content_object_init -from pelican.tests.support import LoggedTestCase, get_context, get_settings,\ - unittest -from pelican.utils import SafeDatetime, path_to_url, truncate_html_words +from pelican.tests.support import (LoggedTestCase, get_context, get_settings, + unittest) +from pelican.utils import (SafeDatetime, path_to_url, posixize_path, + truncate_html_words) # generate one paragraph, enclosed with <p> @@ -943,7 +944,7 @@ source_path=os.path.join('dir', 'foo.jpg'), context=self.settings.copy()) - expected_save_as = os.path.join('dir', 'foo.jpg') + expected_save_as = posixize_path(os.path.join('dir', 'foo.jpg')) self.assertEqual(static.status, 'draft') self.assertEqual(static.save_as, expected_save_as) self.assertEqual(static.url, path_to_url(expected_save_as)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pelican/tests/test_generators.py new/pelican-4.1.3/pelican/tests/test_generators.py --- old/pelican-4.1.2/pelican/tests/test_generators.py 2019-09-23 20:20:18.000000000 +0200 +++ new/pelican-4.1.3/pelican/tests/test_generators.py 2019-10-09 20:44:13.000000000 +0200 @@ -1089,7 +1089,12 @@ os.mkdir(os.path.join(self.temp_output, "static")) self.generator.fallback_to_symlinks = True self.generator.generate_context() - self.generator.generate_output(None) + try: + self.generator.generate_output(None) + except OSError as e: + # On Windows, possibly others, due to not holding symbolic link + # privilege + self.skipTest(e) self.assertTrue(os.path.islink(self.endfile)) def test_existing_symlink_is_considered_up_to_date(self): @@ -1097,7 +1102,11 @@ with open(self.startfile, "w") as f: f.write("staticcontent") os.mkdir(os.path.join(self.temp_output, "static")) - os.symlink(self.startfile, self.endfile) + try: + os.symlink(self.startfile, self.endfile) + except OSError as e: + # On Windows, possibly others + self.skipTest(e) staticfile = MagicMock() staticfile.source_path = self.startfile staticfile.save_as = self.endfile @@ -1109,7 +1118,11 @@ with open(self.startfile, "w") as f: f.write("staticcontent") os.mkdir(os.path.join(self.temp_output, "static")) - os.symlink("invalid", self.endfile) + try: + os.symlink("invalid", self.endfile) + except OSError as e: + # On Windows, possibly others + self.skipTest(e) staticfile = MagicMock() staticfile.source_path = self.startfile staticfile.save_as = self.endfile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pelican/tests/test_utils.py new/pelican-4.1.3/pelican/tests/test_utils.py --- old/pelican-4.1.2/pelican/tests/test_utils.py 2019-09-23 20:20:18.000000000 +0200 +++ new/pelican-4.1.3/pelican/tests/test_utils.py 2019-10-09 20:44:13.000000000 +0200 @@ -717,6 +717,8 @@ class TestSanitisedJoin(unittest.TestCase): + @unittest.skipIf(platform == 'win32', + "Different filesystem root on Windows") def test_detect_parent_breakout(self): with six.assertRaisesRegex( self, @@ -727,6 +729,8 @@ "../test" ) + @unittest.skipIf(platform == 'win32', + "Different filesystem root on Windows") def test_detect_root_breakout(self): with six.assertRaisesRegex( self, @@ -737,6 +741,8 @@ "/test" ) + @unittest.skipIf(platform == 'win32', + "Different filesystem root on Windows") def test_pass_deep_subpaths(self): self.assertEqual( utils.sanitised_join( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pelican/tools/templates/tasks.py.jinja2 new/pelican-4.1.3/pelican/tools/templates/tasks.py.jinja2 --- old/pelican-4.1.2/pelican/tools/templates/tasks.py.jinja2 2019-09-23 20:20:18.000000000 +0200 +++ new/pelican-4.1.3/pelican/tools/templates/tasks.py.jinja2 2019-10-09 20:44:13.000000000 +0200 @@ -23,8 +23,10 @@ 'deploy_path': SETTINGS['OUTPUT_PATH'], {% if ssh %} # Remote server configuration - 'production': '{{ssh_user}}@{{ssh_host}}:{{ssh_port}}', - 'dest_path': '{{ssh_target_dir}}', + 'ssh_user': '{{ssh_user}}', + 'ssh_host': '{{ssh_host}}', + 'ssh_port': '{{ssh_port}}', + 'ssh_path': '{{ssh_target_dir}}', {% endif %} {% if cloudfiles %} # Rackspace Cloud Files configuration settings @@ -130,7 +132,8 @@ c.run('pelican -s {settings_publish}'.format(**CONFIG)) c.run( 'rsync --delete --exclude ".DS_Store" -pthrvz -c ' - '{} {production}:{dest_path}'.format( + '-e "ssh -p {ssh_port}" ' + '{} {ssh_user}@{ssh_host}:{ssh_path}'.format( CONFIG['deploy_path'].rstrip('/') + '/', **CONFIG)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pelican.egg-info/PKG-INFO new/pelican-4.1.3/pelican.egg-info/PKG-INFO --- old/pelican-4.1.2/pelican.egg-info/PKG-INFO 2019-09-23 20:21:14.000000000 +0200 +++ new/pelican-4.1.3/pelican.egg-info/PKG-INFO 2019-10-09 20:45:17.000000000 +0200 @@ -1,12 +1,15 @@ -Metadata-Version: 1.2 +Metadata-Version: 2.1 Name: pelican -Version: 4.1.2 +Version: 4.1.3 Summary: Static site generator supporting reStructuredText and Markdown source content. Home-page: https://getpelican.com/ -Author: Alexis Metaireau +Author: Justin Mayer Author-email: auth...@getpelican.com -Maintainer: Justin Mayer License: AGPLv3 +Project-URL: Documentation, https://docs.getpelican.com/ +Project-URL: Funding, https://donate.getpelican.com/ +Project-URL: Source, https://github.com/getpelican/pelican +Project-URL: Tracker, https://github.com/getpelican/pelican/issues Description: Pelican |build-status| |pypi-version| ===================================== @@ -75,6 +78,17 @@ Release history ############### + 4.1.3 - 2019-10-09 + ================== + + * Fix quick-start docs regarding `pelican --listen` + * Set default listen address to 127.0.0.1 + * Add extra/optional Markdown dependency to setup.py + * Use correct SSH port syntax for rsync in tasks.py + * Place all deprecated settings handling together + * Add related project URLs for display on PyPI + * Skip some tests on Windows that can't pass due to filesystem differences + 4.1.2 - 2019-09-23 ================== @@ -485,6 +499,7 @@ * First working version +Keywords: static web site generator SSG reStructuredText Markdown Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console @@ -500,3 +515,4 @@ Classifier: Programming Language :: Python :: Implementation :: CPython Classifier: Topic :: Internet :: WWW/HTTP Classifier: Topic :: Software Development :: Libraries :: Python Modules +Provides-Extra: Markdown diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pelican.egg-info/requires.txt new/pelican-4.1.3/pelican.egg-info/requires.txt --- old/pelican-4.1.2/pelican.egg-info/requires.txt 2019-09-23 20:21:14.000000000 +0200 +++ new/pelican-4.1.3/pelican.egg-info/requires.txt 2019-10-09 20:45:17.000000000 +0200 @@ -7,3 +7,6 @@ unidecode six>=1.4 python-dateutil + +[Markdown] +markdown~=3.1.1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/pyproject.toml new/pelican-4.1.3/pyproject.toml --- old/pelican-4.1.2/pyproject.toml 2019-09-23 20:21:14.000000000 +0200 +++ new/pelican-4.1.3/pyproject.toml 2019-10-09 20:45:17.000000000 +0200 @@ -1,6 +1,6 @@ [tool.poetry] name = "pelican" -version = "4.1.2" +version = "4.1.3" description = "Static site generator supporting Markdown and reStructuredText" authors = ["Justin Mayer <ent...@gmail.com>"] license = "AGPLv3" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.1.2/setup.py new/pelican-4.1.3/setup.py --- old/pelican-4.1.2/setup.py 2019-09-23 20:21:14.000000000 +0200 +++ new/pelican-4.1.3/setup.py 2019-10-09 20:45:17.000000000 +0200 @@ -7,7 +7,7 @@ from setuptools import setup -version = "4.1.2" +version = "4.1.3" requires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments', 'docutils', 'pytz >= 0a', 'blinker', 'unidecode', 'six >= 1.4', @@ -33,11 +33,17 @@ name='pelican', version=version, url='https://getpelican.com/', - author='Alexis Metaireau', - maintainer='Justin Mayer', + author='Justin Mayer', author_email='auth...@getpelican.com', description="Static site generator supporting reStructuredText and " "Markdown source content.", + project_urls={ + 'Documentation': 'https://docs.getpelican.com/', + 'Funding': 'https://donate.getpelican.com/', + 'Source': 'https://github.com/getpelican/pelican', + 'Tracker': 'https://github.com/getpelican/pelican/issues', + }, + keywords='static web site generator SSG reStructuredText Markdown', license='AGPLv3', long_description=description, packages=['pelican', 'pelican.tools'], @@ -55,6 +61,9 @@ for name in names], }, install_requires=requires, + extras_require={ + 'Markdown': ['markdown~=3.1.1'] + }, entry_points=entry_points, classifiers=[ 'Development Status :: 5 - Production/Stable',