Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pelican for openSUSE:Factory checked in at 2022-07-19 17:18:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pelican (Old) and /work/SRC/openSUSE:Factory/.python-pelican.new.1523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pelican" Tue Jul 19 17:18:54 2022 rev:20 rq:989481 version:4.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pelican/python-pelican.changes 2022-04-30 00:46:52.299020802 +0200 +++ /work/SRC/openSUSE:Factory/.python-pelican.new.1523/python-pelican.changes 2022-07-19 17:18:54.988331013 +0200 @@ -1,0 +2,10 @@ +Fri Jul 15 12:36:30 UTC 2022 - Beno??t Monin <benoit.mo...@gmx.fr> + +- update to version 4.8.0: + * Use JSON values for extra settings in Invoke tasks template + (#2994) + * Add content tag for links, which can help with things like + Twitter social cards (#3001) + * Improve word count behavior when generating summary (#3002) + +------------------------------------------------------------------- Old: ---- pelican-4.7.2.tar.gz New: ---- pelican-4.8.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pelican.spec ++++++ --- /var/tmp/diff_new_pack.Caqy3w/_old 2022-07-19 17:18:55.464331648 +0200 +++ /var/tmp/diff_new_pack.Caqy3w/_new 2022-07-19 17:18:55.468331653 +0200 @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pelican -Version: 4.7.2 +Version: 4.8.0 Release: 0 Summary: A tool to generate a static blog from reStructuredText or Markdown input files License: AGPL-3.0-only ++++++ pelican-4.7.2.tar.gz -> pelican-4.8.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.7.2/docs/changelog.rst new/pelican-4.8.0/docs/changelog.rst --- old/pelican-4.7.2/docs/changelog.rst 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/docs/changelog.rst 2022-07-11 19:51:01.000000000 +0200 @@ -1,10 +1,19 @@ Release history ############### +4.8.0 - 2022-07-11 +================== + +* Use JSON values for extra settings in Invoke tasks template (#2994) +* Add content tag for links, which can help with things like Twitter social cards (#3001) +* Improve word count behavior when generating summary (#3002) + 4.7.2 - 2022-02-09 ================== -Fix incorrect parsing of parameters specified via `-e` / `--extra-settings` option flags (#2938). +* Fix incorrect parsing of parameters specified via `-e` / `--extra-settings` option flags `(#2938) <https://github.com/getpelican/pelican/pull/2938>`_ +* Add ``categories.html`` template to default theme `(#2973) <https://github.com/getpelican/pelican/pull/2973>`_ +* Document how to use plugins to inject content `(#2922) <https://github.com/getpelican/pelican/pull/2922>`_ 4.7.1 - 2021-10-12 ================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.7.2/docs/publish.rst new/pelican-4.8.0/docs/publish.rst --- old/pelican-4.7.2/docs/publish.rst 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/docs/publish.rst 2022-07-11 19:51:01.000000000 +0200 @@ -104,7 +104,7 @@ ``pelican-quickstart`` process, are meant as a starting point and should be customized to fit your particular needs and usage patterns. If you find one or both of these automation tools to be of limited utility, these files can -deleted at any time and will not affect usage of the canonical ``pelican`` +be deleted at any time and will not affect usage of the canonical ``pelican`` command. Following are automation tools that "wrap" the ``pelican`` command and can diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.7.2/pelican/contents.py new/pelican-4.8.0/pelican/contents.py --- old/pelican-4.7.2/pelican/contents.py 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/pelican/contents.py 2022-07-11 19:51:01.000000000 +0200 @@ -15,7 +15,7 @@ posixize_path, sanitised_join, set_date_tzinfo, slugify, truncate_html_words) -# Import these so that they're avalaible when you import from pelican.contents. +# Import these so that they're available when you import from pelican.contents. from pelican.urlwrappers import (Author, Category, Tag, URLWrapper) # NOQA logger = logging.getLogger(__name__) @@ -337,7 +337,7 @@ intrasite_link_regex = self.settings['INTRASITE_LINK_REGEX'] regex = r""" (?P<markup><[^\>]+ # match tag with all url-value attributes - (?:href|src|poster|data|cite|formaction|action)\s*=\s*) + (?:href|src|poster|data|cite|formaction|action|content)\s*=\s*) (?P<quote>["\']) # require value to be quoted (?P<path>{}(?P<value>.*?)) # the url value diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.7.2/pelican/tests/test_contents.py new/pelican-4.8.0/pelican/tests/test_contents.py --- old/pelican-4.7.2/pelican/tests/test_contents.py 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/pelican/tests/test_contents.py 2022-07-11 19:51:01.000000000 +0200 @@ -522,6 +522,16 @@ '<img src="http://static.cool.site/images/poster.jpg"/>' ) + # Image link will go to static + args['content'] = ( + '<meta content="{static}/images/poster.jpg"/>' + ) + content = Page(**args).get_content('http://cool.site') + self.assertEqual( + content, + '<meta content="http://static.cool.site/images/poster.jpg"/>' + ) + def test_intrasite_link_escape(self): article = type( '_DummyArticle', (object,), {'url': 'article-spaces.html'}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.7.2/pelican/tests/test_utils.py new/pelican-4.8.0/pelican/tests/test_utils.py --- old/pelican-4.7.2/pelican/tests/test_utils.py 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/pelican/tests/test_utils.py 2022-07-11 19:51:01.000000000 +0200 @@ -230,6 +230,11 @@ '???? ??????????????????, ???? ??????????????????, ?????????? ???????????? ??????????????????,', 3 ), '???? ??????????????????, ????' + ' ???') + self.assertEqual( + utils.truncate_html_words( + 'Trong ?????m g?? ?????p b???ng sen', 4 + ), + 'Trong ?????m g?? ?????p' + ' ???') # Words enclosed or intervaled by HTML tags. self.assertEqual( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.7.2/pelican/tools/templates/tasks.py.jinja2 new/pelican-4.8.0/pelican/tools/templates/tasks.py.jinja2 --- old/pelican-4.7.2/pelican/tools/templates/tasks.py.jinja2 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/pelican/tools/templates/tasks.py.jinja2 2022-07-11 19:51:01.000000000 +0200 @@ -107,7 +107,7 @@ from livereload import Server def cached_build(): - cmd = '-s {settings_base} -e CACHE_CONTENT=True LOAD_CONTENT_CACHE=True' + cmd = '-s {settings_base} -e CACHE_CONTENT=true LOAD_CONTENT_CACHE=true' pelican_run(cmd.format(**CONFIG)) cached_build() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.7.2/pelican/utils.py new/pelican-4.8.0/pelican/utils.py --- old/pelican-4.7.2/pelican/utils.py 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/pelican/utils.py 2022-07-11 19:51:01.000000000 +0200 @@ -412,10 +412,7 @@ class _HTMLWordTruncator(HTMLParser): - _word_regex = re.compile(r"(({SBC})({SBC}|-|')*)|{DBC}".format( - # SBC means Latin-like characters. A word contains a few characters. - # ASCII |Extended Latin | Cyrillic - SBC="[0-9a-zA-Z]|[\u00C0-\u024f]|[\u0400-\u04FF]", + _word_regex = re.compile(r"{DBC}|(\w[\w'-]*)".format( # DBC means CJK-like characters. An character can stand for a word. DBC=("([\u4E00-\u9FFF])|" # CJK Unified Ideographs "([\u3400-\u4DBF])|" # CJK Unified Ideographs Extension A diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pelican-4.7.2/pyproject.toml new/pelican-4.8.0/pyproject.toml --- old/pelican-4.7.2/pyproject.toml 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/pyproject.toml 2022-07-11 19:51:01.000000000 +0200 @@ -1,6 +1,6 @@ [tool.poetry] name = "pelican" -version = "4.7.2" +version = "4.8.0" 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.7.2/setup.py new/pelican-4.8.0/setup.py --- old/pelican-4.7.2/setup.py 2022-02-09 14:25:50.000000000 +0100 +++ new/pelican-4.8.0/setup.py 2022-07-11 19:51:01.000000000 +0200 @@ -6,7 +6,7 @@ from setuptools import find_packages, setup -version = "4.7.2" +version = "4.8.0" requires = ['feedgenerator >= 1.9', 'jinja2 >= 2.7', 'pygments', 'docutils>=0.15', 'pytz >= 0a', 'blinker', 'unidecode',