Hello community, here is the log from the commit of package python3-Jinja2 for openSUSE:Factory checked in at 2014-05-09 06:58:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Jinja2 (Old) and /work/SRC/openSUSE:Factory/.python3-Jinja2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-Jinja2" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Jinja2/python3-Jinja2.changes 2014-01-10 21:21:47.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-Jinja2.new/python3-Jinja2.changes 2014-05-09 06:58:27.000000000 +0200 @@ -1,0 +2,11 @@ +Thu May 8 11:31:19 UTC 2014 - [email protected] + +- update to 2.7.2: + - Prefix loader was not forwarding the locals properly to + inner loaders. This is now fixed. + - Security issue: Changed the default folder for the filesystem cache to be + user specific and read and write protected on UNIX systems. See `Debian bug + 734747`_ for more information. +- avoid rebuildcycle with vim + +------------------------------------------------------------------- Old: ---- Jinja2-2.7.1.tar.gz New: ---- Jinja2-2.7.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Jinja2.spec ++++++ --- /var/tmp/diff_new_pack.wyDApf/_old 2014-05-09 06:58:27.000000000 +0200 +++ /var/tmp/diff_new_pack.wyDApf/_new 2014-05-09 06:58:27.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-Jinja2 -Version: 2.7.1 +Version: 2.7.2 Release: 0 Summary: A fast and easy to use template engine written in pure Python License: BSD-3-Clause @@ -29,7 +29,6 @@ BuildRequires: python3-2to3 BuildRequires: python3-devel BuildRequires: python3-setuptools -BuildRequires: vim BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Requires: python3-MarkupSafe @@ -85,10 +84,14 @@ %files %defattr(-,root,root,-) %doc AUTHORS CHANGES LICENSE artwork examples -%{python3_sitelib}/* +%{python3_sitelib}/jinja2/ +%{python3_sitelib}/Jinja2-%{version}-py*.egg-info %files vim %defattr(-,root,root,-) +%dir %{_datadir}/vim +%dir %{_datadir}/vim/site +%dir %{_datadir}/vim/site/syntax %{_datadir}/vim/site/syntax/jinja-python%{py3_ver}.vim %files emacs ++++++ Jinja2-2.7.1.tar.gz -> Jinja2-2.7.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Jinja2-2.7.1/CHANGES new/Jinja2-2.7.2/CHANGES --- old/Jinja2-2.7.1/CHANGES 2013-08-07 14:05:58.000000000 +0200 +++ new/Jinja2-2.7.2/CHANGES 2014-01-10 11:41:21.000000000 +0100 @@ -1,6 +1,18 @@ Jinja2 Changelog ================ +Version 2.7.2 +------------- +(bugfix release, released on January 10th 2014) + +- Prefix loader was not forwarding the locals properly to + inner loaders. This is now fixed. +- Security issue: Changed the default folder for the filesystem cache to be + user specific and read and write protected on UNIX systems. See `Debian bug + 734747`_ for more information. + +.. _Debian bug 734747: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734747 + Version 2.7.1 ------------- (bugfix release, released on August 7th 2013) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Jinja2-2.7.1/Jinja2.egg-info/PKG-INFO new/Jinja2-2.7.2/Jinja2.egg-info/PKG-INFO --- old/Jinja2-2.7.1/Jinja2.egg-info/PKG-INFO 2013-08-07 15:27:32.000000000 +0200 +++ new/Jinja2-2.7.2/Jinja2.egg-info/PKG-INFO 2014-01-10 11:42:33.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: Jinja2 -Version: 2.7.1 +Version: 2.7.2 Summary: A small but fast and easy to use stand-alone template engine written in pure python. Home-page: http://jinja.pocoo.org/ Author: Armin Ronacher diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Jinja2-2.7.1/PKG-INFO new/Jinja2-2.7.2/PKG-INFO --- old/Jinja2-2.7.1/PKG-INFO 2013-08-07 15:27:32.000000000 +0200 +++ new/Jinja2-2.7.2/PKG-INFO 2014-01-10 11:42:36.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: Jinja2 -Version: 2.7.1 +Version: 2.7.2 Summary: A small but fast and easy to use stand-alone template engine written in pure python. Home-page: http://jinja.pocoo.org/ Author: Armin Ronacher diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Jinja2-2.7.1/jinja2/__init__.py new/Jinja2-2.7.2/jinja2/__init__.py --- old/Jinja2-2.7.1/jinja2/__init__.py 2013-08-07 15:27:31.000000000 +0200 +++ new/Jinja2-2.7.2/jinja2/__init__.py 2014-01-10 11:42:33.000000000 +0100 @@ -27,7 +27,7 @@ :license: BSD, see LICENSE for more details. """ __docformat__ = 'restructuredtext en' -__version__ = '2.7.1' +__version__ = '2.7.2' # high level interface from jinja2.environment import Environment, Template diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Jinja2-2.7.1/jinja2/bccache.py new/Jinja2-2.7.2/jinja2/bccache.py --- old/Jinja2-2.7.1/jinja2/bccache.py 2013-08-07 13:31:17.000000000 +0200 +++ new/Jinja2-2.7.2/jinja2/bccache.py 2014-01-10 11:42:03.000000000 +0100 @@ -15,7 +15,9 @@ :license: BSD. """ from os import path, listdir +import os import sys +import errno import marshal import tempfile import fnmatch @@ -189,7 +191,9 @@ two arguments: The directory where the cache items are stored and a pattern string that is used to build the filename. - If no directory is specified the system temporary items folder is used. + If no directory is specified a default cache directory is selected. On + Windows the user's temp directory is used, on UNIX systems a directory + is created for the user in the system temp directory. The pattern can be used to have multiple separate caches operate on the same directory. The default pattern is ``'__jinja2_%s.cache'``. ``%s`` @@ -202,10 +206,32 @@ def __init__(self, directory=None, pattern='__jinja2_%s.cache'): if directory is None: - directory = tempfile.gettempdir() + directory = self._get_default_cache_dir() self.directory = directory self.pattern = pattern + def _get_default_cache_dir(self): + tmpdir = tempfile.gettempdir() + + # On windows the temporary directory is used specific unless + # explicitly forced otherwise. We can just use that. + if os.name == 'n': + return tmpdir + if not hasattr(os, 'getuid'): + raise RuntimeError('Cannot determine safe temp directory. You ' + 'need to explicitly provide one.') + + dirname = '_jinja2-cache-%d' % os.getuid() + actual_dir = os.path.join(tmpdir, dirname) + try: + # 448 == 0700 + os.mkdir(actual_dir, 448) + except OSError as e: + if e.errno != errno.EEXIST: + raise + + return actual_dir + def _get_cache_filename(self, bucket): return path.join(self.directory, self.pattern % bucket.key) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Jinja2-2.7.1/jinja2/loaders.py new/Jinja2-2.7.2/jinja2/loaders.py --- old/Jinja2-2.7.1/jinja2/loaders.py 2013-07-26 18:00:44.000000000 +0200 +++ new/Jinja2-2.7.2/jinja2/loaders.py 2014-01-10 11:14:43.000000000 +0100 @@ -349,7 +349,7 @@ def load(self, environment, name, globals=None): loader, local_name = self.get_loader(name) try: - return loader.load(environment, local_name) + return loader.load(environment, local_name, globals) except TemplateNotFound: # re-raise the exception with the correct fileame here. # (the one that includes the prefix) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Jinja2-2.7.1/setup.py new/Jinja2-2.7.2/setup.py --- old/Jinja2-2.7.1/setup.py 2013-08-07 15:27:31.000000000 +0200 +++ new/Jinja2-2.7.2/setup.py 2014-01-10 11:42:33.000000000 +0100 @@ -57,7 +57,7 @@ setup( name='Jinja2', - version='2.7.1', + version='2.7.2', url='http://jinja.pocoo.org/', license='BSD', author='Armin Ronacher', -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
