From b1f482daa850e73c3a1bae14b5c7e90c59df035c Mon Sep 17 00:00:00 2001 From: Tadej Janež Date: May 19 2023 20:49:26 +0000 Subject: Explain why tests are not run via Tox --- diff --git a/python-pydocstyle.spec b/python-pydocstyle.spec index 4e7d436..c450c55 100644 --- a/python-pydocstyle.spec +++ b/python-pydocstyle.spec @@ -57,8 +57,13 @@ sed -i '\|/usr/bin/env|d' build/lib/pydocstyle/__main__.py %check -# Run main Pytest tests (skip linting with pep8 as discussed in -# https://pagure.io/packaging-committee/issue/909). +# NOTE: We are not running tests with Tox since upstream uses a single +# environment where it runs the actual tests along with all code checking and +# linting tools (mypy, black, isort). +# FPC has recommened disabling code linting and test coverage metrics in %%check +# in https://pagure.io/packaging-committee/issue/909. + +# Run Pytest tests. # Disable "install_package" fixure for integration tests since we want the # tests to be run against the system-installed version of the package. @@ -84,6 +89,7 @@ sed -E -i 's|"python(2\|3)?( -m pydocstyle)|"%{__python3}\2|' \ - Introduce %%_description to avoid %%description duplication - Use the new automatic build-time dependency generator - Use new %%{pyproject_*} macros +- Explain why tests are not run via Tox * Fri Jan 20 2023 Fedora Release Engineering - 6.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild