commit python-setuptools for openSUSE:Factory
Hello community, here is the log from the commit of package python-setuptools for openSUSE:Factory checked in at 2017-02-27 18:28:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 2017-02-10 09:48:57.566396365 +0100 +++ /work/SRC/openSUSE:Factory/.python-setuptools.new/python-setuptools.changes 2017-02-27 18:28:19.451156790 +0100 @@ -1,0 +2,25 @@ +Thu Feb 23 13:28:56 UTC 2017 - jmatejek@suse.com + +- update to 34.2.0 + * dependencies are no longer vendored and setuptools can't bootstrap + without them + * drop support for python 2.6 and 3.2 + * declarative config option for setup.cfg + * nspkg.pth files for development + * switch to zip format for source dist + * ensure extras are honored when building the working set + * add support for reading dist-info metadata + * support for PEP440 version specifiers +- added build-time and run-time dependencies to appdirs and packaging, + ensured these packages build without setuptools +- drop upstreamed setuptools-certpath.patch +- drop unneeded setuptools-5.4.1-create-sitedir.patch +- add fdupes +- change source file to zip, add unzip dependency + +------------------------------------------------------------------- +Thu Feb 16 15:58:12 UTC 2017 - jmatejek@suse.com + +- update for multipython build + +------------------------------------------------------------------- Old: ---- setuptools-28.3.0.tar.gz setuptools-5.4.1-create-sitedir.patch setuptools-certpath.patch New: ---- setuptools-34.2.0.zip ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-setuptools.spec ++++++ --- /var/tmp/diff_new_pack.EkF3fe/_old 2017-02-27 18:28:20.167055920 +0100 +++ /var/tmp/diff_new_pack.EkF3fe/_new 2017-02-27 18:28:20.171055357 +0100 @@ -16,26 +16,31 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-setuptools -Version: 28.3.0 +Version: 34.2.0 Release: 0 -Url: http://pypi.python.org/pypi/setuptools Summary: Easily download, build, install, upgrade, and uninstall Python packages License: Python-2.0 or ZPL-2.0 Group: Development/Languages/Python -Source: https://pypi.io/packages/source/s/setuptools/setuptools-%{version}.tar.gz +Source: https://pypi.io/packages/source/s/setuptools/setuptools-%{version}.zip Source1: psfl.txt Source2: zpl.txt -Patch1: setuptools-5.4.1-create-sitedir.patch # NOTE(toabctl): Fix for SLE11SP3 test failures Patch3: fix-sle11-test-failure.patch -# PATCH-FIX-UPSTREAM better handling of certificate store in SUSE -Patch4: setuptools-certpath.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-xml +BuildRequires: %{python_module appdirs} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module packaging} +BuildRequires: %{python_module six} +BuildRequires: %{python_module xml} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip # needed for SLE Requires: python +Requires: python-appdirs +Requires: python-packaging Requires: python-six Requires: python-xml Recommends: ca-certificates-mozilla @@ -43,26 +48,27 @@ Requires(postun): update-alternatives # NOTE(saschpe): Distribute was merged into 0.7.x, so even though distribute # obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again -Provides: python-distribute = %{version} -Obsoletes: python-distribute < %{version} -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +%ifpython2 +Provides: %{oldpython}-distribute = %{version} +Obsoletes: %{oldpython}-distribute < %{version} +%endif +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif +%python_subpackages + %description setuptools is a collection of enhancements to the Python distutils that allow you to more easily build and distribute Python packages, especially ones that have dependencies on other packages. + %prep %setup -q -n setuptools-%{version} -%patch1 -p1 %if 0%{?suse_version} && 0%{?suse_version} <= 1220 %patch3 -p1 %endif -%patch4 -p1 find . -type f -name "*.orig" -delete # fix rpmlint spurious-executable-perm @@ -74,17 +80,15 @@ # s@...@...@ = same as s/.../.../ except with @ instead of / # ^ = start; #!/ = shebang leading characters; .* = rest of line; $ = end # replace with nothing -sed -r -i '1s@^#!/.*$@@' pkg_resources/_vendor/appdirs.py setuptools/command/easy_install.py +sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -rm %{buildroot}%{_bindir}/easy_install -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -touch %{buildroot}%{_sysconfdir}/alternatives/easy_install -ln -sf %{_sysconfdir}/alternatives/easy_install %{buildroot}/%{_bindir}/easy_install +%python_install +%prepare_alternative easy_install +%fdupes %{buildroot}%{_prefix} # Can not run testsuite as this introduces build cycle #%check @@ -92,23 +96,19 @@ #python setup.py ptr --addopts='-rxs' %post -update-alternatives \ - --install %{_bindir}/easy_install easy_install %{_bindir}/easy_install-%{py_ver} 20 +%python_install_alternative easy_install %postun -if [ $1 -eq 0 ] ; then - update-alternatives --remove easy_install %{_bindir}/easy_install-%{py_ver} -fi +%python_uninstall_alternative easy_install -%files +%files %python_files %defattr(-,root,root,-) %doc CHANGES.rst README.rst -%{_bindir}/easy_install -%{_bindir}/easy_install-%{py_ver} -%ghost %{_sysconfdir}/alternatives/easy_install +%python_alternative %{_bindir}/easy_install %{python_sitelib}/setuptools -%{python_sitelib}/setuptools-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/setuptools-%{version}-py%{python_version}.egg-info %{python_sitelib}/easy_install.py* +%pycache_only %{python_sitelib}/__pycache__/easy_install.* %dir %{python_sitelib}/pkg_resources %{python_sitelib}/pkg_resources/*
participants (1)
-
root@hilbertn.suse.de