diff --git a/python-pydocstyle.spec b/python-pydocstyle.spec index f6f201f..3d0f12c 100644 --- a/python-pydocstyle.spec +++ b/python-pydocstyle.spec @@ -17,13 +17,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-pydocstyle Version: 4.0.1 Release: 0 Summary: Python docstring style checker License: MIT Group: Development/Languages/Python -Url: https://github.com/PyCQA/pydocstyle/ +URL: https://github.com/PyCQA/pydocstyle/ Source: https://github.com/PyCQA/pydocstyle/archive/%{version}.tar.gz#/pydocstyle-%{version}.tar.gz # Tests invoke pip and pycodestyle directly, when they should use sys.executable. # https://github.com/PyCQA/pydocstyle/pull/403 @@ -38,17 +39,12 @@ BuildRequires: %{python_module six > 1.10.0} BuildRequires: %{python_module snowballstemmer} BuildRequires: dos2unix BuildRequires: fdupes -BuildRequires: python-configparser BuildRequires: python-rpm-macros Requires: python-six > 1.10.0 Requires: python-snowballstemmer -%ifpython2 -Requires: python-configparser -%endif Provides: python-pep257 = %{version} Obsoletes: python-pep257 < %{version} BuildArch: noarch - %python_subpackages %description @@ -83,7 +79,7 @@ dos2unix %{buildroot}%{$python_sitelib}/pydocstyle/__main__.py %check export PYTHONPATH=$(pwd)/src -%python_exec -m pytest +%pytest %files %{python_files} %doc README.rst