Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37683165
en ru br
ALT Linux repositórios
S:3.2.0-alt1

Group :: Development/Python3
RPM: python3-module-unittest-xml-reporting

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e 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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009