Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
infoserver
python-docker-py
python-docker-py.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-docker-py.spec of Package python-docker-py
%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 # disable debug package cause archful %global debug_package %{nil} %global owner docker %global project docker-py %global commit %{version} Name: python-docker-py Version: 2.0.2 Release: 1%{?dist} Summary: An API client for docker written in Python License: ASL 2.0 URL: https://github.com/%{owner}/%{project}/ Source0: https://github.com/%{owner}/%{project}/archive/%{commit}/%{project}-%{commit}.tar.gz Patch1: unpin-test-requirements.patch Patch2: remote-inspection.patch Patch3: setup-Neuter-extras_require-that-doesn-t-work-on-Cen.patch BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools %if %{with tests} BuildRequires: python-mock >= 1.0.1 BuildRequires: python-flake8 >= 2.4.1 BuildRequires: python-pytest-cov >= 2.1.0 BuildRequires: pytest >= 2.7.2 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 %if 0%{?fedora} >= 22 BuildRequires: python-requests >= 2.5.2 %else BuildRequires: python-requests %endif %description %{summary} %package -n python2-docker-py %if 0%{?fedora} >= 22 Requires: python-requests >= 2.5.2 %else Requires: python-requests %endif 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 Summary: An API client for docker written in Python 2 %{?python_provide:%python_provide python2-docker-py} Provides: python2-docker_py Provides: python2-docker %description -n python2-docker-py A Python 2 interface to Docker %if %{with python3} %package -n python3-docker-py BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with tests} BuildRequires: python3-mock >= 1.0.1 BuildRequires: python3-pytest >= 2.7.2 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 >= 2.5.2 Requires: python3-six >= 1.3.0 Requires: python3-docker-pycreds Summary: An API client for docker written in Python 3 %{?python_provide:%python_provide python3-docker-py} Provides: python3-docker_py Provides: python3-docker %description -n python3-docker-py A Python 3 interface to Docker %endif # with_python3 %prep %autosetup -n %{project}-%{commit} -p 1 %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-docker-py %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-docker-py %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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor