python-setuptools/python-setuptools.spec
Dirk Mueller a2c374a47a Accepting request 527203 from home:tbechtold:branches:devel:languages:python
- update to 36.5.0:
  * #170: When working with Mercurial checkouts, use Windows-friendly
    syntax for suppressing output.
  * Inspired by #1134, performed substantial refactoring of
    ``pkg_resources.find_on_path`` to facilitate an optimization
    for paths with many non-version entries.
  * #1075: Add new ``Description-Content-Type`` metadata field. `See here for
    documentation on how to use this field.
    <https://packaging.python.org/specifications/#description-content-type>`_
  * #1068: Sort files and directories when building eggs for
    deterministic order.
  * #196: Remove caching of easy_install command in fetch_build_egg.
    Fixes issue where ``pytest-runner-N.N`` would satisfy the installation
    of ``pytest``.
  * #1129: Fix working set dependencies handling when replacing conflicting
    distributions (e.g. when using ``setup_requires`` with a conflicting
    transitive dependency, fix #1124).
  * #1133: Improved handling of README files extensions and added
    Markdown to the list of searched READMES.
  * #1135: Improve performance of pkg_resources import by not invoking
    ``access`` or ``stat`` and using ``os.listdir`` instead.
  * #1131: Make possible using several files within ``file:`` directive
    in metadata.long_description in ``setup.cfg``.
  * fix #1105: Fix handling of requirements with environment
    markers when declared in ``setup.cfg`` (same treatment as
    for #1081).
  * #462: Don't assume a directory is an egg by the ``.egg``
    extension alone.
  * #1093: Fix test command handler with extras_require.
  * #1112, #1091, #1115: Now using Trusty containers in

OBS-URL: https://build.opensuse.org/request/show/527203
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=114
2017-09-19 08:50:37 +00:00

109 lines
3.4 KiB
RPMSpec

#
# spec file for package python-setuptools
#
# Copyright (c) 2017 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-setuptools
Version: 36.5.0
Release: 0
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}.zip
Source1: psfl.txt
Source2: zpl.txt
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
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
%ifpython2
Provides: %{oldpython}-distribute = %{version}
Obsoletes: %{oldpython}-distribute < %{version}
%endif
BuildArch: noarch
%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}
find . -type f -name "*.orig" -delete
# fix rpmlint spurious-executable-perm
chmod -x README.rst
# strip shebangs to fix rpmlint warnings
# "explain the sed":
# 1 = first line only
# s@...@...@ = same as s/.../.../ except with @ instead of /
# ^ = start; #!/ = shebang leading characters; .* = rest of line; $ = end
# replace with nothing
sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py
%build
%python_build
%install
%python_install
%prepare_alternative easy_install
%fdupes %{buildroot}%{_prefix}
# Can not run testsuite as this introduces build cycle
#%check
#export LANG="en_US.UTF-8"
#python setup.py ptr --addopts='-rxs'
%post
%python_install_alternative easy_install
%postun
%python_uninstall_alternative easy_install
%files %python_files
%defattr(-,root,root,-)
%doc CHANGES.rst README.rst
%python_alternative %{_bindir}/easy_install
%{python_sitelib}/setuptools
%{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/*
%changelog