- Add patch for sys-executable to not call python directly:
* sys-exec.patch - Refresh integration-tests-invocation.patch - Update to 4.0.1: * various bugfixes all around OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydocstyle?expand=0&rev=13
This commit is contained in:
parent
4991c37f73
commit
900d9ae49f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user