forked from pool/python-pip
Accepting request 599168 from home:mimi_vx:branches:devel:languages:python
- update to 10.0.1 - refactor pip-8.1.2-shipped-requests-cabundle.patch * Switch the default repository to the new "PyPI 2.0" running at https://pypi.org/ * big bunch of changes from 9.0.1 in NEWS.rst OBS-URL: https://build.opensuse.org/request/show/599168 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=50
This commit is contained in:
committed by
Git OBS Bridge
parent
dcb41e3411
commit
1e080e3705
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pip
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 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
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pip
|
||||
Version: 9.0.1
|
||||
Version: 10.0.1
|
||||
Release: 0
|
||||
Url: http://www.pip-installer.org
|
||||
Summary: Pip installs packages. Python packages. An easy_install replacement
|
||||
@@ -37,7 +37,9 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
# Test requirements:
|
||||
BuildRequires: %{python_module freezegun}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pretend}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module scripttest >= 1.3}
|
||||
BuildRequires: %{python_module virtualenv >= 1.10}
|
||||
@@ -62,10 +64,10 @@ pip-installable as well.
|
||||
%prep
|
||||
%setup -q -n pip-%{version}
|
||||
%patch0 -p1
|
||||
find pip/_vendor -name *.py -exec \
|
||||
find src/pip/_vendor -name *.py -exec \
|
||||
sed -i "s|#!/usr/bin/env python||g" {} ";" # Fix non-executable script
|
||||
#sed -i "s|#!/usr/bin/env python||g" pip/__init__.py # Fix non-executable script
|
||||
rm pip/_vendor/requests/cacert.pem
|
||||
rm src/pip/_vendor/certifi/cacert.pem
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -103,7 +105,7 @@ PRIO=$(echo %{python_version} | tr -d .)
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS.txt CHANGES.txt LICENSE.txt README.rst
|
||||
%doc AUTHORS.txt NEWS.rst LICENSE.txt README.rst
|
||||
%{_bindir}/pip
|
||||
%python2_only %{_bindir}/pip2
|
||||
%python3_only %{_bindir}/pip3
|
||||
|
Reference in New Issue
Block a user