15
0
forked from pool/python-docker
Files
python-docker/python-docker.spec

91 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-docker
#
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 533199 from home:apersaud:branches:devel:languages:python - specfile: * added obsoletes %oldpython - update to version 2.5.1: * Bugfixes + Fixed a bug where patterns ending with ** in .dockerignore would raise an exception + Fixed a bug where using attach with the stream argument set to False would raise an exception - changes from version 2.5.0: * Features + Added support for the squash parameter in APIClient.build and DockerClient.images.build. + When using API version 1.23 or above, load_image will now return a generator of progress as JSON dicts. + remove_image now returns the content of the API's response. * Bugfixes + Fixed an issue where the auto_remove parameter in DockerClient.containers.run was not taken into account. + Fixed a bug where .dockerignore patterns starting with a slash were ignored. + Fixed an issue with the handling of ** patterns in .dockerignore + Fixed a bug where building FROM a private Docker Hub image when not using a cred store would fail. + Fixed a bug where calling create_service or update_service with task_template as a dict would raise an exception. + Fixed the handling of TTY-enabled containers in attach and exec_run. + DockerClient.containers.run will no longer attempt to stream logs if the log driver doesn't support the operation. * Miscellaneous + Added extra requirements for better TLS support on some platforms. These can be installed or required through the docker[tls] notation. OBS-URL: https://build.opensuse.org/request/show/533199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=3
2017-10-11 10:39:13 +00:00
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-docker
Version: 4.1.0
Release: 0
Summary: Docker API Client
License: Apache-2.0
Group: System/Management
URL: https://github.com/docker/docker-py
Source0: https://github.com/docker/docker-py/archive/%{version}.tar.gz
BuildRequires: %{python_module docker-pycreds >= 0.4.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module paramiko >= 2.4.2}
Accepting request 533199 from home:apersaud:branches:devel:languages:python - specfile: * added obsoletes %oldpython - update to version 2.5.1: * Bugfixes + Fixed a bug where patterns ending with ** in .dockerignore would raise an exception + Fixed a bug where using attach with the stream argument set to False would raise an exception - changes from version 2.5.0: * Features + Added support for the squash parameter in APIClient.build and DockerClient.images.build. + When using API version 1.23 or above, load_image will now return a generator of progress as JSON dicts. + remove_image now returns the content of the API's response. * Bugfixes + Fixed an issue where the auto_remove parameter in DockerClient.containers.run was not taken into account. + Fixed a bug where .dockerignore patterns starting with a slash were ignored. + Fixed an issue with the handling of ** patterns in .dockerignore + Fixed a bug where building FROM a private Docker Hub image when not using a cred store would fail. + Fixed a bug where calling create_service or update_service with task_template as a dict would raise an exception. + Fixed the handling of TTY-enabled containers in attach and exec_run. + DockerClient.containers.run will no longer attempt to stream logs if the log driver doesn't support the operation. * Miscellaneous + Added extra requirements for better TLS support on some platforms. These can be installed or required through the docker[tls] notation. OBS-URL: https://build.opensuse.org/request/show/533199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=3
2017-10-11 10:39:13 +00:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 4.3.1}
BuildRequires: %{python_module pytest-cov >= 2.1.0}
BuildRequires: %{python_module pytest-timeout >= 1.2.1}
BuildRequires: %{python_module requests >= 2.20.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: %{python_module websocket-client >= 0.40.0}
Accepting request 533199 from home:apersaud:branches:devel:languages:python - specfile: * added obsoletes %oldpython - update to version 2.5.1: * Bugfixes + Fixed a bug where patterns ending with ** in .dockerignore would raise an exception + Fixed a bug where using attach with the stream argument set to False would raise an exception - changes from version 2.5.0: * Features + Added support for the squash parameter in APIClient.build and DockerClient.images.build. + When using API version 1.23 or above, load_image will now return a generator of progress as JSON dicts. + remove_image now returns the content of the API's response. * Bugfixes + Fixed an issue where the auto_remove parameter in DockerClient.containers.run was not taken into account. + Fixed a bug where .dockerignore patterns starting with a slash were ignored. + Fixed an issue with the handling of ** patterns in .dockerignore + Fixed a bug where building FROM a private Docker Hub image when not using a cred store would fail. + Fixed a bug where calling create_service or update_service with task_template as a dict would raise an exception. + Fixed the handling of TTY-enabled containers in attach and exec_run. + DockerClient.containers.run will no longer attempt to stream logs if the log driver doesn't support the operation. * Miscellaneous + Added extra requirements for better TLS support on some platforms. These can be installed or required through the docker[tls] notation. OBS-URL: https://build.opensuse.org/request/show/533199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=3
2017-10-11 10:39:13 +00:00
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-docker-pycreds >= 0.4.0
Requires: python-paramiko >= 2.4.2
Requires: python-requests >= 2.20.0
Requires: python-six >= 1.10.0
Requires: python-websocket-client >= 0.40.0
# docker-py got renamed to docker in 2017
Accepting request 533199 from home:apersaud:branches:devel:languages:python - specfile: * added obsoletes %oldpython - update to version 2.5.1: * Bugfixes + Fixed a bug where patterns ending with ** in .dockerignore would raise an exception + Fixed a bug where using attach with the stream argument set to False would raise an exception - changes from version 2.5.0: * Features + Added support for the squash parameter in APIClient.build and DockerClient.images.build. + When using API version 1.23 or above, load_image will now return a generator of progress as JSON dicts. + remove_image now returns the content of the API's response. * Bugfixes + Fixed an issue where the auto_remove parameter in DockerClient.containers.run was not taken into account. + Fixed a bug where .dockerignore patterns starting with a slash were ignored. + Fixed an issue with the handling of ** patterns in .dockerignore + Fixed a bug where building FROM a private Docker Hub image when not using a cred store would fail. + Fixed a bug where calling create_service or update_service with task_template as a dict would raise an exception. + Fixed the handling of TTY-enabled containers in attach and exec_run. + DockerClient.containers.run will no longer attempt to stream logs if the log driver doesn't support the operation. * Miscellaneous + Added extra requirements for better TLS support on some platforms. These can be installed or required through the docker[tls] notation. OBS-URL: https://build.opensuse.org/request/show/533199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=3
2017-10-11 10:39:13 +00:00
Obsoletes: python-docker-py < %{version}
Provides: python-docker-py = %{version}
BuildArch: noarch
%if 0%{?suse_version} < 1320
BuildRequires: %{oldpython}
BuildRequires: %{python_module backports.ssl_match_hostname >= 3.5}
BuildRequires: python3
%endif
%ifpython2
Requires: %{oldpython}-backports.ssl_match_hostname >= 3.5
Requires: %{oldpython}-ipaddress >= 1.0.16
%endif
Accepting request 533199 from home:apersaud:branches:devel:languages:python - specfile: * added obsoletes %oldpython - update to version 2.5.1: * Bugfixes + Fixed a bug where patterns ending with ** in .dockerignore would raise an exception + Fixed a bug where using attach with the stream argument set to False would raise an exception - changes from version 2.5.0: * Features + Added support for the squash parameter in APIClient.build and DockerClient.images.build. + When using API version 1.23 or above, load_image will now return a generator of progress as JSON dicts. + remove_image now returns the content of the API's response. * Bugfixes + Fixed an issue where the auto_remove parameter in DockerClient.containers.run was not taken into account. + Fixed a bug where .dockerignore patterns starting with a slash were ignored. + Fixed an issue with the handling of ** patterns in .dockerignore + Fixed a bug where building FROM a private Docker Hub image when not using a cred store would fail. + Fixed a bug where calling create_service or update_service with task_template as a dict would raise an exception. + Fixed the handling of TTY-enabled containers in attach and exec_run. + DockerClient.containers.run will no longer attempt to stream logs if the log driver doesn't support the operation. * Miscellaneous + Added extra requirements for better TLS support on some platforms. These can be installed or required through the docker[tls] notation. OBS-URL: https://build.opensuse.org/request/show/533199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=3
2017-10-11 10:39:13 +00:00
%ifpython2
Obsoletes: %{oldpython}-docker-py < %{version}
Provides: %{oldpython}-docker-py = %{version}
%endif
%python_subpackages
%description
A docker API client in Python
%prep
%setup -q -n docker-py-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests/unit
%files %{python_files}
%license LICENSE
%doc README.md
%dir %{python_sitelib}/docker
%dir %{python_sitelib}/docker-%{version}-*.egg-info
%{python_sitelib}/docker/*
%{python_sitelib}/docker*egg-info/*
%changelog