Hello community, here is the log from the commit of package python-setuptools for openSUSE:Factory checked in at 2015-08-07 00:20:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-setuptools (Old) and /work/SRC/openSUSE:Factory/.python-setuptools.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-setuptools" Changes: -------- --- /work/SRC/openSUSE:Factory/python-setuptools/python-setuptools.changes 2015-07-02 22:45:08.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-setuptools.new/python-setuptools.changes 2015-08-07 00:20:18.000000000 +0200 @@ -1,0 +2,12 @@ +Mon Jul 20 19:39:31 UTC 2015 - [email protected] + +- update to 18.0.1: + * Issue #401: Fix failure in test suite. + * Dropped support for builds with Pyrex. Only Cython is supported. + * Issue #288: Detect Cython later in the build process, after + ``setup_requires`` dependencies are resolved. + * Issue #396: Fixed test failure on OS X. + * Pull Request #136: Remove excessive quoting from shebang headers + for Jython. + +------------------------------------------------------------------- Old: ---- setuptools-17.1.1.tar.gz New: ---- setuptools-18.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-setuptools.spec ++++++ --- /var/tmp/diff_new_pack.QJvkR5/_old 2015-08-07 00:20:19.000000000 +0200 +++ /var/tmp/diff_new_pack.QJvkR5/_new 2015-08-07 00:20:19.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-setuptools -Version: 17.1.1 +Version: 18.0.1 Release: 0 Url: http://pypi.python.org/pypi/setuptools Summary: Easily download, build, install, upgrade, and uninstall Python packages @@ -65,6 +65,7 @@ find . -type f -name "*.orig" -delete %build +chmod -x *txt python setup.py build %install ++++++ setuptools-17.1.1.tar.gz -> setuptools-18.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-17.1.1/CHANGES.txt new/setuptools-18.0.1/CHANGES.txt --- old/setuptools-17.1.1/CHANGES.txt 2015-06-08 19:28:47.000000000 +0200 +++ new/setuptools-18.0.1/CHANGES.txt 2015-06-24 22:58:42.000000000 +0200 @@ -3,6 +3,38 @@ ======= ------ +18.0.1 +------ + +* Issue #401: Fix failure in test suite. + +---- +18.0 +---- + +* Dropped support for builds with Pyrex. Only Cython is supported. +* Issue #288: Detect Cython later in the build process, after + ``setup_requires`` dependencies are resolved. + Projects backed by Cython can now be readily built + with a ``setup_requires`` dependency. For example:: + + ext = setuptools.Extension('mylib', ['src/CythonStuff.pyx', 'src/CStuff.c']) + setuptools.setup( + ... + ext_modules=[ext], + setup_requires=['cython'], + ) + + For compatibility with older versions of setuptools, packagers should + still include ``src/CythonMod.c`` in the source distributions or + require that Cython be present before building source distributions. + However, for systems with this build of setuptools, Cython will be + downloaded on demand. +* Issue #396: Fixed test failure on OS X. +* Pull Request #136: Remove excessive quoting from shebang headers + for Jython. + +------ 17.1.1 ------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-17.1.1/PKG-INFO new/setuptools-18.0.1/PKG-INFO --- old/setuptools-17.1.1/PKG-INFO 2015-06-08 19:36:29.000000000 +0200 +++ new/setuptools-18.0.1/PKG-INFO 2015-06-24 22:59:54.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: setuptools -Version: 17.1.1 +Version: 18.0.1 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-17.1.1/ez_setup.py new/setuptools-18.0.1/ez_setup.py --- old/setuptools-17.1.1/ez_setup.py 2015-06-08 19:36:24.000000000 +0200 +++ new/setuptools-18.0.1/ez_setup.py 2015-06-24 22:59:47.000000000 +0200 @@ -30,7 +30,7 @@ except ImportError: USER_SITE = None -DEFAULT_VERSION = "17.1.1" +DEFAULT_VERSION = "18.0.1" 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-17.1.1/setuptools/command/build_ext.py new/setuptools-18.0.1/setuptools/command/build_ext.py --- old/setuptools-17.1.1/setuptools/command/build_ext.py 2015-05-10 00:36:35.000000000 +0200 +++ new/setuptools-18.0.1/setuptools/command/build_ext.py 2015-06-18 14:36:06.000000000 +0200 @@ -11,8 +11,8 @@ from setuptools.extension import Library try: - # Attempt to use Pyrex for building extensions, if available - from Pyrex.Distutils.build_ext import build_ext as _build_ext + # Attempt to use Cython for building extensions, if available + from Cython.Distutils.build_ext import build_ext as _build_ext except ImportError: _build_ext = _du_build_ext @@ -42,7 +42,6 @@ if_dl = lambda s: s if have_rtld else '' - class build_ext(_build_ext): def run(self): """Build extensions in build directory, then copy if --inplace""" @@ -74,15 +73,6 @@ if ext._needs_stub: self.write_stub(package_dir or os.curdir, ext, True) - if _build_ext is not _du_build_ext and not hasattr(_build_ext, - 'pyrex_sources'): - # Workaround for problems using some Pyrex versions w/SWIG and/or 2.4 - def swig_sources(self, sources, *otherargs): - # first do any Pyrex processing - sources = _build_ext.swig_sources(self, sources) or sources - # Then do any actual SWIG stuff on the remainder - return _du_build_ext.swig_sources(self, sources, *otherargs) - def get_ext_filename(self, fullname): filename = _build_ext.get_ext_filename(self, fullname) if fullname in self.ext_map: @@ -176,6 +166,7 @@ return _build_ext.get_export_symbols(self, ext) def build_extension(self, ext): + ext._convert_pyx_sources_to_lang() _compiler = self.compiler try: if isinstance(ext, Library): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-17.1.1/setuptools/command/easy_install.py new/setuptools-18.0.1/setuptools/command/easy_install.py --- old/setuptools-17.1.1/setuptools/command/easy_install.py 2015-06-08 19:24:12.000000000 +0200 +++ new/setuptools-18.0.1/setuptools/command/easy_install.py 2015-06-18 14:36:06.000000000 +0200 @@ -1944,15 +1944,6 @@ __import__('java').lang.System.getProperty('os.name') != 'Linux' ) - @classmethod - def from_environment(cls): - string = '"' + cls._sys_executable() + '"' - return cls.from_string(string) - - @classmethod - def from_string(cls, string): - return cls([string]) - def as_header(self): """ Workaround Jython's sys.executable being a .sh (an invalid diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-17.1.1/setuptools/extension.py new/setuptools-18.0.1/setuptools/extension.py --- old/setuptools-17.1.1/setuptools/extension.py 2015-05-10 00:36:35.000000000 +0200 +++ new/setuptools-18.0.1/setuptools/extension.py 2015-06-18 14:36:06.000000000 +0200 @@ -12,35 +12,33 @@ msvc9_support.patch_for_specialized_compiler() -def have_pyrex(): +def _have_cython(): """ - Return True if Cython or Pyrex can be imported. + Return True if Cython can be imported. """ - pyrex_impls = 'Cython.Distutils.build_ext', 'Pyrex.Distutils.build_ext' - for pyrex_impl in pyrex_impls: - try: - # from (pyrex_impl) import build_ext - __import__(pyrex_impl, fromlist=['build_ext']).build_ext - return True - except Exception: - pass + cython_impl = 'Cython.Distutils.build_ext', + try: + # from (cython_impl) import build_ext + __import__(cython_impl, fromlist=['build_ext']).build_ext + return True + except Exception: + pass return False +# for compatibility +have_pyrex = _have_cython + class Extension(_Extension): """Extension that uses '.c' files in place of '.pyx' files""" - def __init__(self, *args, **kw): - _Extension.__init__(self, *args, **kw) - self._convert_pyx_sources_to_lang() - def _convert_pyx_sources_to_lang(self): """ Replace sources with .pyx extensions to sources with the target language extension. This mechanism allows language authors to supply pre-converted sources but to prefer the .pyx sources. """ - if have_pyrex(): + if _have_cython(): # the build has Cython, so allow it to compile the .pyx files return lang = self.language or '' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-17.1.1/setuptools/tests/test_easy_install.py new/setuptools-18.0.1/setuptools/tests/test_easy_install.py --- old/setuptools-17.1.1/setuptools/tests/test_easy_install.py 2015-05-10 00:36:35.000000000 +0200 +++ new/setuptools-18.0.1/setuptools/tests/test_easy_install.py 2015-06-24 02:19:42.000000000 +0200 @@ -488,9 +488,11 @@ cmd_new = ei.CommandSpec.from_param(cmd) assert cmd is cmd_new + @mock.patch('sys.executable', TestScriptHeader.exe_with_spaces) + @mock.patch.dict(os.environ) def test_from_environment_with_spaces_in_executable(self): - with mock.patch('sys.executable', TestScriptHeader.exe_with_spaces): - cmd = ei.CommandSpec.from_environment() + os.environ.pop('__PYVENV_LAUNCHER__', None) + cmd = ei.CommandSpec.from_environment() assert len(cmd) == 1 assert cmd.as_header().startswith('#!"') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-17.1.1/setuptools/version.py new/setuptools-18.0.1/setuptools/version.py --- old/setuptools-17.1.1/setuptools/version.py 2015-06-08 19:36:24.000000000 +0200 +++ new/setuptools-18.0.1/setuptools/version.py 2015-06-24 22:59:47.000000000 +0200 @@ -1 +1 @@ -__version__ = '17.1.1' +__version__ = '18.0.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/setuptools-17.1.1/setuptools.egg-info/PKG-INFO new/setuptools-18.0.1/setuptools.egg-info/PKG-INFO --- old/setuptools-17.1.1/setuptools.egg-info/PKG-INFO 2015-06-08 19:36:28.000000000 +0200 +++ new/setuptools-18.0.1/setuptools.egg-info/PKG-INFO 2015-06-24 22:59:53.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: setuptools -Version: 17.1.1 +Version: 18.0.1 Summary: Easily download, build, install, upgrade, and uninstall Python packages Home-page: https://bitbucket.org/pypa/setuptools Author: Python Packaging Authority
