Skip to content

Commit

Permalink
Merge pull request #225 from yselkowitz/main
Browse files Browse the repository at this point in the history
spec: avoid coverage and tox dependencies
  • Loading branch information
Honny1 authored Jan 30, 2024
2 parents 60ac886 + e048ae5 commit ae91b05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions openscap-report.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Source0: https://github.com/OpenSCAP/%{name}/releases/download/v%{version
BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme

Expand All @@ -34,7 +35,9 @@ human-readable reports from SCAP XCCDF and ARF results.}


%generate_buildrequires
%pyproject_buildrequires -t
%pyproject_buildrequires
# test requirement listed only in tox.ini
echo "%{py3_dist jsonschema}"


%build
Expand All @@ -50,7 +53,8 @@ install -m 0644 -Dt %{buildroot}%{_mandir}/man1 _build_docs/oscap-report.1


%check
%tox
# test_store_file fails with FileNotFoundError: [Errno 2] No such file or directory: '/tmp/oscap-report-tests_result.html'
%pytest -k "not test_store_file"

%files -f %{pyproject_files}
%{_mandir}/man1/oscap-report.*
Expand Down

0 comments on commit ae91b05

Please sign in to comment.