14
0

Accepting request 828304 from home:jayvdb:branches:devel:languages:python

- Update to v2.1

OBS-URL: https://build.opensuse.org/request/show/828304
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vulture?expand=0&rev=18
This commit is contained in:
Tomáš Chvátal
2020-08-21 06:01:34 +00:00
committed by Git OBS Bridge
parent 1c4fa5056a
commit c5f2a5ec7f
4 changed files with 29 additions and 4 deletions

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Thu Aug 20 21:06:20 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- 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 <tchvatal@suse.com>

View File

@@ -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

View File

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

3
vulture-2.1.tar.gz Normal file
View File

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