diff options
Diffstat (limited to 'python-colcon-coveragepy-result.spec')
-rw-r--r-- | python-colcon-coveragepy-result.spec | 227 |
1 files changed, 227 insertions, 0 deletions
diff --git a/python-colcon-coveragepy-result.spec b/python-colcon-coveragepy-result.spec new file mode 100644 index 0000000..8a7103e --- /dev/null +++ b/python-colcon-coveragepy-result.spec @@ -0,0 +1,227 @@ +%global _empty_manifest_terminate_build 0 +Name: python-colcon-coveragepy-result +Version: 0.0.8 +Release: 1 +Summary: colcon extension for collecting coverage.py results +License: Apache License, Version 2.0 +URL: https://colcon.readthedocs.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/07/f5/918fdf870b7ffad6c6d0fee70bb2cd2137f1c79ae9063e8098c6d7c5ff62/colcon-coveragepy-result-0.0.8.tar.gz +BuildArch: noarch + +Requires: python3-colcon-core +Requires: python3-coverage + +%description +# colcon-coveragepy-result + +[](https://pypi.org/project/colcon-coveragepy-result/) +[](https://github.com/colcon/colcon-coveragepy-result/actions) + +A [colcon](https://colcon.readthedocs.io/) extension for collecting [coverage.py](https://coverage.readthedocs.io/en/stable/) results. + +## Usage + +1. Build packages with coverage, e.g. using a [colcon mixin](https://colcon.readthedocs.io/en/released/reference/verb/mixin.html) for [coverage](https://github.com/colcon/colcon-mixin-repository/blob/master/coverage.mixin) + ```shell + $ colcon build --mixin coverage-pytest + ``` +1. Test packages with coverage, again using a mixin + ```shell + $ colcon test --mixin coverage-pytest + ``` +1. Collect coverage results + ```shell + $ colcon coveragepy-result + ``` +1. Open HTML report, which by default is under `coveragepy/htmlcov/` + + +## Options + +* Print coverage reports for each package and a combined coverage report of all packages + ```shell + $ colcon coveragepy-result --verbose + ``` +* Provide additional arguments for reports generation, e.g. to show lines without coverage + ```shell + $ colcon coveragepy-result --coverage-report-args -m + ``` +* Provide additional arguments for HTML report generation, e.g. to skip files with no code + ```shell + $ colcon coveragepy-result --coverage-html-args --skip-empty + ``` +* For more options + ```shell + $ colcon coveragepy-result --help + ``` + +## Contributing + +See: + +* [*Contributions*](https://colcon.readthedocs.io/en/released/developer/contribution.html) for guidelines +* [*Bootstrap from source*](https://colcon.readthedocs.io/en/released/developer/bootstrap.html) to test the package from source + + + + +%package -n python3-colcon-coveragepy-result +Summary: colcon extension for collecting coverage.py results +Provides: python-colcon-coveragepy-result +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-colcon-coveragepy-result +# colcon-coveragepy-result + +[](https://pypi.org/project/colcon-coveragepy-result/) +[](https://github.com/colcon/colcon-coveragepy-result/actions) + +A [colcon](https://colcon.readthedocs.io/) extension for collecting [coverage.py](https://coverage.readthedocs.io/en/stable/) results. + +## Usage + +1. Build packages with coverage, e.g. using a [colcon mixin](https://colcon.readthedocs.io/en/released/reference/verb/mixin.html) for [coverage](https://github.com/colcon/colcon-mixin-repository/blob/master/coverage.mixin) + ```shell + $ colcon build --mixin coverage-pytest + ``` +1. Test packages with coverage, again using a mixin + ```shell + $ colcon test --mixin coverage-pytest + ``` +1. Collect coverage results + ```shell + $ colcon coveragepy-result + ``` +1. Open HTML report, which by default is under `coveragepy/htmlcov/` + + +## Options + +* Print coverage reports for each package and a combined coverage report of all packages + ```shell + $ colcon coveragepy-result --verbose + ``` +* Provide additional arguments for reports generation, e.g. to show lines without coverage + ```shell + $ colcon coveragepy-result --coverage-report-args -m + ``` +* Provide additional arguments for HTML report generation, e.g. to skip files with no code + ```shell + $ colcon coveragepy-result --coverage-html-args --skip-empty + ``` +* For more options + ```shell + $ colcon coveragepy-result --help + ``` + +## Contributing + +See: + +* [*Contributions*](https://colcon.readthedocs.io/en/released/developer/contribution.html) for guidelines +* [*Bootstrap from source*](https://colcon.readthedocs.io/en/released/developer/bootstrap.html) to test the package from source + + + + +%package help +Summary: Development documents and examples for colcon-coveragepy-result +Provides: python3-colcon-coveragepy-result-doc +%description help +# colcon-coveragepy-result + +[](https://pypi.org/project/colcon-coveragepy-result/) +[](https://github.com/colcon/colcon-coveragepy-result/actions) + +A [colcon](https://colcon.readthedocs.io/) extension for collecting [coverage.py](https://coverage.readthedocs.io/en/stable/) results. + +## Usage + +1. Build packages with coverage, e.g. using a [colcon mixin](https://colcon.readthedocs.io/en/released/reference/verb/mixin.html) for [coverage](https://github.com/colcon/colcon-mixin-repository/blob/master/coverage.mixin) + ```shell + $ colcon build --mixin coverage-pytest + ``` +1. Test packages with coverage, again using a mixin + ```shell + $ colcon test --mixin coverage-pytest + ``` +1. Collect coverage results + ```shell + $ colcon coveragepy-result + ``` +1. Open HTML report, which by default is under `coveragepy/htmlcov/` + + +## Options + +* Print coverage reports for each package and a combined coverage report of all packages + ```shell + $ colcon coveragepy-result --verbose + ``` +* Provide additional arguments for reports generation, e.g. to show lines without coverage + ```shell + $ colcon coveragepy-result --coverage-report-args -m + ``` +* Provide additional arguments for HTML report generation, e.g. to skip files with no code + ```shell + $ colcon coveragepy-result --coverage-html-args --skip-empty + ``` +* For more options + ```shell + $ colcon coveragepy-result --help + ``` + +## Contributing + +See: + +* [*Contributions*](https://colcon.readthedocs.io/en/released/developer/contribution.html) for guidelines +* [*Bootstrap from source*](https://colcon.readthedocs.io/en/released/developer/bootstrap.html) to test the package from source + + + + +%prep +%autosetup -n colcon-coveragepy-result-0.0.8 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-colcon-coveragepy-result -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.8-1 +- Package Spec generated |