forked from pool/python-flake8-deprecated
- update to 2.2.1:
* Use `pyproject.toml` rather than `setup.py`. * Switch from `setuptools` to `hatchling`. * Drop python 3.7 support. * Fix error message. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-deprecated?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-flake8-deprecated
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,17 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-flake8-deprecated
|
||||
Version: 2.0.1
|
||||
Version: 2.2.1
|
||||
Release: 0
|
||||
Summary: Flake8 deprecations plugin
|
||||
License: GPL-2.0-only
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/gforcada/flake8-deprecated
|
||||
Source: https://files.pythonhosted.org/packages/source/f/flake8-deprecated/flake8-deprecated-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
Source: https://files.pythonhosted.org/packages/source/f/flake8-deprecated/flake8_deprecated-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-flake8 >= 5.0.4
|
||||
@@ -42,13 +44,13 @@ This flake8 plugin helps you keeping up with method deprecations and giving hint
|
||||
they should be replaced with.
|
||||
|
||||
%prep
|
||||
%setup -q -n flake8-deprecated-%{version}
|
||||
%setup -q -n flake8_deprecated-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -57,6 +59,8 @@ they should be replaced with.
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGES.rst README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/flake8_deprecated.py
|
||||
%pycache_only %{python_sitelib}/__pycache__/*
|
||||
%{python_sitelib}/flake8_deprecated-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user