Группа :: Development/Python3
Пакет: python3-module-testresources
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%global pypi_name testresources
%def_disable check
Name: python3-module-%{pypi_name}
Version: 2.0.1
Release: alt3
Summary: Testresources, a pyunit extension for managing expensive test resources
Group: Development/Python3
License: Apache-2.0 and BSD and GPLv2+
# file testresources/tests/TestUtil.py is GPLv2+
URL: https://launchpad.net/testresources
Source0: %{name}-%{version}.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-pbr >= 1.8
BuildRequires: python3-module-testtools
BuildRequires: python3-module-fixtures
%description
testresources: extensions to python unittest to allow declarative use
of resources by test cases.
%prep
%setup
# Remove bundled egg-info
rm -rf lib/%{pypi_name}.egg-info
%build
%python3_build
%install
%python3_install
%check
%{__python3} setup.py test
%files
%doc README.rst NEWS doc
%{python3_sitelibdir}/%{pypi_name}
%{python3_sitelibdir}/%{pypi_name}-%{version}-py%_python3_version.egg-info
%changelog
…
Полный changelog можно просмотреть здесь
%def_disable check
Name: python3-module-%{pypi_name}
Version: 2.0.1
Release: alt3
Summary: Testresources, a pyunit extension for managing expensive test resources
Group: Development/Python3
License: Apache-2.0 and BSD and GPLv2+
# file testresources/tests/TestUtil.py is GPLv2+
URL: https://launchpad.net/testresources
Source0: %{name}-%{version}.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-pbr >= 1.8
BuildRequires: python3-module-testtools
BuildRequires: python3-module-fixtures
%description
testresources: extensions to python unittest to allow declarative use
of resources by test cases.
%prep
%setup
# Remove bundled egg-info
rm -rf lib/%{pypi_name}.egg-info
%build
%python3_build
%install
%python3_install
%check
%{__python3} setup.py test
%files
%doc README.rst NEWS doc
%{python3_sitelibdir}/%{pypi_name}
%{python3_sitelibdir}/%{pypi_name}-%{version}-py%_python3_version.egg-info
%changelog
…
Полный changelog можно просмотреть здесь