Accepting request 483391 from devel:languages:python

- uninstall alternatives in %postun

- update for singlespec

- update to version 1.5.0:
  * Enable support for PEP 526 annotated assignments
    
- update to version 1.4.0:
  * Change formatting of ImportStarMessage to be consistent with
    other errors
  * Support PEP 498 "f-strings"
- update to version 1.3.0:
  * Fix PyPy2 Windows IntegrationTests
  * Check for duplicate dictionary keys
  * Fix TestMain tests on Windows
  * Fix "continue" and "break" checks ignoring py3.5's "async for" loop
- update to version 1.2.3:
  * Fix TypeError when processing relative imports
  
- update to version 1.2.2:
  * Avoid traceback when exception is del-ed in except
- update to version 1.2.1:
  * Fix false RedefinedWhileUnesed for submodule imports
- update to version 1.2.0:
  * Warn against reusing exception names after the except: block on
    Python 3
  * Improve the error messages for imports
- update to version 1.1.0:
  * main() can now accept arguments
  * the matrix-multiplication operator (@) is now supported

OBS-URL: https://build.opensuse.org/request/show/483391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyflakes?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2017-04-19 16:05:23 +00:00 committed by Git OBS Bridge
commit 5b74666c46
4 changed files with 71 additions and 29 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f39e33a4c03beead8774f005bd3ecf0c3f2f264fa0201de965fce0aff1d34263
size 35365

3
pyflakes-1.5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa0d4dff45c0cc2214ba158d29280f8fa1129f3e87858ef825930845146337f4
size 47526

View File

@ -1,3 +1,55 @@
-------------------------------------------------------------------
Wed Mar 29 13:53:04 UTC 2017 - jmatejek@suse.com
- uninstall alternatives in %postun
-------------------------------------------------------------------
Mon Feb 20 14:19:34 UTC 2017 - jmatejek@suse.com
- update for singlespec
-------------------------------------------------------------------
Wed Feb 15 08:46:26 UTC 2017 - kkaempf@suse.com
- update to version 1.5.0:
* Enable support for PEP 526 annotated assignments
- update to version 1.4.0:
* Change formatting of ImportStarMessage to be consistent with
other errors
* Support PEP 498 "f-strings"
- update to version 1.3.0:
* Fix PyPy2 Windows IntegrationTests
* Check for duplicate dictionary keys
* Fix TestMain tests on Windows
* Fix "continue" and "break" checks ignoring py3.5's "async for" loop
- update to version 1.2.3:
* Fix TypeError when processing relative imports
- update to version 1.2.2:
* Avoid traceback when exception is del-ed in except
- update to version 1.2.1:
* Fix false RedefinedWhileUnesed for submodule imports
- update to version 1.2.0:
* Warn against reusing exception names after the except: block on
Python 3
* Improve the error messages for imports
- update to version 1.1.0:
* main() can now accept arguments
* the matrix-multiplication operator (@) is now supported
* imports from __future__ are checked for validity
* fixes to doctest scope testing
* asserts against a tuple (which are always true) now emits a warning
* "import *" not at the module level on python3 emits a warning
* many kinds of SyntaxErrors not previously caught now are
* PEP 498 f-strings are checked
* and a few more sundry bugfixes
-------------------------------------------------------------------
Mon Aug 15 14:51:56 UTC 2016 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pyflakes
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -16,8 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyflakes
Version: 1.0.0
Version: 1.5.0
Release: 0
Url: https://launchpad.net/pyflakes
Summary: Passive checker of Python programs
@ -25,17 +26,15 @@ License: MIT
Group: Development/Languages/Python
Source: pyflakes-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# the pkg_resources module is required at runtime
Requires: python-setuptools
Requires(post): update-alternatives
Requires(preun): update-alternatives
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
Requires(postun): update-alternatives
BuildArch: noarch
%endif
%python_subpackages
%description
Pyflakes is program to analyze Python programs and detect various errors. It
@ -46,31 +45,22 @@ modules with side effects. It's also much faster.
%setup -q -n pyflakes-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Prepare for update-alternatives usage
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/pyflakes %{buildroot}%{_bindir}/pyflakes
%python_install
%python_clone -a %{buildroot}%{_bindir}/pyflakes
%post
%_sbindir/update-alternatives \
--install %{_bindir}/pyflakes pyflakes %{_bindir}/pyflakes-%{py_ver} 30
%python_install_alternative pyflakes
%preun
if [ $1 -eq 0 ] ; then
%_sbindir/update-alternatives --remove pyflakes %{_bindir}/pyflakes-%{py_ver}
fi
%postun
%python_uninstall_alternative pyflakes
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE NEWS.txt README.rst AUTHORS
%{_bindir}/pyflakes
%{_bindir}/pyflakes-%{py_ver}
%ghost %{_sysconfdir}/alternatives/pyflakes
%python_alternative %{_bindir}/pyflakes
%{python_sitelib}/pyflakes/
%{python_sitelib}/pyflakes-%{version}-py*.egg-info