public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-docker] epel10.2: Add patch3 to remove pip dependency
@ 2026-10-13 18:25 Carl George
  0 siblings, 0 replies; only message in thread
From: Carl George @ 2026-10-13 18:25 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-docker
Branch : epel10.2
Commit : 0f2e6efbe3af50ab5842e7814963a99a10db7f34
Author : Carl George <carl@george.computer>
Date   : 2017-09-05T12:00:16-05:00
Stats  : +29/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-docker/c/0f2e6efbe3af50ab5842e7814963a99a10db7f34?branch=epel10.2

Log:
Add patch3 to remove pip dependency

---
diff --git a/python-docker.spec b/python-docker.spec
index 9276975..866845c 100644
--- a/python-docker.spec
+++ b/python-docker.spec
@@ -15,7 +15,7 @@
 
 Name:           python-%{srcname}
 Version:        2.5.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A Python library for the Docker Engine API
 License:        ASL 2.0
 URL:            https://pypi.python.org/pypi/%{srcname}
@@ -28,6 +28,10 @@ Patch1:         unpin-test-requirements.patch
 # Python packages mentioned in `extras_require` are not available in CentOS
 Patch2:         setup-Neuter-extras_require-that-doesn-t-work-on-Cen.patch
 
+# Upstream uses pip to check if the older docker-py module is installed.  We
+# handle that with an obsolete.
+Patch3:         remove-pip-dependency.patch
+
 BuildArch:      noarch
 BuildRequires:  python2-devel
 BuildRequires:  python2-setuptools
@@ -149,6 +153,9 @@ PYTHONPATH="${PWD}" py.test-%{python3_version} tests/unit/ || :
 %endif # with_python3
 
 %changelog
+* Tue Sep 05 2017 Carl George <carl@george.computer> - 2.5.1-2
+- Add patch3 to remove pip dependency
+
 * Wed Aug 23 2017 Tomas Tomecek <ttomecek@redhat.com> - 2.5.1-1
 - new upstream release: 2.5.1
 

diff --git a/remove-pip-dependency.patch b/remove-pip-dependency.patch
new file mode 100644
index 0000000..5137f8f
--- /dev/null
+++ b/remove-pip-dependency.patch
@@ -0,0 +1,21 @@
+diff -Nurp docker-2.5.1.orig/setup.py docker-2.5.1/setup.py
+--- docker-2.5.1.orig/setup.py	2017-08-22 18:44:35.000000000 -0500
++++ docker-2.5.1/setup.py	2017-09-05 11:56:27.542146668 -0500
+@@ -5,17 +5,8 @@ import codecs
+ import os
+ import sys
+ 
+-import pip
+-
+ from setuptools import setup, find_packages
+ 
+-if 'docker-py' in [x.project_name for x in pip.get_installed_distributions()]:
+-    print(
+-        'ERROR: "docker-py" needs to be uninstalled before installing this'
+-        ' package:\npip uninstall docker-py', file=sys.stderr
+-    )
+-    sys.exit(1)
+-
+ ROOT_DIR = os.path.dirname(__file__)
+ SOURCE_DIR = os.path.join(ROOT_DIR)
+ 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-13 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-13 18:25 [rpms/python-docker] epel10.2: Add patch3 to remove pip dependency Carl George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox