commit python-autoflake for openSUSE:Factory
Hello community, here is the log from the commit of package python-autoflake for openSUSE:Factory checked in at 2020-09-07 21:35:05 Comparing /work/SRC/openSUSE:Factory/python-autoflake (Old) and /work/SRC/openSUSE:Factory/.python-autoflake.new.3399 (New) Package is "python-autoflake" Mon Sep 7 21:35:05 2020 rev:6 rq:832643 version:1.4 Changes: --- /work/SRC/openSUSE:Factory/python-autoflake/python-autoflake.changes 2019-09-16 10:50:36.195170672 +0200 +++ /work/SRC/openSUSE:Factory/.python-autoflake.new.3399/python-autoflake.changes 2020-09-07 21:35:31.745385570 +0200 @@ -1,0 +2,7 @@ +Mon Aug 31 04:16:47 UTC 2020 - Steve Kowalik + +- Update to 1.4: + * No upstream changelog +- Switch from setup.py test to pytest + +--- Old: autoflake-1.3.1.tar.gz New: autoflake-1.4.tar.gz Other differences: -- ++ python-autoflake.spec ++ --- /var/tmp/diff_new_pack.I9S9Jj/_old 2020-09-07 21:35:33.429386350 +0200 +++ /var/tmp/diff_new_pack.I9S9Jj/_new 2020-09-07 21:35:33.429386350 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-autoflake # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,13 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-autoflake -Version:1.3.1 +Version:1.4 Release:0 Summary:Program to removes unused Python imports and variables License:MIT -Group: Development/Languages/Python URL:https://github.com/myint/autoflake Source: https://files.pythonhosted.org/packages/source/a/autoflake/autoflake-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -63,7 +63,7 @@ %check export $LANG=en_US.UTF-8 -%python_exec setup.py test +%pytest %post %python_install_alternative autoflake ++ autoflake-1.3.1.tar.gz -> autoflake-1.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.3.1/AUTHORS.rst new/autoflake-1.4/AUTHORS.rst --- old/autoflake-1.3.1/AUTHORS.rst 2019-06-02 17:57:42.0 +0200 +++ new/autoflake-1.4/AUTHORS.rst 2019-08-24 19:44:29.0 +0200 @@ -13,3 +13,4 @@ - Nobuhiro Kasai (https://github.com/sh4869) - James Curtin (https://github.com/jamescurtin) - Sargun Dhillon (https://github.com/sargun) +- Anton Ogorodnikov (https://github.com/arxell) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.3.1/PKG-INFO new/autoflake-1.4/PKG-INFO --- old/autoflake-1.3.1/PKG-INFO2019-08-04 17:14:15.0 +0200 +++ new/autoflake-1.4/PKG-INFO 2020-08-23 03:20:53.520906700 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: autoflake -Version: 1.3.1 +Version: 1.4 Summary: Removes unused imports and unused variables Home-page: https://github.com/myint/autoflake Author: Steven Myint diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.3.1/autoflake.egg-info/PKG-INFO new/autoflake-1.4/autoflake.egg-info/PKG-INFO --- old/autoflake-1.3.1/autoflake.egg-info/PKG-INFO 2019-08-04 17:14:15.0 +0200 +++ new/autoflake-1.4/autoflake.egg-info/PKG-INFO 2020-08-23 03:20:53.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: autoflake -Version: 1.3.1 +Version: 1.4 Summary: Removes unused imports and unused variables Home-page: https://github.com/myint/autoflake Author: Steven Myint diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.3.1/autoflake.py new/autoflake-1.4/autoflake.py --- old/autoflake-1.3.1/autoflake.py2019-08-04 17:13:52.0 +0200 +++ new/autoflake-1.4/autoflake.py 2020-08-23 03:19:47.0 +0200 @@ -32,9 +32,11 @@ import distutils.sysconfig import fnmatch import io +import logging import os import re import signal +import string import sys import tokenize @@ -43,9 +45,12 @@ import pyflakes.reporter -__version__ = '1.3.1' +__version__ = '1.4' +_LOGGER = logging.getLogger('autoflake') +_LOGGER.propagate = False + ATOMS = frozenset([tokenize.NAME, tokenize.NUMBER, tokenize.STRING]) EXCEPT_REGEX = re.compile(r'^\s*except [\s,()\w]+ as \w+:$') @@ -69,17 +74,18 @@ def standard_paths(): """Yield paths to standard modules.""" for is_plat_spec in [True, False]: + +
commit python-autoflake for openSUSE:Factory
Hello community, here is the log from the commit of package python-autoflake for openSUSE:Factory checked in at 2019-09-16 10:50:29 Comparing /work/SRC/openSUSE:Factory/python-autoflake (Old) and /work/SRC/openSUSE:Factory/.python-autoflake.new.7948 (New) Package is "python-autoflake" Mon Sep 16 10:50:29 2019 rev:5 rq:730690 version:1.3.1 Changes: --- /work/SRC/openSUSE:Factory/python-autoflake/python-autoflake.changes 2019-05-16 22:11:09.542225209 +0200 +++ /work/SRC/openSUSE:Factory/.python-autoflake.new.7948/python-autoflake.changes 2019-09-16 10:50:36.195170672 +0200 @@ -1,0 +2,6 @@ +Fri Sep 13 11:32:10 UTC 2019 - Tomáš Chvátal + +- Update to 1.3.1: + * no upstream changelog + +--- Old: autoflake-1.3.tar.gz New: autoflake-1.3.1.tar.gz Other differences: -- ++ python-autoflake.spec ++ --- /var/tmp/diff_new_pack.Uj3pZT/_old 2019-09-16 10:50:36.979170571 +0200 +++ /var/tmp/diff_new_pack.Uj3pZT/_new 2019-09-16 10:50:36.979170571 +0200 @@ -17,28 +17,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-autoflake -Version:1.3 +Version:1.3.1 Release:0 -# for license file -%define tag 44b07bb9dab60a74cb5da0b67cc78b734763785c Summary:Program to removes unused Python imports and variables License:MIT Group: Development/Languages/Python -Url:https://github.com/myint/autoflake +URL:https://github.com/myint/autoflake Source: https://files.pythonhosted.org/packages/source/a/autoflake/autoflake-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module pyflakes >= 1.1.0} -%endif Requires: python-pyflakes >= 1.1.0 -BuildArch: noarch Requires(post): update-alternatives Requires(postun): update-alternatives - +BuildArch: noarch +BuildRequires: %{python_module pyflakes >= 1.1.0} %python_subpackages %description @@ -67,11 +61,9 @@ %python_clone -a %{buildroot}%{_bindir}/autoflake -%if %{with test} %check export $LANG=en_US.UTF-8 %python_exec setup.py test -%endif %post %python_install_alternative autoflake @@ -80,7 +72,6 @@ %python_uninstall_alternative autoflake %files %{python_files} -%defattr(-,root,root,-) %doc AUTHORS.rst README.rst %license LICENSE %python_alternative %{_bindir}/autoflake ++ autoflake-1.3.tar.gz -> autoflake-1.3.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.3/AUTHORS.rst new/autoflake-1.3.1/AUTHORS.rst --- old/autoflake-1.3/AUTHORS.rst 2019-04-21 18:25:39.0 +0200 +++ new/autoflake-1.3.1/AUTHORS.rst 2019-06-02 17:57:42.0 +0200 @@ -8,4 +8,8 @@ - Adhika Setya Pramudita (https://github.com/adhikasp) - Andrew Dassonville (https://github.com/andrewda) - toddrme2178 (https://github.com/toddrme2178) +- Sebastián Ramírez (https://github.com/tiangolo) +- Charlie Liu (https://github.com/CLiu13) +- Nobuhiro Kasai (https://github.com/sh4869) - James Curtin (https://github.com/jamescurtin) +- Sargun Dhillon (https://github.com/sargun) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.3/PKG-INFO new/autoflake-1.3.1/PKG-INFO --- old/autoflake-1.3/PKG-INFO 2019-04-21 18:27:29.0 +0200 +++ new/autoflake-1.3.1/PKG-INFO2019-08-04 17:14:15.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: autoflake -Version: 1.3 +Version: 1.3.1 Summary: Removes unused imports and unused variables Home-page: https://github.com/myint/autoflake Author: Steven Myint @@ -127,6 +127,8 @@ --remove-all-unused-imports remove all unused imports (not just those from the standard library) + --ignore-init-module-imports +exclude __init__.py when removing unused imports --remove-duplicate-keys remove all duplicate keys in objects --remove-unused-variables diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.3/README.rst new/autoflake-1.3.1/README.rst --- old/autoflake-1.3/README.rst2019-04-21 18:25:39.0 +0200 +++ new/autoflake-1.3.1/README.rst 2019-06-02 17:45:00.0 +0200 @@ -119,6 +119,8 @@ --remove-all-unused-imports remove all unused imports (not just those f
commit python-autoflake for openSUSE:Factory
Hello community, here is the log from the commit of package python-autoflake for openSUSE:Factory checked in at 2019-05-16 22:10:26 Comparing /work/SRC/openSUSE:Factory/python-autoflake (Old) and /work/SRC/openSUSE:Factory/.python-autoflake.new.5148 (New) Package is "python-autoflake" Thu May 16 22:10:26 2019 rev:4 rq:703507 version:1.3 Changes: --- /work/SRC/openSUSE:Factory/python-autoflake/python-autoflake.changes 2019-02-11 21:28:07.594991826 +0100 +++ /work/SRC/openSUSE:Factory/.python-autoflake.new.5148/python-autoflake.changes 2019-05-16 22:11:09.542225209 +0200 @@ -1,0 +2,6 @@ +Thu May 16 17:27:05 UTC 2019 - Meera Belur + +- Update to v1.3 + + No changes were provided + +--- Old: autoflake-1.2.tar.gz New: autoflake-1.3.tar.gz Other differences: -- ++ python-autoflake.spec ++ --- /var/tmp/diff_new_pack.J2EWi7/_old 2019-05-16 22:11:10.974223981 +0200 +++ /var/tmp/diff_new_pack.J2EWi7/_new 2019-05-16 22:11:11.010223950 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-autoflake -Version:1.2 +Version:1.3 Release:0 # for license file %define tag 44b07bb9dab60a74cb5da0b67cc78b734763785c ++ autoflake-1.2.tar.gz -> autoflake-1.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.2/AUTHORS.rst new/autoflake-1.3/AUTHORS.rst --- old/autoflake-1.2/AUTHORS.rst 2018-02-15 03:01:06.0 +0100 +++ new/autoflake-1.3/AUTHORS.rst 2019-04-21 18:25:39.0 +0200 @@ -8,3 +8,4 @@ - Adhika Setya Pramudita (https://github.com/adhikasp) - Andrew Dassonville (https://github.com/andrewda) - toddrme2178 (https://github.com/toddrme2178) +- James Curtin (https://github.com/jamescurtin) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.2/PKG-INFO new/autoflake-1.3/PKG-INFO --- old/autoflake-1.2/PKG-INFO 2018-05-09 16:09:31.0 +0200 +++ new/autoflake-1.3/PKG-INFO 2019-04-21 18:27:29.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: autoflake -Version: 1.2 +Version: 1.3 Summary: Removes unused imports and unused variables Home-page: https://github.com/myint/autoflake Author: Steven Myint @@ -111,6 +111,7 @@ optional arguments: -h, --helpshow this help message and exit + -c, --check return error code if changes are needed -i, --in-placemake changes to files instead of printing diffs -r, --recursive drill down directories recursively --exclude globs exclude file/directory names that match these comma- @@ -148,6 +149,35 @@ $ ./test_fuzz.py --verbose + +Excluding specific lines + + +It might be the case that you have some imports for their side effects, even +if you are not using them directly in that file. + +That is common, for example, in Flask based applications. In where you import +Python modules (files) that imported a main ``app``, to have them included in +the routes. + +For example: + +.. code-block:: python + +from .endpoints import role, token, user, utils + +As those imports are not being used directly, if you are using the option +``--remove-all-unused-imports``, they would be removed. + +To prevent that, without having to exclude the entire file, you can add a +``# noqa`` comment at the end of the line, like: + +.. code-block:: python + +from .endpoints import role, token, user, utils # noqa + +That line will instruct ``autoflake`` to let that specific line as is. + Keywords: clean,fix,automatic,unused,import Platform: UNKNOWN Classifier: Environment :: Console diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.2/README.rst new/autoflake-1.3/README.rst --- old/autoflake-1.2/README.rst2018-01-07 21:10:36.0 +0100 +++ new/autoflake-1.3/README.rst2019-04-21 18:25:39.0 +0200 @@ -103,6 +103,7 @@ optional arguments: -h, --helpshow this help message and exit + -c, --check return error code if changes are needed -i, --in-placemake changes to files instead of printing diffs -r, --recursive
commit python-autoflake for openSUSE:Factory
Hello community, here is the log from the commit of package python-autoflake for openSUSE:Factory checked in at 2019-02-11 21:28:04 Comparing /work/SRC/openSUSE:Factory/python-autoflake (Old) and /work/SRC/openSUSE:Factory/.python-autoflake.new.28833 (New) Package is "python-autoflake" Mon Feb 11 21:28:04 2019 rev:3 rq:673161 version:1.2 Changes: --- /work/SRC/openSUSE:Factory/python-autoflake/python-autoflake.changes 2018-12-12 17:26:11.927051011 +0100 +++ /work/SRC/openSUSE:Factory/.python-autoflake.new.28833/python-autoflake.changes 2019-02-11 21:28:07.594991826 +0100 @@ -1,0 +2,12 @@ +Sun Feb 10 13:50:19 UTC 2019 - John Vandenberg + +- Update to v1.2 + + Have `standard_paths` look in both platform-specific and +platform-independent directories +(replaces fix_standard_paths.patch) + + Add LICENSE + + Drop Python 3.3 +- Remove unnecessary build dependency %pythons +- Remove unused build dependency 'coverage' + +--- Old: LICENSE autoflake-1.1.tar.gz fix_standard_paths.patch New: autoflake-1.2.tar.gz Other differences: -- ++ python-autoflake.spec ++ --- /var/tmp/diff_new_pack.MG0hKS/_old 2019-02-11 21:28:08.202991497 +0100 +++ /var/tmp/diff_new_pack.MG0hKS/_new 2019-02-11 21:28:08.206991495 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-autoflake # -# 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 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-autoflake -Version:1.1 +Version:1.2 Release:0 # for license file %define tag 44b07bb9dab60a74cb5da0b67cc78b734763785c @@ -28,15 +28,10 @@ Group: Development/Languages/Python Url:https://github.com/myint/autoflake Source: https://files.pythonhosted.org/packages/source/a/autoflake/autoflake-%{version}.tar.gz -Source10: https://raw.githubusercontent.com/myint/autoflake/%{tag}/LICENSE -# PATCH-FIX-UPSTREAM fix_standard_paths.patch -- https://github.com/myint/autoflake/issues/32 -Patch0: fix_standard_paths.patch -BuildRequires: %pythons BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} -BuildRequires: %{python_module coverage} BuildRequires: %{python_module pyflakes >= 1.1.0} %endif Requires: python-pyflakes >= 1.1.0 @@ -59,9 +54,6 @@ %prep %setup -q -n autoflake-%{version} -cp %{SOURCE10} . -%patch0 -p1 -sed -i -e '/^#!\//, 1d' autoflake.py %build %python_build ++ autoflake-1.1.tar.gz -> autoflake-1.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.1/AUTHORS.rst new/autoflake-1.2/AUTHORS.rst --- old/autoflake-1.1/AUTHORS.rst 2018-01-07 21:10:36.0 +0100 +++ new/autoflake-1.2/AUTHORS.rst 2018-02-15 03:01:06.0 +0100 @@ -7,3 +7,4 @@ - tell-k (https://github.com/tell-k) - Adhika Setya Pramudita (https://github.com/adhikasp) - Andrew Dassonville (https://github.com/andrewda) +- toddrme2178 (https://github.com/toddrme2178) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/autoflake-1.1/LICENSE new/autoflake-1.2/LICENSE --- old/autoflake-1.1/LICENSE 1970-01-01 01:00:00.0 +0100 +++ new/autoflake-1.2/LICENSE 2018-05-09 16:06:15.0 +0200 @@ -0,0 +1,19 @@ +Copyright (C) 2012-2018 Steven Myint + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SO
commit python-autoflake for openSUSE:Factory
Hello community, here is the log from the commit of package python-autoflake for openSUSE:Factory checked in at 2018-12-12 17:26:09 Comparing /work/SRC/openSUSE:Factory/python-autoflake (Old) and /work/SRC/openSUSE:Factory/.python-autoflake.new.28833 (New) Package is "python-autoflake" Wed Dec 12 17:26:09 2018 rev:2 rq:655389 version:1.1 Changes: --- /work/SRC/openSUSE:Factory/python-autoflake/python-autoflake.changes 2018-05-15 10:32:30.702150085 +0200 +++ /work/SRC/openSUSE:Factory/.python-autoflake.new.28833/python-autoflake.changes 2018-12-12 17:26:11.927051011 +0100 @@ -1,0 +2,10 @@ +Wed Dec 5 01:54:31 UTC 2018 - Jan Engelhardt + +- Use noun phrase in summary. + +--- +Tue Dec 4 12:45:50 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +--- Other differences: -- ++ python-autoflake.spec ++ --- /var/tmp/diff_new_pack.dUOxvq/_old 2018-12-12 17:26:12.487050298 +0100 +++ /var/tmp/diff_new_pack.dUOxvq/_new 2018-12-12 17:26:12.487050298 +0100 @@ -12,26 +12,26 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-autoflake Version:1.1 +Release:0 # for license file %define tag 44b07bb9dab60a74cb5da0b67cc78b734763785c -Release:0 +Summary:Program to removes unused Python imports and variables License:MIT -Summary:Removes unused imports and unused variables -Url:https://github.com/myint/autoflake Group: Development/Languages/Python +Url:https://github.com/myint/autoflake Source: https://files.pythonhosted.org/packages/source/a/autoflake/autoflake-%{version}.tar.gz Source10: https://raw.githubusercontent.com/myint/autoflake/%{tag}/LICENSE # PATCH-FIX-UPSTREAM fix_standard_paths.patch -- https://github.com/myint/autoflake/issues/32 Patch0: fix_standard_paths.patch BuildRequires: %pythons -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros