From 1732721ede032feb7ba6254dd551cfd19bc83ff0bed47f85fe727a78805fbcb5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 14 Jul 2025 19:40:31 +0000 Subject: [PATCH] - update to 0.0.34: * meta: drop support for Python 3.7 - update to 0.0.33: * fix release workflow, corrective release - update to 0.0.32: * Bump the actions group with 5 updates - update to 0.0.31: * Handle editable projects with `pyproject.toml` OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-api?expand=0&rev=24 --- pip-api-0.0.30.tar.gz | 3 --- pip_api-0.0.34.tar.gz | 3 +++ python-pip-api.changes | 12 +++++++++ python-pip-api.spec | 8 +++--- support-packaging-changes.patch | 8 +++--- unvendor.patch | 44 +++++++++++++++++---------------- 6 files changed, 47 insertions(+), 31 deletions(-) delete mode 100644 pip-api-0.0.30.tar.gz create mode 100644 pip_api-0.0.34.tar.gz diff --git a/pip-api-0.0.30.tar.gz b/pip-api-0.0.30.tar.gz deleted file mode 100644 index 827ca3e..0000000 --- a/pip-api-0.0.30.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a05df2c7aa9b7157374bcf4273544201a0c7bae60a9c65bcf84f3959ef3896f3 -size 112078 diff --git a/pip_api-0.0.34.tar.gz b/pip_api-0.0.34.tar.gz new file mode 100644 index 0000000..91b71bd --- /dev/null +++ b/pip_api-0.0.34.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b75e958f14c5a2614bae415f2adf7eeb54d50a2cfbe7e24fd4826471bac3625 +size 123017 diff --git a/python-pip-api.changes b/python-pip-api.changes index 8b7fbf8..d44d097 100644 --- a/python-pip-api.changes +++ b/python-pip-api.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Jul 14 19:39:36 UTC 2025 - Dirk Müller + +- update to 0.0.34: + * meta: drop support for Python 3.7 +- update to 0.0.33: + * fix release workflow, corrective release +- update to 0.0.32: + * Bump the actions group with 5 updates +- update to 0.0.31: + * Handle editable projects with `pyproject.toml` + ------------------------------------------------------------------- Tue Jun 3 11:33:20 UTC 2025 - Markéta Machová diff --git a/python-pip-api.spec b/python-pip-api.spec index fd0222c..27a1ac1 100644 --- a/python-pip-api.spec +++ b/python-pip-api.spec @@ -18,12 +18,12 @@ %{?sle15_python_module_pythons} Name: python-pip-api -Version: 0.0.30 +Version: 0.0.34 Release: 0 Summary: The official unofficial pip API License: Apache-2.0 URL: https://github.com/di/pip-api -Source0: https://github.com/di/pip-api/releases/download/%{version}/pip-api-%{version}.tar.gz +Source0: https://github.com/di/pip-api/releases/download/%{version}/pip_api-%{version}.tar.gz Source1: test-data.tar.gz # PATCH-FIX-OPENSUSE We do not want a vendored packaging. Patch0: unvendor.patch @@ -35,11 +35,13 @@ BuildRequires: %{python_module pip >= 22.1} BuildRequires: %{python_module pretend} BuildRequires: %{python_module pyparsing >= 2.4.7} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module tomli} BuildRequires: %{python_module virtualenv} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-pip +Requires: python-tomli BuildArch: noarch %python_subpackages @@ -47,7 +49,7 @@ BuildArch: noarch The official unofficial pip API. %prep -%autosetup -p1 -a 1 -n pip-api-%{version} +%autosetup -p1 -a 1 -n pip_api-%{version} rm -Rf ./pip_api/_vendor %build diff --git a/support-packaging-changes.patch b/support-packaging-changes.patch index d406840..09a3b44 100644 --- a/support-packaging-changes.patch +++ b/support-packaging-changes.patch @@ -1,8 +1,8 @@ -Index: pip-api-0.0.30/tests/test_parse_requirements.py +Index: pip_api-0.0.34/tests/test_parse_requirements.py =================================================================== ---- pip-api-0.0.30.orig/tests/test_parse_requirements.py -+++ pip-api-0.0.30/tests/test_parse_requirements.py -@@ -75,14 +75,6 @@ PEP508_PIP_EXAMPLE_WHEEL_FILE = "file:// +--- pip_api-0.0.34.orig/tests/test_parse_requirements.py ++++ pip_api-0.0.34/tests/test_parse_requirements.py +@@ -73,14 +73,6 @@ PEP508_PIP_EXAMPLE_WHEEL_FILE = "file:// "", ), ( diff --git a/unvendor.patch b/unvendor.patch index 45c16a1..45f5ca6 100644 --- a/unvendor.patch +++ b/unvendor.patch @@ -1,7 +1,7 @@ -Index: pip-api-0.0.30/pip_api/__init__.py +Index: pip_api-0.0.34/pip_api/__init__.py =================================================================== ---- pip-api-0.0.30.orig/pip_api/__init__.py -+++ pip-api-0.0.30/pip_api/__init__.py +--- pip_api-0.0.34.orig/pip_api/__init__.py ++++ pip_api-0.0.34/pip_api/__init__.py @@ -1,7 +1,7 @@ import sys @@ -12,10 +12,10 @@ Index: pip-api-0.0.30/pip_api/__init__.py # Import this now because we need it below from pip_api._version import version -Index: pip-api-0.0.30/pip_api/_hash.py +Index: pip_api-0.0.34/pip_api/_hash.py =================================================================== ---- pip-api-0.0.30.orig/pip_api/_hash.py -+++ pip-api-0.0.30/pip_api/_hash.py +--- pip_api-0.0.34.orig/pip_api/_hash.py ++++ pip_api-0.0.34/pip_api/_hash.py @@ -1,6 +1,6 @@ import os @@ -24,10 +24,10 @@ Index: pip-api-0.0.30/pip_api/_hash.py import pip_api from pip_api._call import call -Index: pip-api-0.0.30/pip_api/_installed_distributions.py +Index: pip_api-0.0.34/pip_api/_installed_distributions.py =================================================================== ---- pip-api-0.0.30.orig/pip_api/_installed_distributions.py -+++ pip-api-0.0.30/pip_api/_installed_distributions.py +--- pip_api-0.0.34.orig/pip_api/_installed_distributions.py ++++ pip_api-0.0.34/pip_api/_installed_distributions.py @@ -7,7 +7,7 @@ import pip_api from pip_api._call import call from pip_api.exceptions import PipError @@ -37,23 +37,25 @@ Index: pip-api-0.0.30/pip_api/_installed_distributions.py class Distribution: -Index: pip-api-0.0.30/pip_api/_parse_requirements.py +Index: pip_api-0.0.34/pip_api/_parse_requirements.py =================================================================== ---- pip-api-0.0.30.orig/pip_api/_parse_requirements.py -+++ pip-api-0.0.30/pip_api/_parse_requirements.py -@@ -14,7 +14,7 @@ from typing import Any, Dict, Optional, - from urllib.parse import urljoin, unquote, urlsplit +--- pip_api-0.0.34.orig/pip_api/_parse_requirements.py ++++ pip_api-0.0.34/pip_api/_parse_requirements.py +@@ -11,8 +11,8 @@ from typing import Any, Dict, Optional, + from urllib.parse import unquote, urljoin, urlsplit from urllib.request import pathname2url, url2pathname +-from pip_api._vendor import tomli -from pip_api._vendor.packaging import requirements, specifiers # type: ignore ++import tomli +from packaging import requirements, specifiers # type: ignore - from pip_api.exceptions import PipError -Index: pip-api-0.0.30/tests/conftest.py + parser = argparse.ArgumentParser() +Index: pip_api-0.0.34/tests/conftest.py =================================================================== ---- pip-api-0.0.30.orig/tests/conftest.py -+++ pip-api-0.0.30/tests/conftest.py +--- pip_api-0.0.34.orig/tests/conftest.py ++++ pip_api-0.0.34/tests/conftest.py @@ -6,7 +6,7 @@ import pytest import pretend import virtualenv @@ -63,10 +65,10 @@ Index: pip-api-0.0.30/tests/conftest.py import pip_api -Index: pip-api-0.0.30/tests/test_installed_distributions.py +Index: pip_api-0.0.34/tests/test_installed_distributions.py =================================================================== ---- pip-api-0.0.30.orig/tests/test_installed_distributions.py -+++ pip-api-0.0.30/tests/test_installed_distributions.py +--- pip_api-0.0.34.orig/tests/test_installed_distributions.py ++++ pip_api-0.0.34/tests/test_installed_distributions.py @@ -2,7 +2,7 @@ import os import pytest