[packages/python3-docker] up to 7.1.0

atler atler at pld-linux.org
Wed Aug 21 22:26:02 CEST 2024


commit 7c9451bb541db0f4e81d47fcbeaf82bebc2d1542
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Aug 21 22:21:23 2024 +0200

    up to 7.1.0

 pyproject-syntax.patch | 11 +++++++++++
 python3-docker.spec    | 31 +++++++++----------------------
 2 files changed, 20 insertions(+), 22 deletions(-)
---
diff --git a/python3-docker.spec b/python3-docker.spec
index 2e18e56..1d9c8bf 100644
--- a/python3-docker.spec
+++ b/python3-docker.spec
@@ -1,30 +1,19 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-
 %define		module		docker
 %define		egg_name	docker
 %define		pypi_name	docker
 Summary:	A Python 3 library for the Docker Engine API
 Summary(pl.UTF-8):	Biblioteka Pythona 3 do API silnika Docker
 Name:		python3-%{module}
-Version:	5.0.3
-Release:	2
+Version:	7.1.0
+Release:	1
 License:	Apache v2.0
 Group:		Libraries/Python
 Source0:	https://files.pythonhosted.org/packages/source/d/docker/%{pypi_name}-%{version}.tar.gz
-# Source0-md5:	33314b2c98a1a4e3b57e7068811007c6
+# Source0-md5:	04e92a7b6dc8b88dde3c7cca6850b277
+Patch0:		pyproject-syntax.patch
 URL:		http://docker-py.readthedocs.org/
 BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools >= 1:54.1.1
-%if %{with tests}
-BuildRequires:	python3-paramiko >= 2.4.2
-BuildRequires:	python3-pytest >= 4.3.1
-BuildRequires:	python3-pytest-timeout >= 1.3.3
-BuildRequires:	python3-requests >= 2.18.1
-BuildRequires:	python3-urllib3 >= 1.24.3
-BuildRequires:	python3-websocket-client >= 0.32.0
-%endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 BuildConflicts:	python3-docker < 2.0
@@ -48,17 +37,15 @@ kontenery, zarządzać nimi, zarządzać Swarmami itp.
 
 %prep
 %setup -q -n %{pypi_name}-%{version}
+%patch0 -p1
+cat > setup.py <<EOF
+from setuptools import setup
+setup(version='%{version}')
+EOF
 
 %build
 %py3_build
 
-%if %{with tests}
-# only unit tests (ssh and integration tests probably require docker running)
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_timeout \
-%{__python3} -m pytest tests/unit -k 'not TCPSocketStreamTest'
-%endif
-
 %install
 rm -rf $RPM_BUILD_ROOT
 
diff --git a/pyproject-syntax.patch b/pyproject-syntax.patch
new file mode 100644
index 0000000..79f52bf
--- /dev/null
+++ b/pyproject-syntax.patch
@@ -0,0 +1,11 @@
+--- docker-7.1.0/pyproject.toml.orig	2024-08-21 21:56:44.844857984 +0200
++++ docker-7.1.0/pyproject.toml	2024-08-21 21:58:13.939082401 +0200
+@@ -7,7 +7,7 @@
+ dynamic = ["version"]
+ description = "A Python library for the Docker Engine API."
+ readme = "README.md"
+-license = "Apache-2.0"
++license.text = "Apache-2.0"
+ requires-python = ">=3.8"
+ maintainers = [
+     { name = "Docker Inc.", email = "no-reply at docker.com" },
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-docker.git/commitdiff/7c9451bb541db0f4e81d47fcbeaf82bebc2d1542



More information about the pld-cvs-commit mailing list