Accepting request 566730 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/566730 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyflakes?expand=0&rev=21
This commit is contained in:
commit
3c572d2ff8
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 17 02:11:04 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement tests
|
||||||
|
- Fix source and URL
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 24 21:39:36 UTC 2017 - arun@gmx.de
|
Sun Sep 24 21:39:36 UTC 2017 - arun@gmx.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyflakes
|
# spec file for package python-pyflakes
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,16 +17,17 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without test
|
||||||
Name: python-pyflakes
|
Name: python-pyflakes
|
||||||
Version: 1.6.0
|
Version: 1.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://launchpad.net/pyflakes
|
Url: https://github.com/PyCQA/pyflakes
|
||||||
Summary: Passive checker of Python programs
|
Summary: Passive checker of Python programs
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: pyflakes-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pyflakes/pyflakes-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# the pkg_resources module is required at runtime
|
# the pkg_resources module is required at runtime
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
@ -49,8 +50,14 @@ modules with side effects. It's also much faster.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/pyflakes/
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyflakes
|
%python_clone -a %{buildroot}%{_bindir}/pyflakes
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
|
%check
|
||||||
|
%python_exec setup.py test
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative pyflakes
|
%python_install_alternative pyflakes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user