* Bugs
+ Properly escape values coming from env_files
+ Sync compose-schemas with upstream (docker/cli)
+ Remove None entries on exec command
+ Add python-dotenv to delegate .env file processing
+ Don't adjust output on terminal width when piped into another command
+ Show an error message when version attribute is malformed
+ Fix HTTPS connection when DOCKER_HOST is remote
* Bugfixes
+ Fix CI script to enforce the minimal MacOS version to 10.11
+ Fix docker-compose exec for keys with no value
+ Fix CI script to enforce the compilation with Python3
+ Fix binary's sha256 in the release page
+ Validate version format on formats 2+
+ Assume infinite terminal width when not running in a terminal
* Features
+ Add docker context support
+ Add missing test dependency ddt to setup.py
+ Add --attach-dependencies to command up for attaching to dependencies
+ Allow compatibility option with COMPOSE_COMPATIBILITY environment variable
+ Bump Pytest to 5.3.4 and add refactor compatibility with new version
+ Bump OpenSSL from 1.1.1f to 1.1.1g
+ Bump docker-py from 4.2.0 to 4.2.1
+ Bump OpenSSL from 1.1.1d to 1.1.1f
+ Add 3.8 compose version
+ Allow compatibility option with COMPOSE_COMPATIBILITY environment variable
+ Bump PyInstaller from 3.5 to 3.6
+ Bump pysocks from 1.6.7 to 1.7.1
+ Bump websocket-client from 0.32.0 to 0.57.0
+ Bump urllib3 from 1.24.2 to 1.25.7
+ Bump jsonschema from 3.0.1 to 3.2.0
+ Bump PyYAML from 4.2b1 to 5.3
+ Bump certifi from 2017.4.17 to 2019.11.28
+ Bump coverage from 4.5.4 to 5.0.3
+ Bump paramiko from 2.6.0 to 2.7.1
+ Bump cached-property from 1.3.0 to 1.5.1
+ Bump minor Linux and MacOSX dependencies
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-docker-compose?expand=0&rev=27
127 lines
4.4 KiB
RPMSpec
127 lines
4.4 KiB
RPMSpec
#
|
|
# spec file for package python-docker-compose
|
|
#
|
|
# Copyright (c) 2020 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%bcond_without python2
|
|
Name: python-docker-compose
|
|
Version: 1.26.0
|
|
Release: 0
|
|
Summary: Tool to define and run complex applications using Docker
|
|
License: Apache-2.0
|
|
Group: System/Management
|
|
URL: https://pypi.python.org/pypi/docker-compose
|
|
Source0: https://files.pythonhosted.org/packages/source/d/docker-compose/docker-compose-%{version}.tar.gz
|
|
Patch0: no-restrict-upper.patch
|
|
BuildRequires: %{python_module PyYAML >= 3.10}
|
|
BuildRequires: %{python_module cached-property >= 1.2.0}
|
|
BuildRequires: %{python_module ddt >= 1.2.2}
|
|
BuildRequires: %{python_module distro >= 1.5.0}
|
|
BuildRequires: %{python_module docker >= 3.7.0}
|
|
BuildRequires: %{python_module dockerpty >= 0.4.1}
|
|
BuildRequires: %{python_module docopt >= 0.6.1}
|
|
BuildRequires: %{python_module jsonschema >= 2.6}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dotenv >= 0.13.0}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six >= 1.3.0}
|
|
BuildRequires: %{python_module texttable >= 0.9.1}
|
|
BuildRequires: %{python_module websocket-client >= 0.32.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: docker
|
|
Requires: python-PySocks >= 1.5.6
|
|
Requires: python-PyYAML >= 3.10
|
|
Requires: python-cached-property >= 1.3.0
|
|
Requires: python-chardet >= 3.0.4
|
|
Requires: python-distro >= 1.5.0
|
|
Requires: python-docker >= 3.7.0
|
|
Requires: python-docker-pycreds >= 0.3.0
|
|
Requires: python-dockerpty >= 0.4.1
|
|
Requires: python-docopt >= 0.6.2
|
|
Requires: python-idna >= 2.5
|
|
Requires: python-jsonschema >= 2.6.0
|
|
Requires: python-python-dotenv >= 0.13.0
|
|
Requires: python-requests >= 2.20.0
|
|
Requires: python-six >= 1.3.0
|
|
Requires: python-texttable >= 0.9.1
|
|
Requires: python-websocket-client >= 0.32.0
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
BuildArch: noarch
|
|
# This is py3 only as we have the binary just there
|
|
%ifpython3
|
|
Provides: docker-compose = %{version}
|
|
Obsoletes: docker-compose < %{version}
|
|
%endif
|
|
%if %{with python2}
|
|
BuildRequires: python2-backports.shutil_get_terminal_size >= 1.0.0
|
|
BuildRequires: python2-backports.ssl_match_hostname >= 3.5
|
|
BuildRequires: python2-enum34 >= 1.0.4
|
|
BuildRequires: python2-ipaddress >= 1.0.16
|
|
BuildRequires: python2-mock >= 1.0.1
|
|
BuildRequires: python2-subprocess32 >= 3.5.4
|
|
%endif
|
|
%ifpython2
|
|
Requires: python-backports.shutil_get_terminal_size >= 1.0.0
|
|
Requires: python-backports.ssl_match_hostname >= 3.5
|
|
Requires: python-enum34 >= 1.0.4
|
|
Requires: python-ipaddress >= 1.0.16
|
|
Requires: python-subprocess32 >= 3.5.4
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Compose is a tool for defining and running complex applications with Docker.
|
|
With Compose, you define a multi-container application in a single file, then
|
|
spin your application up in a single command which does everything that needs
|
|
to be done to get it running.
|
|
|
|
Compose is great for development environments, staging servers, and CI. We
|
|
don't recommend that you use it in production yet.
|
|
|
|
Previously known as Fig.
|
|
|
|
%prep
|
|
%setup -q -n docker-compose-%{version}
|
|
%patch0 -p1
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/docker-compose
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest tests/unit
|
|
|
|
%post
|
|
%python_install_alternative docker-compose
|
|
|
|
%postun
|
|
%python_uninstall_alternative docker-compose
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md CHANGES.md SWARM.md
|
|
%python_alternative %{_bindir}/docker-compose
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|