diff --git a/flake8-deprecated-2.0.1.tar.gz b/flake8-deprecated-2.0.1.tar.gz deleted file mode 100644 index ac08a82..0000000 --- a/flake8-deprecated-2.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7659a530aa76c3ad8be0c1e8331ed56d882ef8bfba074501a545bb3352b0c23 -size 13437 diff --git a/flake8_deprecated-2.2.1.tar.gz b/flake8_deprecated-2.2.1.tar.gz new file mode 100644 index 0000000..65d5a03 --- /dev/null +++ b/flake8_deprecated-2.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee96ca001d1ca0561fa8e46f23e2d2460b18a86696373cab644e102ae0ff2aa2 +size 14869 diff --git a/python-flake8-deprecated.changes b/python-flake8-deprecated.changes index 9521e95..e2bf29b 100644 --- a/python-flake8-deprecated.changes +++ b/python-flake8-deprecated.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Dec 5 17:41:25 UTC 2023 - Dirk Müller + +- 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. + ------------------------------------------------------------------- Thu Dec 15 21:07:44 UTC 2022 - Dirk Müller diff --git a/python-flake8-deprecated.spec b/python-flake8-deprecated.spec index 464ae5e..d884b61 100644 --- a/python-flake8-deprecated.spec +++ b/python-flake8-deprecated.spec @@ -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