- 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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define skip_python2 1
|
||||||
Name: python-pydocstyle
|
Name: python-pydocstyle
|
||||||
Version: 4.0.1
|
Version: 4.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python docstring style checker
|
Summary: Python docstring style checker
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
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
|
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.
|
# Tests invoke pip and pycodestyle directly, when they should use sys.executable.
|
||||||
# https://github.com/PyCQA/pydocstyle/pull/403
|
# https://github.com/PyCQA/pydocstyle/pull/403
|
||||||
@ -38,17 +39,12 @@ BuildRequires: %{python_module six > 1.10.0}
|
|||||||
BuildRequires: %{python_module snowballstemmer}
|
BuildRequires: %{python_module snowballstemmer}
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-configparser
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-six > 1.10.0
|
Requires: python-six > 1.10.0
|
||||||
Requires: python-snowballstemmer
|
Requires: python-snowballstemmer
|
||||||
%ifpython2
|
|
||||||
Requires: python-configparser
|
|
||||||
%endif
|
|
||||||
Provides: python-pep257 = %{version}
|
Provides: python-pep257 = %{version}
|
||||||
Obsoletes: python-pep257 < %{version}
|
Obsoletes: python-pep257 < %{version}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -83,7 +79,7 @@ dos2unix %{buildroot}%{$python_sitelib}/pydocstyle/__main__.py
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
export PYTHONPATH=$(pwd)/src
|
export PYTHONPATH=$(pwd)/src
|
||||||
%python_exec -m pytest
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user