public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-docker] epel10.2: update to 2.1.0
@ 2026-10-13 18:25 Tomas Tomecek
  0 siblings, 0 replies; only message in thread
From: Tomas Tomecek @ 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 : 6a05caca7061a49f419c39027e4c68e906e51d03
            Author : Tomas Tomecek <ttomecek@redhat.com>
            Date   : 2017-02-20T10:57:41+01:00
            Stats  : +399/-0 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-docker/c/6a05caca7061a49f419c39027e4c68e906e51d03?branch=epel10.2

            Log:
            update to 2.1.0

Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>

---
diff --git a/.gitignore b/.gitignore
index e69de29..c04d157 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/docker-2.1.0.tar.gz

diff --git a/python-docker.spec b/python-docker.spec
new file mode 100644
index 0000000..1dbfaa6
--- /dev/null
+++ b/python-docker.spec
@@ -0,0 +1,333 @@
+%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
+# Do not build bindings for python3 for RHEL <= 7
+%bcond_with python3
+%bcond_with tests
+%global py2_build %{__python} setup.py build '--executable=/usr/bin/python2 -s'
+%global py2_install %{__python} setup.py install --root %{buildroot}
+%else
+%bcond_without python3
+%bcond_without tests
+%endif
+
+%global srcname docker
+%global py2_docker_py_1 python2-docker-py
+%global py3_docker_py_1 python3-docker-py
+
+Name:           python-%{srcname}
+Version:        2.1.0
+Release:        1%{?dist}
+Summary:        A Python library for the Docker Engine API
+License:        ASL 2.0
+URL:            https://pypi.python.org/pypi/%{srcname}
+Source0:        https://files.pythonhosted.org/packages/source/d/%{srcname}/%{srcname}-%{version}.tar.gz
+
+# remove version requirements on depedencies needed for testing
+# we have those in Fedora in different versions
+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
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+%description
+It lets you do anything the docker command does, but from within Python apps –
+run containers, manage containers, manage Swarms, etc.
+
+
+%package -n python2-%{srcname}
+Summary:        A Python library for the Docker Engine API
+%{?python_provide:%python_provide python2-%{srcname}}
+
+%if %{with tests}
+BuildRequires:  python-requests
+BuildRequires:  python-mock >= 1.0.1
+BuildRequires:  python-flake8 >= 2.4.1
+BuildRequires:  python-pytest-cov >= 2.1.0
+BuildRequires:  python2-pytest >= 2.9.1
+BuildRequires:  python-coverage >= 3.7.1
+BuildRequires:  python-backports-ssl_match_hostname
+BuildRequires:  python-six >= 1.4.0
+BuildRequires:  python-websocket-client >= 0.32.0
+BuildRequires:  python-ipaddress
+BuildRequires:  python2-docker-pycreds
+%endif  # tests
+
+Requires:       python-requests
+Requires:       python-websocket-client >= 0.32.0
+Requires:       python-six >= 1.4.0
+Requires:       python-ipaddress
+Requires:       python-backports-ssl_match_hostname
+Requires:       python2-docker-pycreds
+
+Obsoletes: %{py2_docker_py_1} < 1:2.0
+
+%description -n python2-%{srcname}
+It lets you do anything the docker command does, but from within Python apps –
+run containers, manage containers, manage Swarms, etc.
+
+%if %{with python3}
+%package -n python3-%{srcname}
+Summary:        A Python library for the Docker Engine API
+%{?python_provide:%python_provide python3-%{srcname}}
+
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+%if %{with tests}
+BuildRequires:  python3-mock >= 1.0.1
+BuildRequires:  python3-pytest >= 2.9.1
+BuildRequires:  python3-pytest-cov >= 2.1.0
+BuildRequires:  python3-coverage >= 3.7.1
+BuildRequires:  python3-flake8 >= 2.4.1
+BuildRequires:  python3-six >= 1.3.0
+BuildRequires:  python3-websocket-client >= 0.32.0
+BuildRequires:  python3-requests >= 2.5.2
+BuildRequires:  python3-docker-pycreds
+%endif  # tests
+Requires:       python3-websocket-client >= 0.32.0
+Requires:       python3-requests
+Requires:       python3-six >= 1.3.0
+Requires:       python3-docker-pycreds
+
+Obsoletes: %{py3_docker_py_1} < 1:2.0
+
+%description -n python3-%{srcname}
+It lets you do anything the docker command does, but from within Python apps –
+run containers, manage containers, manage Swarms, etc.
+%endif # with_python3
+
+%prep
+%autosetup -n %{srcname}-%{version} -p 1
+rm -fr docker.egg-info
+
+%build
+%py2_build
+
+%if %{with python3}
+%py3_build
+%endif # with_python3
+
+%install
+%py2_install
+
+%if %{with python3}
+%py3_install
+%endif # with_python3
+
+%check
+%if %{with tests}
+PYTHONPATH="${PWD}" py.test-%{python2_version} tests/unit/ || :
+%endif
+
+%if %{with python3}
+%if %{with tests}
+PYTHONPATH="${PWD}" py.test-%{python3_version} tests/unit/ || :
+%endif # tests
+%endif # with_python3
+
+
+%files -n python2-%{srcname}
+%license LICENSE
+%doc README.md
+%dir %{python_sitelib}/docker
+%dir %{python_sitelib}/docker-%{version}-py2*.egg-info
+%{python_sitelib}/docker/*
+%{python_sitelib}/docker-%{version}-py2*.egg-info/*
+
+%if %{with python3}
+%files -n python3-%{srcname}
+%license LICENSE
+%doc README.md
+%dir %{python3_sitelib}/docker
+%dir %{python3_sitelib}/docker-%{version}-py3*.egg-info
+%{python3_sitelib}/docker/*
+%{python3_sitelib}/docker-%{version}-py3*.egg-info/*
+%endif # with_python3
+
+%changelog
+* Mon Feb 20 2017 Tomas Tomecek <ttomecek@redhat.com> - 2.1.0-1
+- new upstream release: 2.1.0
+
+* Fri Feb 10 2017 Tomas Tomecek <ttomecek@redhat.com> - 2.0.2-1
+- new upstream release: 2.0.2, new review:
+ - remove remote inspection patch:
+   https://github.com/projectatomic/atomic/issues/898
+ - doesn't provide python-docker-py (not bacwards compat)
+
+* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.10.6-2
+- Rebuild for Python 3.6
+
+* Mon Nov 28 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.10.6-1
+- new upstream release: 1.10.6
+
+* Tue Oct 18 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.10.4-1
+- new upstream release: 1.10.4
+
+* Wed Oct 05 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.10.3-1
+- new upstream release: 1.10.3
+
+* Fri Jul 29 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.9.0-1
+- new upstream release: 1.9.0
+
+* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.0-0.2.rc2
+- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
+
+* Wed Jun 29 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.9.0-0.1.rc2
+- update to 1.9.0rc2
+
+* Fri Jun 17 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.9.0-0.1.rc1
+- update to 1.9.0rc1
+
+* Tue May 03 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.8.1-1
+- new upstream release: 1.8.1
+
+* Tue Apr 19 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.8.0-3
+- remove "py2-ipaddress" as a dependency since it's not available,
+  use python-ipaddress instead
+
+* Mon Apr 11 2016 Colin Walters <walters@redhat.com> - 1.8.0-2
+- Use bcond, make it easier to build on CentOS 7 for
+  https://lists.projectatomic.io/projectatomic-archives/atomic-devel/2016-April/msg00004.html
+
+* Thu Apr 07 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.8.0-1
+- new upstream release: 1.8.0
+
+* Fri Mar 04 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.7.2-1
+- new upstream release: 1.7.2
+- modernized specfile
+- fixed URL
+
+* Mon Feb 08 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.7.0.0-1
+- new upstream release: 1.7.0
+
+* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0rc2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Mon Jan 25 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.7.0rc2-1
+- new upstream release: 1.7.0rc2
+
+* Fri Jan 08 2016 Tomas Tomecek <ttomecek@redhat.com> - 1.6.0-2
+- new downstream patch: remote inspection
+
+* Wed Dec 02 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.6.0-1
+- new upstream release: 1.6.0
+
+* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
+
+* Tue Oct 13 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.5.0-1
+- new upstream release: 1.5.0
+
+* Fri Sep 11 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.4.0-1
+- new upstream release: 1.4.0
+
+* Tue Jul 28 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.3.1-1
+- new upstream release: 1.3.1
+
+* Fri Jul 10 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.3.0-1
+- new upstream release: 1.3.0
+
+* Fri Jun 19 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.2.3-1
+- new upstream release: 1.2.3
+
+* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Wed May 06 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.2.2-1
+- new upstream release: 1.2.2
+
+* Thu Apr 30 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.2.1-1
+- new upstream release: 1.2.1
+
+* Wed Mar 18 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.1.0-2
+- docker-py 1.1.0 requires requests>=2.5.2
+
+* Fri Mar 13 2015 Tomas Tomecek <ttomecek@redhat.com> - 1.1.0-1
+- new upstream release: 1.1.0
+- use latest python-requests
+- run unit test during build
+
+* Wed Feb 25 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-1
+- update to upstream 1.0.0
+- Resolves: rhbz#1195627 - don't (B)R docker
+- use github url instead of pypi
+- run tests in check if /run/docker.sock exists
+
+* Wed Jan 14 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.7.1-1
+- Resolves: rhbz#1182003 - Update to 0.7.1
+
+* Thu Dec 25 2014 Igor Gnatenko <ignatenko@mirantis.com> - 0.7.0-1
+- Update to 0.7.0 (RHBZ #1176950)
+
+* Mon Dec 01 2014 Tomas Radej <tradej@redhat.com> - 0.6.0-2
+- Added Python 3 subpackage
+
+* Fri Nov 21 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.6.0-1
+- Resolves: rhbz#1160293 - update to 0.6.0
+
+* Thu Oct 23 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.5.3-2
+- Resolves: rhbz#1145895
+- versioned python-requests req only for f21+
+
+* Wed Oct 22 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.5.3-1
+- Resolves: rhbz#1153991 - update to 0.5.3
+
+* Tue Sep 23 2014 Tom Prince <tom.prince@clusterhq.com> - 0.5.0-2
+- Specify depedencies to match those in setup.py
+
+* Mon Sep 22 2014 Tom Prince <tom.prince@clusterhq.com> - 0.5.0-1
+- Resolves: rhbz#1145511 - version bump to 0.5.0
+
+* Tue Aug 26 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.4.0-3
+- correct bogus date
+
+* Tue Aug 26 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.4.0-2
+- rewrite BR&R conditionals for docker/docker-io
+
+* Thu Aug 21 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.4.0-1
+- update to 0.4.0
+- Resolves: rhbz#1132604 (epel7 only)
+
+* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sat Jul 12 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.3.2-1
+- version bump to 0.3.2
+- Resolves: rhbz#1097415
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Mon Feb 10 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.2.3-8
+- Bug 1063369 - Fix APIError for python-requests-1.1 on rhel6
+
+* Sat Feb 08 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.2.3-7
+- Bug 1048667 - disable debug package cause archful
+
+* Fri Feb 07 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.2.3-6
+- doesn't need python-mock at runtime
+
+* Thu Jan 09 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.2.3-5
+- python3 to be added after python3-websocket-client (BZ 1049424)
+
+* Tue Jan 07 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.2.3-4
+- double '%' to comment macros
+- check section not considered for now
+- python3- description in python3- subpackage conditional
+
+* Tue Jan 07 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.2.3-3
+- Everything goes in main package
+- python3 package requires corrected
+- package name python-docker-py
+- both packages require docker-io
+
+* Mon Jan 06 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.2.3-2
+- python3 subpackage
+- upstream uses PyPI
+- package owns directories it creates
+- build and runtime deps updated
+
+* Sun Jan 05 2014 Lokesh Mandvekar <lsm5@redhat.com> 0.2.3-1
+- Initial fedora package

diff --git a/setup-Neuter-extras_require-that-doesn-t-work-on-Cen.patch b/setup-Neuter-extras_require-that-doesn-t-work-on-Cen.patch
new file mode 100644
index 0000000..3fa5894
--- /dev/null
+++ b/setup-Neuter-extras_require-that-doesn-t-work-on-Cen.patch
@@ -0,0 +1,47 @@
+From 3eeef7b62131a1dbcbb2758eb9eb382578ddd0fb Mon Sep 17 00:00:00 2001
+From: Colin Walters <walters@verbum.org>
+Date: Tue, 3 May 2016 16:35:24 +0200
+Subject: [PATCH] setup: Neuter extras_require that doesn't work on CentOS 7
+
+I think the version of python-setuputils is too old or something.
+---
+ setup.py | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 9fc4ad6..6167419 100644
+--- a/setup.py
++++ b/setup.py
+@@ -29,13 +29,13 @@ requirements = [
+ if sys.platform == 'win32':
+     requirements.append('pypiwin32 >= 219')
+ 
+-extras_require = {
+-    ':python_version < "3.5"': 'backports.ssl_match_hostname >= 3.5',
+-    # While not imported explicitly, the ipaddress module is required for
+-    # ssl_match_hostname to verify hosts match with certificates via
+-    # ServerAltname: https://pypi.python.org/pypi/backports.ssl_match_hostname
+-    ':python_version < "3.3"': 'ipaddress >= 1.0.16',
+-}
++# extras_require = {
++#     ':python_version < "3.5"': 'backports.ssl_match_hostname >= 3.5',
++#     # While not imported explicitly, the ipaddress module is required for
++#     # ssl_match_hostname to verify hosts match with certificates via
++#     # ServerAltname: https://pypi.python.org/pypi/backports.ssl_match_hostname
++#     ':python_version < "3.3"': 'ipaddress >= 1.0.16',
++# }
+ 
+ version = None
+ exec(open('docker/version.py').read())
+@@ -62,7 +62,7 @@ setup(
+     packages=find_packages(exclude=["tests.*", "tests"]),
+     install_requires=requirements,
+     tests_require=test_requirements,
+-    extras_require=extras_require,
++    # extras_require=extras_require,
+     zip_safe=False,
+     test_suite='tests',
+     classifiers=[
+-- 
+2.11.0
+

diff --git a/sources b/sources
index e69de29..3af8082 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (docker-2.1.0.tar.gz) = faab83239d45d822b48e5f610f00b5e151ec9b7d5e8b66fb6b040a38fb928448a1f9f5372928ceddd9873a2dff163c8883e7bab720b7d68f1c8a4ffa22cd0f7e

diff --git a/unpin-test-requirements.patch b/unpin-test-requirements.patch
new file mode 100644
index 0000000..ae746a5
--- /dev/null
+++ b/unpin-test-requirements.patch
@@ -0,0 +1,17 @@
+diff --git a/test-requirements.txt b/test-requirements.txt
+--- a/test-requirements.txt
++++ b/test-requirements.txt
+@@ -1,5 +1,5 @@
+-mock==1.0.1
+-pytest==2.9.1
+-coverage==3.7.1
+-pytest-cov==2.1.0
+-flake8==2.4.1
++mock>=1.0.1
++pytest>=2.9.1
++coverage>=3.7.1
++pytest-cov>=2.1.0
++flake8>=2.4.1
+-- 
+2.9.0
+

^ 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: update to 2.1.0 Tomas Tomecek

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