15
0

Accepting request 999222 from home:bnavigator:branches:devel:languages:python

- Update to 2.1.0
  * New class-based API.
- No further release notes

OBS-URL: https://build.opensuse.org/request/show/999222
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eradicate?expand=0&rev=7
This commit is contained in:
2022-08-26 06:37:05 +00:00
committed by Git OBS Bridge
parent fa95c06e0f
commit da81943ba6
5 changed files with 243 additions and 61 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-eradicate
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-eradicate
Version: 1.0
Version: 2.1.0
Release: 0
Summary: Python utility for removing commented-out code
License: MIT
@@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
@@ -62,12 +62,13 @@ cp %{SOURCE1} .
%python_uninstall_alternative eradicate
%check
export PYTHONPATH=.
%python_exec %{SOURCE1}
%pyunittest -v
%files %{python_files}
%doc README.rst
%python_alternative %{_bindir}/eradicate
%{python_sitelib}/*
%{python_sitelib}/eradicate.py*
%pycache_only %{python_sitelib}/__pycache__/eradicate*.pyc
%{python_sitelib}/eradicate-%{version}*-info
%changelog