public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Carl George <carl@george.computer>
To: git-commits@fedoraproject.org
Subject: [rpms/python-docker] epel10.2: Add patch3 to remove pip dependency
Date: Tue, 13 Oct 2026 18:25:51 GMT	[thread overview]
Message-ID: <179191595197.1.18155604251346090078.rpms-python-docker-0f2e6efbe3af@fedoraproject.org> (raw)

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)
+ 

                 reply	other threads:[~2026-10-13 18:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179191595197.1.18155604251346090078.rpms-python-docker-0f2e6efbe3af@fedoraproject.org \
    --to=carl@george.computer \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox