diff --git a/pyflakes-0.9.2.tar.gz b/pyflakes-0.9.2.tar.gz deleted file mode 100644 index f2df07a..0000000 --- a/pyflakes-0.9.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:02691c23ce699f252874b7c27f14cf26e3d4e82b58e5d584f000b7ab5be36a5f -size 34785 diff --git a/pyflakes-1.0.0.tar.gz b/pyflakes-1.0.0.tar.gz new file mode 100644 index 0000000..043a8a8 --- /dev/null +++ b/pyflakes-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f39e33a4c03beead8774f005bd3ecf0c3f2f264fa0201de965fce0aff1d34263 +size 35365 diff --git a/python-pyflakes.changes b/python-pyflakes.changes index 56d10b2..a999efe 100644 --- a/python-pyflakes.changes +++ b/python-pyflakes.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Jan 13 09:57:59 UTC 2016 - toddrme2178@gmail.com + +- update to version 1.0.0: + * Python 3.5 support. async/await statements in particular. + * test_api.py works on Windows now + * Eliminated a false UnusedImport warning when the name has been + declared "global" +- Implement update-alternatives. + ------------------------------------------------------------------- Tue Nov 10 22:31:39 UTC 2015 - opensuse@cboltz.de diff --git a/python-pyflakes.spec b/python-pyflakes.spec index 4674653..6ff793a 100644 --- a/python-pyflakes.spec +++ b/python-pyflakes.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyflakes # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,7 +17,7 @@ Name: python-pyflakes -Version: 0.9.2 +Version: 1.0.0 Release: 0 Url: https://launchpad.net/pyflakes Summary: Passive checker of Python programs @@ -29,13 +29,13 @@ BuildRequires: python-devel BuildRequires: python-setuptools # the pkg_resources module is required at runtime Requires: python-setuptools -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +Requires(post): update-alternatives +Requires(postun): 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 BuildArch: noarch %endif -%endif -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description Pyflakes is program to analyze Python programs and detect various errors. It @@ -51,11 +51,29 @@ python setup.py 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 +# create a dummy target for /etc/alternatives/pyflakes +touch %{buildroot}%{_sysconfdir}/alternatives/pyflakes + +%post +"%_sbindir/update-alternatives" \ + --install %{_bindir}/pyflakes pyflakes %{_bindir}/pyflakes-%{py_ver} 30 + +%postun +if [ $1 -eq 0 ] ; then + "%_sbindir/update-alternatives" --remove pyflakes %{_bindir}/pyflakes-%{py_ver} +fi + %files %defattr(-,root,root,-) %doc LICENSE NEWS.txt README.rst AUTHORS +%{_bindir}/pyflakes +%{_bindir}/pyflakes-%{py_ver} +%ghost %{_sysconfdir}/alternatives/pyflakes %{python_sitelib}/pyflakes/ %{python_sitelib}/pyflakes-%{version}-py*.egg-info -%{_bindir}/pyflakes %changelog