Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37740861
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-unittest-xml-reporting

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define oname unittest-xml-reporting

Name: python3-module-%oname
Version: 3.2.0
Release: alt1

Summary: unittest-based test runner with Ant/JUnit like XML reporting
License: BSD
Group: Development/Python3
Url: https://pypi.python.org/pypi/unittest-xml-reporting/
BuildArch: noarch

# https://github.com/xmlrunner/unittest-xml-reporting.git

Source: %name-%version.tar

Patch: python3.11-support.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-six python3-module-lxml

Requires: python3-module-django-tests

%py3_provides xmlrunner


%description
unittest-xml-reporting is a unittest test runner that can save test
results to XML files that can be consumed by a wide range of tools, such
as build systems, IDEs and continuous integration servers.

%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: %name = %EVR

%add_python3_self_prov_path %buildroot%python3_sitelibdir/xmlrunner/tests/

%description tests
unittest-xml-reporting is a unittest test runner that can save test
results to XML files that can be consumed by a wide range of tools, such
as build systems, IDEs and continuous integration servers.

This package contains tests for %oname.

%prep
%setup
%patch -p1

sed -i 's|#!.*python|&3|' $(find ./ -name '*.py')

%build
%python3_build_debug

%install
%python3_install

cp -fR tests/ %buildroot%python3_sitelibdir/xmlrunner

%check
%__python3 setup.py test

%files
%doc *.md
%python3_sitelibdir/xmlrunner/
%python3_sitelibdir/*.egg-info
%exclude %python3_sitelibdir/xmlrunner/tests

%files tests
%python3_sitelibdir/xmlrunner/tests

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin