python-setuptools/python-setuptools.spec

107 lines
3.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-setuptools
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-setuptools
Version: 15.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.python.org/packages/source/s/setuptools/setuptools-%{version}.tar.gz
Source1: psfl.txt
Source2: zpl.txt
Accepting request 242094 from home:sleep_walker:branches:devel:languages:python patch changes are now in patch name and mentioned in changelog entry - bump to 5.4.1 Changes between 5.4.1 and 3.6 * Python #7776: (ssl_support) Correct usage of host for validation when tunneling for HTTPS. * Issue #154: pkg_resources will now cache the zip manifests rather than re-processing the same file from disk multiple times, but only if the environment variable PKG_RESOURCES_CACHE_ZIP_MANIFESTS is set. Clients that package many modules in the same zip file will see some improvement in startup time by enabling this feature. This feature is not enabled by default because it causes a substantial increase in memory usage. * Issue #185: Make svn tagging work on the new style SVN metadata. Thanks cazabon! * Prune revision control directories (e.g .svn) from base path as well as sub-directories. * Added a Developer Guide to the official documentation. * Some code refactoring and cleanup was done with no intended behavioral changes. * During install_egg_info, the generated lines for namespace package .pth files are now processed even during a dry run. * Issue #202: Implemented more robust cache invalidation for the ZipImporter, building on the work in Issue #168. Special thanks to Jurko Gospodnetic and PJE. * Issue #220: Restored script templates. * Renamed script templates to end with .tmpl now that they no longer need to be processed by 2to3. Fixes spurious syntax errors during build/install. * Issue #218: Re-release of 3.8.1 to signal that it supersedes 4.x. * Incidentally, script templates were updated not to include the triple-quote escaping. * Issue #213: Use legacy StringIO behavior for compatibility under pbr. * Issue #218: Setuptools 3.8.1 superseded 4.0.1, and 4.x was removed from OBS-URL: https://build.opensuse.org/request/show/242094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=70
2014-07-23 23:24:25 +02:00
Patch1: setuptools-5.4.1-create-sitedir.patch
# NOTE(toabctl): patch submitted upstream
# See https://bitbucket.org/pypa/setuptools/pull-request/127/fix-typeerror-for-pytestskip/
Patch2: fix-type-error.patch
# NOTE(toabctl): Fix for SLE11SP3 test failures
Patch3: fix-sle11-test-failure.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
- Update to version 2.1: * Issue #129: Suppress inspection of '*.whl' files when searching for files in a zip-imported file. * Issue #131: Fix RuntimeError when constructing an egg fetcher. - Changes from version 2.0.2: * Fix NameError during installation with Python implementations (e.g. Jython) not containing parser module. * Fix NameError in sdist:re_finder. - Changes from version 2.0.1: * Issue #124: Fixed error in list detection in upload_docs. - Changes from version 2.0: * Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox. * Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring setuptools for those versions of Python should use setuptools 1.x. * Removed setuptools.command.easy_install.HAS_USER_SITE. Clients expecting this boolean variable should use site.ENABLE_USER_SITE instead. * Removed pkg_resources.ImpWrapper. Clients that expected this class should use pkgutil.ImpImporter instead. - Changes from version 1.4.2: * Issue #116: Correct TypeError when reading a local package index on Python 3. - Changes from version 1.4.1: * Issue #114: Use sys.getfilesystemencoding for decoding config in bdist_wininst distributions. * Issue #105 and Issue #113: Establish a more robust technique for determining the terminal encoding - Changes from version 1.4: * Issue #27: easy_install will now use credentials from .pypirc if present for connecting to the package index. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=56
2014-02-10 15:53:17 +01:00
BuildRequires: python-xml
# for tests
BuildRequires: python-mock
BuildRequires: python-pytest
BuildRequires: python-pytest-runner
# needed for SLE
Requires: python
- Update to version 2.1: * Issue #129: Suppress inspection of '*.whl' files when searching for files in a zip-imported file. * Issue #131: Fix RuntimeError when constructing an egg fetcher. - Changes from version 2.0.2: * Fix NameError during installation with Python implementations (e.g. Jython) not containing parser module. * Fix NameError in sdist:re_finder. - Changes from version 2.0.1: * Issue #124: Fixed error in list detection in upload_docs. - Changes from version 2.0: * Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox. * Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring setuptools for those versions of Python should use setuptools 1.x. * Removed setuptools.command.easy_install.HAS_USER_SITE. Clients expecting this boolean variable should use site.ENABLE_USER_SITE instead. * Removed pkg_resources.ImpWrapper. Clients that expected this class should use pkgutil.ImpImporter instead. - Changes from version 1.4.2: * Issue #116: Correct TypeError when reading a local package index on Python 3. - Changes from version 1.4.1: * Issue #114: Use sys.getfilesystemencoding for decoding config in bdist_wininst distributions. * Issue #105 and Issue #113: Establish a more robust technique for determining the terminal encoding - Changes from version 1.4: * Issue #27: easy_install will now use credentials from .pypirc if present for connecting to the package index. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=56
2014-02-10 15:53:17 +01:00
Requires: python-xml
Requires(post): update-alternatives
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
BuildArch: noarch
%endif
%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}
Accepting request 242094 from home:sleep_walker:branches:devel:languages:python patch changes are now in patch name and mentioned in changelog entry - bump to 5.4.1 Changes between 5.4.1 and 3.6 * Python #7776: (ssl_support) Correct usage of host for validation when tunneling for HTTPS. * Issue #154: pkg_resources will now cache the zip manifests rather than re-processing the same file from disk multiple times, but only if the environment variable PKG_RESOURCES_CACHE_ZIP_MANIFESTS is set. Clients that package many modules in the same zip file will see some improvement in startup time by enabling this feature. This feature is not enabled by default because it causes a substantial increase in memory usage. * Issue #185: Make svn tagging work on the new style SVN metadata. Thanks cazabon! * Prune revision control directories (e.g .svn) from base path as well as sub-directories. * Added a Developer Guide to the official documentation. * Some code refactoring and cleanup was done with no intended behavioral changes. * During install_egg_info, the generated lines for namespace package .pth files are now processed even during a dry run. * Issue #202: Implemented more robust cache invalidation for the ZipImporter, building on the work in Issue #168. Special thanks to Jurko Gospodnetic and PJE. * Issue #220: Restored script templates. * Renamed script templates to end with .tmpl now that they no longer need to be processed by 2to3. Fixes spurious syntax errors during build/install. * Issue #218: Re-release of 3.8.1 to signal that it supersedes 4.x. * Incidentally, script templates were updated not to include the triple-quote escaping. * Issue #213: Use legacy StringIO behavior for compatibility under pbr. * Issue #218: Setuptools 3.8.1 superseded 4.0.1, and 4.x was removed from OBS-URL: https://build.opensuse.org/request/show/242094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=70
2014-07-23 23:24:25 +02:00
%patch1 -p1
%patch2 -p1
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%patch3 -p1
%endif
find . -type f -name "*.orig" -delete
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm %{buildroot}%{_bindir}/easy_install
- Update to version 2.1: * Issue #129: Suppress inspection of '*.whl' files when searching for files in a zip-imported file. * Issue #131: Fix RuntimeError when constructing an egg fetcher. - Changes from version 2.0.2: * Fix NameError during installation with Python implementations (e.g. Jython) not containing parser module. * Fix NameError in sdist:re_finder. - Changes from version 2.0.1: * Issue #124: Fixed error in list detection in upload_docs. - Changes from version 2.0: * Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox. * Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring setuptools for those versions of Python should use setuptools 1.x. * Removed setuptools.command.easy_install.HAS_USER_SITE. Clients expecting this boolean variable should use site.ENABLE_USER_SITE instead. * Removed pkg_resources.ImpWrapper. Clients that expected this class should use pkgutil.ImpImporter instead. - Changes from version 1.4.2: * Issue #116: Correct TypeError when reading a local package index on Python 3. - Changes from version 1.4.1: * Issue #114: Use sys.getfilesystemencoding for decoding config in bdist_wininst distributions. * Issue #105 and Issue #113: Establish a more robust technique for determining the terminal encoding - Changes from version 1.4: * Issue #27: easy_install will now use credentials from .pypirc if present for connecting to the package index. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=56
2014-02-10 15:53:17 +01:00
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/easy_install
ln -sf %{_sysconfdir}/alternatives/easy_install %{buildroot}/%{_bindir}/easy_install
%check
export LANG="en_US.UTF-8"
python setup.py ptr --addopts='-rxs'
%post
update-alternatives \
--install %{_bindir}/easy_install easy_install %{_bindir}/easy_install-%{py_ver} 20
%postun
if [ $1 -eq 0 ] ; then
update-alternatives --remove easy_install %{_bindir}/easy_install-%{py_ver}
fi
%files
%defattr(-,root,root,-)
%doc CHANGES.txt README.txt
- Update to version 2.1: * Issue #129: Suppress inspection of '*.whl' files when searching for files in a zip-imported file. * Issue #131: Fix RuntimeError when constructing an egg fetcher. - Changes from version 2.0.2: * Fix NameError during installation with Python implementations (e.g. Jython) not containing parser module. * Fix NameError in sdist:re_finder. - Changes from version 2.0.1: * Issue #124: Fixed error in list detection in upload_docs. - Changes from version 2.0: * Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox. * Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring setuptools for those versions of Python should use setuptools 1.x. * Removed setuptools.command.easy_install.HAS_USER_SITE. Clients expecting this boolean variable should use site.ENABLE_USER_SITE instead. * Removed pkg_resources.ImpWrapper. Clients that expected this class should use pkgutil.ImpImporter instead. - Changes from version 1.4.2: * Issue #116: Correct TypeError when reading a local package index on Python 3. - Changes from version 1.4.1: * Issue #114: Use sys.getfilesystemencoding for decoding config in bdist_wininst distributions. * Issue #105 and Issue #113: Establish a more robust technique for determining the terminal encoding - Changes from version 1.4: * Issue #27: easy_install will now use credentials from .pypirc if present for connecting to the package index. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=56
2014-02-10 15:53:17 +01:00
%{_bindir}/easy_install
%{_bindir}/easy_install-%{py_ver}
- Update to version 2.1: * Issue #129: Suppress inspection of '*.whl' files when searching for files in a zip-imported file. * Issue #131: Fix RuntimeError when constructing an egg fetcher. - Changes from version 2.0.2: * Fix NameError during installation with Python implementations (e.g. Jython) not containing parser module. * Fix NameError in sdist:re_finder. - Changes from version 2.0.1: * Issue #124: Fixed error in list detection in upload_docs. - Changes from version 2.0: * Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox. * Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring setuptools for those versions of Python should use setuptools 1.x. * Removed setuptools.command.easy_install.HAS_USER_SITE. Clients expecting this boolean variable should use site.ENABLE_USER_SITE instead. * Removed pkg_resources.ImpWrapper. Clients that expected this class should use pkgutil.ImpImporter instead. - Changes from version 1.4.2: * Issue #116: Correct TypeError when reading a local package index on Python 3. - Changes from version 1.4.1: * Issue #114: Use sys.getfilesystemencoding for decoding config in bdist_wininst distributions. * Issue #105 and Issue #113: Establish a more robust technique for determining the terminal encoding - Changes from version 1.4: * Issue #27: easy_install will now use credentials from .pypirc if present for connecting to the package index. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=56
2014-02-10 15:53:17 +01:00
%ghost %{_sysconfdir}/alternatives/easy_install
%{python_sitelib}/_markerlib
%{python_sitelib}/setuptools
%{python_sitelib}/setuptools-%{version}-py%{py_ver}.egg-info
- Update to version 2.1: * Issue #129: Suppress inspection of '*.whl' files when searching for files in a zip-imported file. * Issue #131: Fix RuntimeError when constructing an egg fetcher. - Changes from version 2.0.2: * Fix NameError during installation with Python implementations (e.g. Jython) not containing parser module. * Fix NameError in sdist:re_finder. - Changes from version 2.0.1: * Issue #124: Fixed error in list detection in upload_docs. - Changes from version 2.0: * Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox. * Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring setuptools for those versions of Python should use setuptools 1.x. * Removed setuptools.command.easy_install.HAS_USER_SITE. Clients expecting this boolean variable should use site.ENABLE_USER_SITE instead. * Removed pkg_resources.ImpWrapper. Clients that expected this class should use pkgutil.ImpImporter instead. - Changes from version 1.4.2: * Issue #116: Correct TypeError when reading a local package index on Python 3. - Changes from version 1.4.1: * Issue #114: Use sys.getfilesystemencoding for decoding config in bdist_wininst distributions. * Issue #105 and Issue #113: Establish a more robust technique for determining the terminal encoding - Changes from version 1.4: * Issue #27: easy_install will now use credentials from .pypirc if present for connecting to the package index. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=56
2014-02-10 15:53:17 +01:00
%{python_sitelib}/easy_install.py*
%{python_sitelib}/pkg_resources
%changelog