14
0
forked from pool/python-yapf

Accepting request 674779 from home:jayvdb:coala:python3-bears

- Remove optional dependency from BuildRequires as no tests fail
  or are skipped when it is missing.
- Remove tests from package
- Update from 0.24.0 to v0.26.0

OBS-URL: https://build.opensuse.org/request/show/674779
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2019-02-14 08:32:53 +00:00
committed by Git OBS Bridge
parent 72e392777a
commit 4b0acf56ca
4 changed files with 21 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-yapf
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-yapf
Version: 0.24.0
Version: 0.26.0
Release: 0
Summary: A formatter for Python code
License: Apache-2.0
@@ -28,7 +28,6 @@ Source: https://files.pythonhosted.org/packages/source/y/yapf/yapf-%{ver
BuildRequires: %{python_module nose}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-futures
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
@@ -59,6 +58,7 @@ be reformatted.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/yapf
%python_expand rm -r %{buildroot}%{$python_sitelib}/yapftests
%check
%python_expand nosetests-%{$python_bin_suffix}
@@ -73,6 +73,7 @@ be reformatted.
%license LICENSE
%doc README.rst CHANGELOG
%python_alternative %{_bindir}/yapf
%{python_sitelib}/*
%{python_sitelib}/yapf/
%{python_sitelib}/yapf-%{version}-py*.egg-info/
%changelog