diff --git a/python-vulture.changes b/python-vulture.changes index 4b9de5e..d6a67a8 100644 --- a/python-vulture.changes +++ b/python-vulture.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Thu Aug 20 21:06:20 UTC 2020 - John Vandenberg + +- Update to v2.1 + * Treat `getattr/hasattr(obj, "constant_string", ...)` as a reference + to `obj.constant_string` + * Fix false positives when assigning to `x.some_name` but reading via + `some_name`, at the cost of potential false negatives + * Allow reading options from `pyproject.toml` +- from v2.0 + * Parse `# type: ...` comments if on Python 3.8+ + * Bump minimum Python version to 3.6. The last Vulture release that + supports Python 2.7 and Python 3.5 is version 1.6. + * Consider all files under `test` or `tests` directories test files + * Ignore `logging.Logger.propagate` attribute +- from v1.6 + * Differentiate between functions and methods + * Move from Travis to GitHub actions +- from v1.5 + * Support flake8 "noqa" error codes F401 (unused import) and F841 + (unused local variable) + * Detect unreachable code in conditional expressions + ------------------------------------------------------------------- Thu Apr 16 07:49:11 UTC 2020 - Tomáš Chvátal diff --git a/python-vulture.spec b/python-vulture.spec index fc5d263..88fbc53 100644 --- a/python-vulture.spec +++ b/python-vulture.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vulture -Version: 1.4 +Version: 2.1 Release: 0 Summary: Python module for finding dead code License: MIT @@ -28,11 +28,13 @@ Source: https://files.pythonhosted.org/packages/source/v/vulture/vulture BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-toml Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest > 3.2.3} +BuildRequires: %{python_module toml} # /SECTION %python_subpackages diff --git a/vulture-1.4.tar.gz b/vulture-1.4.tar.gz deleted file mode 100644 index 524b0d9..0000000 --- a/vulture-1.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7ed28f87e6b08e62675946c96788f30f44da6882ad07f4af50485b65a0fac77a -size 35525 diff --git a/vulture-2.1.tar.gz b/vulture-2.1.tar.gz new file mode 100644 index 0000000..eaadce6 --- /dev/null +++ b/vulture-2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:933bf7f3848e9e39ecab6a12faa59d5185471c887534abac13baea6fe8138cc2 +size 42300