Hello community, here is the log from the commit of package python3-setuptools for openSUSE:Factory checked in at 2015-06-01 09:44:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-setuptools (Old) and /work/SRC/openSUSE:Factory/.python3-setuptools.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-setuptools" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-setuptools/python3-setuptools.changes 2015-05-25 23:10:58.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-setuptools.new/python3-setuptools.changes 2015-06-01 09:44:06.000000000 +0200 @@ -1,0 +2,9 @@ +Sat May 30 03:16:35 UTC 2015 - arun@gmx.de + +- update to version 17.0: + * Issue #378: Do not use internal importlib._bootstrap module. + * Issue #390: Disallow console scripts with path separators in + the name. Removes unintended functionality and brings behavior + into parity with pip. + +------------------------------------------------------------------- Old: ---- setuptools-16.0.tar.gz New: ---- setuptools-17.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-setuptools.spec ++++++ --- /var/tmp/diff_new_pack.hN3u6g/_old 2015-06-01 09:44:07.000000000 +0200 +++ /var/tmp/diff_new_pack.hN3u6g/_new 2015-06-01 09:44:07.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-setuptools -Version: 16.0 +Version: 17.0 Release: 0 Url: http://pypi.python.org/pypi/setuptools Summary: Easily download, build, install, upgrade, and uninstall Python packages ++++++ setuptools-16.0.tar.gz -> setuptools-17.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-16.0/CHANGES.txt new/setuptools-17.0/CHANGES.txt --- old/setuptools-16.0/CHANGES.txt 2015-05-18 09:03:29.000000000 +0200 +++ new/setuptools-17.0/CHANGES.txt 2015-05-28 23:53:55.000000000 +0200 @@ -3,6 +3,15 @@ ======= ---- +17.0 +---- + +* Issue #378: Do not use internal importlib._bootstrap module. +* Issue #390: Disallow console scripts with path separators in + the name. Removes unintended functionality and brings behavior + into parity with pip. + +---- 16.0 ---- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-16.0/PKG-INFO new/setuptools-17.0/PKG-INFO --- old/setuptools-16.0/PKG-INFO 2015-05-18 09:08:34.000000000 +0200 +++ new/setuptools-17.0/PKG-INFO 2015-05-29 04:22:34.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: setuptools -Version: 16.0 +Version: 17.0 Summary: Easily download, build, install, upgrade, and uninstall Python packages Home-page: https://bitbucket.org/pypa/setuptools Author: Python Packaging Authority diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-16.0/ez_setup.py new/setuptools-17.0/ez_setup.py --- old/setuptools-16.0/ez_setup.py 2015-05-18 09:07:22.000000000 +0200 +++ new/setuptools-17.0/ez_setup.py 2015-05-28 23:54:28.000000000 +0200 @@ -30,7 +30,7 @@ except ImportError: USER_SITE = None -DEFAULT_VERSION = "16.0" +DEFAULT_VERSION = "17.0" DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/" DEFAULT_SAVE_DIR = os.curdir diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-16.0/pkg_resources/__init__.py new/setuptools-17.0/pkg_resources/__init__.py --- old/setuptools-16.0/pkg_resources/__init__.py 2015-05-10 00:36:35.000000000 +0200 +++ new/setuptools-17.0/pkg_resources/__init__.py 2015-05-28 23:53:38.000000000 +0200 @@ -69,9 +69,9 @@ # Avoid try/except due to potential problems with delayed import mechanisms. if sys.version_info >= (3, 3) and sys.implementation.name == "cpython": - import importlib._bootstrap as importlib_bootstrap + import importlib.machinery as importlib_machinery else: - importlib_bootstrap = None + importlib_machinery = None try: import parser @@ -1720,8 +1720,8 @@ register_loader_type(type(None), DefaultProvider) -if importlib_bootstrap is not None: - register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider) +if importlib_machinery is not None: + register_loader_type(importlib_machinery.SourceFileLoader, DefaultProvider) class EmptyProvider(NullProvider): @@ -2128,8 +2128,8 @@ break register_finder(pkgutil.ImpImporter, find_on_path) -if importlib_bootstrap is not None: - register_finder(importlib_bootstrap.FileFinder, find_on_path) +if importlib_machinery is not None: + register_finder(importlib_machinery.FileFinder, find_on_path) _declare_state('dict', _namespace_handlers={}) _declare_state('dict', _namespace_packages={}) @@ -2237,8 +2237,8 @@ register_namespace_handler(pkgutil.ImpImporter, file_ns_handler) register_namespace_handler(zipimport.zipimporter, file_ns_handler) -if importlib_bootstrap is not None: - register_namespace_handler(importlib_bootstrap.FileFinder, file_ns_handler) +if importlib_machinery is not None: + register_namespace_handler(importlib_machinery.FileFinder, file_ns_handler) def null_ns_handler(importer, path_item, packageName, module): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-16.0/setup.cfg new/setuptools-17.0/setup.cfg --- old/setuptools-16.0/setup.cfg 2015-05-18 09:08:34.000000000 +0200 +++ new/setuptools-17.0/setup.cfg 2015-05-29 04:22:34.000000000 +0200 @@ -1,7 +1,7 @@ [egg_info] tag_build = -tag_svn_revision = 0 tag_date = 0 +tag_svn_revision = 0 [aliases] release = egg_info -RDb '' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-16.0/setuptools/command/easy_install.py new/setuptools-17.0/setuptools/command/easy_install.py --- old/setuptools-16.0/setuptools/command/easy_install.py 2015-05-10 00:36:35.000000000 +0200 +++ new/setuptools-17.0/setuptools/command/easy_install.py 2015-05-28 00:35:03.000000000 +0200 @@ -2015,7 +2015,8 @@ @classmethod def get_args(cls, dist, header=None): """ - Yield write_script() argument tuples for a distribution's entrypoints + Yield write_script() argument tuples for a distribution's + console_scripts and gui_scripts entry points. """ if header is None: header = cls.get_header() @@ -2023,11 +2024,21 @@ for type_ in 'console', 'gui': group = type_ + '_scripts' for name, ep in dist.get_entry_map(group).items(): + cls._ensure_safe_name(name) script_text = cls.template % locals() - for res in cls._get_script_args(type_, name, header, - script_text): + args = cls._get_script_args(type_, name, header, script_text) + for res in args: yield res + @staticmethod + def _ensure_safe_name(name): + """ + Prevent paths in *_scripts entry point names. + """ + has_path_sep = re.search(r'[\\/]', name) + if has_path_sep: + raise ValueError("Path separators not allowed in script names") + @classmethod def get_writer(cls, force_windows): # for backward compatibility diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-16.0/setuptools/version.py new/setuptools-17.0/setuptools/version.py --- old/setuptools-16.0/setuptools/version.py 2015-05-18 09:07:22.000000000 +0200 +++ new/setuptools-17.0/setuptools/version.py 2015-05-28 23:54:28.000000000 +0200 @@ -1 +1 @@ -__version__ = '16.0' +__version__ = '17.0' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-16.0/setuptools.egg-info/PKG-INFO new/setuptools-17.0/setuptools.egg-info/PKG-INFO --- old/setuptools-16.0/setuptools.egg-info/PKG-INFO 2015-05-18 09:08:33.000000000 +0200 +++ new/setuptools-17.0/setuptools.egg-info/PKG-INFO 2015-05-29 04:22:33.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: setuptools -Version: 16.0 +Version: 17.0 Summary: Easily download, build, install, upgrade, and uninstall Python packages Home-page: https://bitbucket.org/pypa/setuptools Author: Python Packaging Authority