15
0

- update to 0.0.10

- add unvendor.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-api?expand=0&rev=6
This commit is contained in:
2019-06-07 15:30:24 +00:00
committed by Git OBS Bridge
parent eef61b8a9f
commit b03059a837
5 changed files with 75 additions and 5 deletions

3
pip-api-0.0.10.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:742b3edb5b077853ffcfec8a849f6ff1a622c6ecf648adb5fa0e4594998fcd46
size 86720

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a504d4536ccd1d87f46f7b10442d09bbe5a765a298a4580ab05ea7cfcda6f4b
size 12943

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 7 15:29:45 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
- update to 0.0.10
- add unvendor.patch
-------------------------------------------------------------------
Fri May 17 19:43:12 UTC 2019 - Hardik Italia <hitalia@suse.com>

View File

@@ -18,13 +18,14 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pip-api
Version: 0.0.8
Version: 0.0.10
Release: 0
Summary: The official unofficial pip API
License: Apache-2.0
Group: Development/Languages/Python
URL: http://github.com/di/pip-api
Source: https://files.pythonhosted.org/packages/source/p/pip-api/pip-api-%{version}.tar.gz
Patch0: unvendor.patch
BuildRequires: %{python_module packaging >= 16.1}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pretend}
@@ -43,6 +44,8 @@ The official unofficial pip API.
%prep
%setup -q -n pip-api-%{version}
%patch0 -p1
rm -Rf ./pip_api/_vendor
%build
%python_build
@@ -56,7 +59,7 @@ The official unofficial pip API.
# test_installed_distributions
# test_all_the_right_pips
# test_isolation
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v -k 'not (test_installed_distributions or test_all_the_right_pips or test_isolation)'
%pytest -v -k 'not (test_installed_distributions or test_all_the_right_pips or test_isolation)'
%files %{python_files}
%doc README.md

61
unvendor.patch Normal file
View File

@@ -0,0 +1,61 @@
Index: pip-api-0.0.10/pip_api/__init__.py
===================================================================
--- pip-api-0.0.10.orig/pip_api/__init__.py
+++ pip-api-0.0.10/pip_api/__init__.py
@@ -1,6 +1,6 @@
import sys
-from pip_api._vendor.packaging import version as packaging_version
+from packaging import version as packaging_version
# Import this now because we need it below
from pip_api._version import version
Index: pip-api-0.0.10/pip_api/_hash.py
===================================================================
--- pip-api-0.0.10.orig/pip_api/_hash.py
+++ pip-api-0.0.10/pip_api/_hash.py
@@ -1,4 +1,4 @@
-from pip_api._vendor.packaging.version import Version
+from packaging.version import Version
import pip_api
from pip_api._call import call
Index: pip-api-0.0.10/pip_api/_installed_distributions.py
===================================================================
--- pip-api-0.0.10.orig/pip_api/_installed_distributions.py
+++ pip-api-0.0.10/pip_api/_installed_distributions.py
@@ -3,7 +3,7 @@ import re
import pip_api
from pip_api._call import call
-from pip_api._vendor.packaging.version import Version
+from packaging.version import Version
class Distribution:
Index: pip-api-0.0.10/pip_api/_parse_requirements.py
===================================================================
--- pip-api-0.0.10.orig/pip_api/_parse_requirements.py
+++ pip-api-0.0.10/pip_api/_parse_requirements.py
@@ -13,7 +13,7 @@ try: # py27
except ImportError:
from urllib import pathname2url
-from pip_api._vendor.packaging import requirements, specifiers
+from packaging import requirements, specifiers
from pip_api.exceptions import PipError
Index: pip-api-0.0.10/tests/conftest.py
===================================================================
--- pip-api-0.0.10.orig/tests/conftest.py
+++ pip-api-0.0.10/tests/conftest.py
@@ -6,7 +6,7 @@ import pytest
import pretend
import virtualenv
-from pip_api._vendor.packaging.version import Version
+from packaging.version import Version
import pip_api