forked from pool/python-yapf
- Version update to 0.23.0:
* Many changes to behaviour based on CHANGELOG * Add various documents/license to distributed tarball OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
84a20ed3dc
commit
5395c2346c
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 29 11:37:58 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Version update to 0.23.0:
|
||||||
|
* Many changes to behaviour based on CHANGELOG
|
||||||
|
* Add various documents/license to distributed tarball
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 4 11:06:23 UTC 2018 - jengelh@inai.de
|
Sun Mar 4 11:06:23 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
|||||||
@@ -17,30 +17,25 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
|
||||||
Name: python-yapf
|
Name: python-yapf
|
||||||
Version: 0.19.0
|
Version: 0.23.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A formatter for Python code
|
Summary: A formatter for Python code
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/google/yapf
|
URL: https://github.com/google/yapf
|
||||||
Source: https://files.pythonhosted.org/packages/source/y/yapf/yapf-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/y/yapf/yapf-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module nose}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: %{python_module nose}
|
|
||||||
BuildRequires: python-futures
|
BuildRequires: python-futures
|
||||||
%endif
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Recommends: python-futures
|
Recommends: python-futures
|
||||||
%endif
|
%endif
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -65,10 +60,8 @@ be reformatted.
|
|||||||
|
|
||||||
%python_clone -a %{buildroot}%{_bindir}/yapf
|
%python_clone -a %{buildroot}%{_bindir}/yapf
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
%python_expand nosetests-%{$python_bin_suffix}
|
%python_expand nosetests-%{$python_bin_suffix}
|
||||||
%endif
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative yapf
|
%python_install_alternative yapf
|
||||||
@@ -77,8 +70,8 @@ be reformatted.
|
|||||||
%python_uninstall_alternative yapf
|
%python_uninstall_alternative yapf
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst CHANGELOG
|
||||||
%python_alternative %{_bindir}/yapf
|
%python_alternative %{_bindir}/yapf
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:701b076a4916e3cfbba345e0297dcd54a02fd0fdcae1f43346f8a043c3bbd052
|
|
||||||
size 120638
|
|
||||||
3
yapf-0.23.0.tar.gz
Normal file
3
yapf-0.23.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:330632d2592e67571ef2c113fe6f5802e2fa5d657448755d5546eea00693dc31
|
||||||
|
size 159301
|
||||||
Reference in New Issue
Block a user