Hello community, here is the log from the commit of package python3-setuptools for openSUSE:Factory checked in at 2015-04-28 20:42:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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-04-22 01:13:05.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-setuptools.new/python3-setuptools.changes 2015-04-28 20:42:53.000000000 +0200 @@ -1,0 +2,8 @@ +Sun Apr 26 19:03:22 UTC 2015 - a...@gmx.de + +- update to version 15.2: + * Issue #373: Provisionally expose + "pkg_resources._initialize_master_working_set", allowing for + imperative re-initialization of the master working set. + +------------------------------------------------------------------- Old: ---- setuptools-15.1.tar.gz New: ---- setuptools-15.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-setuptools.spec ++++++ --- /var/tmp/diff_new_pack.D4WRoI/_old 2015-04-28 20:42:54.000000000 +0200 +++ /var/tmp/diff_new_pack.D4WRoI/_new 2015-04-28 20:42:54.000000000 +0200 @@ -17,7 +17,7 @@ Name: python3-setuptools -Version: 15.1 +Version: 15.2 Release: 0 Url: http://pypi.python.org/pypi/setuptools Summary: Easily download, build, install, upgrade, and uninstall Python packages ++++++ setuptools-15.1.tar.gz -> setuptools-15.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-15.1/CHANGES.txt new/setuptools-15.2/CHANGES.txt --- old/setuptools-15.1/CHANGES.txt 2015-04-15 15:01:36.000000000 +0200 +++ new/setuptools-15.2/CHANGES.txt 2015-04-26 16:50:48.000000000 +0200 @@ -3,6 +3,14 @@ ======= ---- +15.2 +---- + +* Issue #373: Provisionally expose + ``pkg_resources._initialize_master_working_set``, allowing for + imperative re-initialization of the master working set. + +---- 15.1 ---- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-15.1/PKG-INFO new/setuptools-15.2/PKG-INFO --- old/setuptools-15.1/PKG-INFO 2015-04-15 15:16:31.000000000 +0200 +++ new/setuptools-15.2/PKG-INFO 2015-04-26 17:02:15.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: setuptools -Version: 15.1 +Version: 15.2 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-15.1/ez_setup.py new/setuptools-15.2/ez_setup.py --- old/setuptools-15.1/ez_setup.py 2015-04-04 00:26:40.000000000 +0200 +++ new/setuptools-15.2/ez_setup.py 2015-04-25 23:25:16.000000000 +0200 @@ -30,7 +30,7 @@ except ImportError: USER_SITE = None -DEFAULT_VERSION = "15.1" +DEFAULT_VERSION = "15.2" 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-15.1/pkg_resources/__init__.py new/setuptools-15.2/pkg_resources/__init__.py --- old/setuptools-15.1/pkg_resources/__init__.py 2015-04-04 00:34:27.000000000 +0200 +++ new/setuptools-15.2/pkg_resources/__init__.py 2015-04-26 16:58:18.000000000 +0200 @@ -89,6 +89,12 @@ import packaging.specifiers +# declare some globals that will be defined later to +# satisfy the linters. +require = None +working_set = None + + class PEP440Warning(RuntimeWarning): """ Used when there is an issue with a version or specifier not complying with @@ -3045,28 +3051,49 @@ warnings.filterwarnings("ignore", category=PEP440Warning, append=True) -# Set up global resource manager (deliberately not state-saved) -_manager = ResourceManager() -def _initialize(g): - for name in dir(_manager): +# from jaraco.functools 1.3 +def _call_aside(f, *args, **kwargs): + f(*args, **kwargs) + return f + + +@_call_aside +def _initialize(g=globals()): + "Set up global resource manager (deliberately not state-saved)" + manager = ResourceManager() + g['_manager'] = manager + for name in dir(manager): if not name.startswith('_'): - g[name] = getattr(_manager, name) -_initialize(globals()) + g[name] = getattr(manager, name) -# Prepare the master working set and make the ``require()`` API available -working_set = WorkingSet._build_master() -_declare_state('object', working_set=working_set) - -require = working_set.require -iter_entry_points = working_set.iter_entry_points -add_activation_listener = working_set.subscribe -run_script = working_set.run_script -# backward compatibility -run_main = run_script -# Activate all distributions already on sys.path, and ensure that -# all distributions added to the working set in the future (e.g. by -# calling ``require()``) will get activated as well. -add_activation_listener(lambda dist: dist.activate()) -working_set.entries=[] -# match order -list(map(working_set.add_entry, sys.path)) + +@_call_aside +def _initialize_master_working_set(): + """ + Prepare the master working set and make the ``require()`` + API available. + + This function has explicit effects on the global state + of pkg_resources. It is intended to be invoked once at + the initialization of this module. + + Invocation by other packages is unsupported and done + at their own risk. + """ + working_set = WorkingSet._build_master() + _declare_state('object', working_set=working_set) + + require = working_set.require + iter_entry_points = working_set.iter_entry_points + add_activation_listener = working_set.subscribe + run_script = working_set.run_script + # backward compatibility + run_main = run_script + # Activate all distributions already on sys.path, and ensure that + # all distributions added to the working set in the future (e.g. by + # calling ``require()``) will get activated as well. + add_activation_listener(lambda dist: dist.activate()) + working_set.entries=[] + # match order + list(map(working_set.add_entry, sys.path)) + globals().update(locals()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-15.1/setup.cfg new/setuptools-15.2/setup.cfg --- old/setuptools-15.1/setup.cfg 2015-04-15 15:16:31.000000000 +0200 +++ new/setuptools-15.2/setup.cfg 2015-04-26 17:02:15.000000000 +0200 @@ -1,7 +1,7 @@ [egg_info] tag_build = -tag_date = 0 tag_svn_revision = 0 +tag_date = 0 [aliases] release = egg_info -RDb '' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-15.1/setuptools/version.py new/setuptools-15.2/setuptools/version.py --- old/setuptools-15.1/setuptools/version.py 2015-04-04 00:26:40.000000000 +0200 +++ new/setuptools-15.2/setuptools/version.py 2015-04-25 23:25:19.000000000 +0200 @@ -1 +1 @@ -__version__ = '15.1' +__version__ = '15.2' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-15.1/setuptools.egg-info/PKG-INFO new/setuptools-15.2/setuptools.egg-info/PKG-INFO --- old/setuptools-15.1/setuptools.egg-info/PKG-INFO 2015-04-15 15:16:27.000000000 +0200 +++ new/setuptools-15.2/setuptools.egg-info/PKG-INFO 2015-04-26 17:02:12.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: setuptools -Version: 15.1 +Version: 15.2 Summary: Easily download, build, install, upgrade, and uninstall Python packages Home-page: https://bitbucket.org/pypa/setuptools Author: Python Packaging Authority