14
0
forked from pool/python-six

- use setuptools for building to support pip 10.x

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-six?expand=0&rev=76
This commit is contained in:
2020-03-09 20:54:55 +00:00
committed by Git OBS Bridge
parent e9d14aec1f
commit 232577890c
2 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 9 20:54:38 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- use setuptools for building to support pip 10.x
-------------------------------------------------------------------
Tue Jan 21 11:17:01 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@@ -27,6 +27,7 @@
%bcond_with test
%define psuffix %{nil}
%endif
Name: python-six%{psuffix}
Version: 1.14.0
Release: 0
Summary: Python 2 and 3 compatibility utilities
@@ -34,11 +35,10 @@ License: MIT
Group: Development/Libraries/Python
URL: http://pypi.python.org/pypi/six/
Source: https://files.pythonhosted.org/packages/source/s/six/six-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
Name: python-six%{psuffix}
%if %{with test}
BuildRequires: %{python_module dbm}
BuildRequires: %{python_module pytest}
@@ -88,10 +88,9 @@ cd documentation && make html && rm _build/html/.buildinfo
%endif
%pre
# boo#1123064 - change back to pre scriptlet - if needed as pretrans, write in lua
# bsc#1057496 - egg-info changed from directory to file
if [ -d %{python_sitelib}/six-*-py%{python_version}.egg-info ]; then
rm -rf %{python_sitelib}/six-*-py%{python_version}.egg-info
# handle distutils (file) to setuptools transition (directory)
if [ -f %{python_sitelib}/six-*-py%{python_version}.egg-info ]; then
rm -vf %{python_sitelib}/six-*-py%{python_version}.egg-info
fi
%if !%{with test}