Группа :: Other
Пакет: python3-module-openshift
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define modulename openshift
Name: python3-module-%modulename
Version: 0.13.1
Release: alt2
Summary: OpenShift python client
License: Apache-2.0
Group: Other
Url: https://github.com/openshift/openshift-restclient-python
Vcs: https://github.com/openshift/openshift-restclient-python.git
BuildArch: noarch
Packager: Andrew A. Vasilyev <andy at altlinux.org>
Source: %modulename-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools python3-module-flake8 pytest3 python3-module-openshift
%description
Python client for the Kubernetes and OpenShift APIs.
%prep
%setup -n %modulename-%version
sed -i -e 's/pytest/pytest3/' Makefile tox.ini
# Remove unknown options
sed -i -e 's/--cov-append/--import-mode=append/' -e '/--cov-report=html/d' -e '/--cov=openshift/d' setup.cfg
rm -f test/unit/test_diff.py
# No kubernetes here
sed -i -e 's/ test-integration$//' Makefile
%build
%python3_build
%install
%python3_install
rm -rf %buildroot/usr/requirements.txt
%check
make test PYTHON=%__python3
%files
%doc *.md LICENSE *.txt
%python3_sitelibdir/*
%changelog
…
Полный changelog можно просмотреть здесь
Name: python3-module-%modulename
Version: 0.13.1
Release: alt2
Summary: OpenShift python client
License: Apache-2.0
Group: Other
Url: https://github.com/openshift/openshift-restclient-python
Vcs: https://github.com/openshift/openshift-restclient-python.git
BuildArch: noarch
Packager: Andrew A. Vasilyev <andy at altlinux.org>
Source: %modulename-%version.tar
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-setuptools python3-module-flake8 pytest3 python3-module-openshift
%description
Python client for the Kubernetes and OpenShift APIs.
%prep
%setup -n %modulename-%version
sed -i -e 's/pytest/pytest3/' Makefile tox.ini
# Remove unknown options
sed -i -e 's/--cov-append/--import-mode=append/' -e '/--cov-report=html/d' -e '/--cov=openshift/d' setup.cfg
rm -f test/unit/test_diff.py
# No kubernetes here
sed -i -e 's/ test-integration$//' Makefile
%build
%python3_build
%install
%python3_install
rm -rf %buildroot/usr/requirements.txt
%check
make test PYTHON=%__python3
%files
%doc *.md LICENSE *.txt
%python3_sitelibdir/*
%changelog
…
Полный changelog можно просмотреть здесь