forked from pool/python-docker
* Removed SSL version (`ssl_version`) and explicit hostname
check (`assert_hostname`) options (#3185)
* Python 3.7+ supports TLSv1.3 by default
* Websocket support is no longer included by default (#3123)
* Use `pip install docker[websockets]` to include `websocket-
client` dependency
* By default, `docker-py` hijacks the TCP connection and does
not use Websockets
* Websocket client is only required to use
`attach_socket(container, ws=True)`
* Python 3.7 no longer supported (reached end-of-life June
2023) (#3187)
* Python 3.12 support (#3185)
* Full `networking_config` support for `containers.create()`
* Replaces `network_driver_opt` (added in 6.1.0)
* Add `health()` property to container that returns status
(e.g. `unhealthy`)
* Add `pause` option to `container.commit()` (#3159)
* Add support for bind mount propagation (e.g. `rshared`,
`private`)
* Add support for `filters`, `keep_storage`, and `all` in
`prune_builds()` on API v1.39+ (#3192)
* Consistently return `docker.errors.NotFound` on 404 responses
* Validate tag format before push (#3191)
- Bump required version of pycreds to 0.4.0 (sync with requirements.txt)
- update to 3.7.0 (mandatory for latest docker-compose)
- add python-dockerpycreds dependency in the spec file
rebase hide_py_pckgmgmt.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker?expand=0&rev=54
75 lines
2.4 KiB
RPMSpec
75 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package python-docker
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-docker
|
|
Version: 7.0.0
|
|
Release: 0
|
|
Summary: A Python library for the Docker Engine API
|
|
License: Apache-2.0
|
|
URL: https://github.com/docker/docker-py
|
|
Source: https://files.pythonhosted.org/packages/source/d/docker/docker-%{version}.tar.gz
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools >= 45}
|
|
BuildRequires: %{python_module setuptools_scm >= 6.2}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module packaging >= 14.0}
|
|
BuildRequires: %{python_module paramiko >= 2.11.0}
|
|
BuildRequires: %{python_module pytest >= 7.1.2}
|
|
BuildRequires: %{python_module pytest-timeout >= 2.1.0}
|
|
BuildRequires: %{python_module requests >= 2.26.0}
|
|
BuildRequires: %{python_module setuptools >= 65.5.1}
|
|
BuildRequires: %{python_module urllib3 >= 2.0}
|
|
BuildRequires: %{python_module websocket-client >= 0.32.0}
|
|
# /SECTION
|
|
BuildRequires: fdupes
|
|
Requires: python-packaging >= 14.0
|
|
Requires: python-requests >= 2.26.0
|
|
Requires: python-urllib3 >= 1.26.0
|
|
Requires: python-websocket-client >= 0.32.0
|
|
Suggests: python-pywin32 >= 304
|
|
Suggests: python-paramiko >= 2.4.3
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
A Python library for the Docker Engine API.
|
|
|
|
%prep
|
|
%autosetup -p1 -n docker-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest tests/unit
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/docker
|
|
%{python_sitelib}/docker-%{version}.dist-info
|
|
|
|
%changelog
|