From d0a7ba3f120be638121850e987ad4e077109b9c7fe80b0f721a9d76be05657fa Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 5 Mar 2024 03:21:43 +0000 Subject: [PATCH] - Switch to autosetup and pyproject macros. - Remove python2 leftovers. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vim-vint?expand=0&rev=14 --- python-vim-vint.changes | 6 ++++++ python-vim-vint.spec | 29 ++++++++--------------------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/python-vim-vint.changes b/python-vim-vint.changes index a3748dc..1c38221 100644 --- a/python-vim-vint.changes +++ b/python-vim-vint.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 5 03:19:22 UTC 2024 - Steve Kowalik + +- Switch to autosetup and pyproject macros. +- Remove python2 leftovers. + ------------------------------------------------------------------- Thu Jul 14 21:08:37 UTC 2022 - Ben Greiner diff --git a/python-vim-vint.spec b/python-vim-vint.spec index 4df932b..00e34cd 100644 --- a/python-vim-vint.spec +++ b/python-vim-vint.spec @@ -1,7 +1,7 @@ # # spec file for package python-vim-vint # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,49 +16,36 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 Name: python-vim-vint Version: 0.3.21 Release: 0 Summary: Lint tool for Vim script Language License: MIT -Group: Development/Languages/Python URL: https://github.com/Kuniwak/vint Source: https://github.com/Kuniwak/vint/archive/v%{version}.tar.gz Patch0: test-sys-executable.patch BuildRequires: %{python_module PyYAML >= 3.11} BuildRequires: %{python_module ansicolor >= 0.2.4} BuildRequires: %{python_module chardet >= 2.3.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest >= 2.6.4} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyYAML >= 3.11 Requires: python-ansicolor >= 0.2.4 Requires: python-chardet >= 2.3.0 Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch -%if %{with python2} -BuildRequires: python-enum34 >= 1.0.4 -BuildRequires: python-mock >= 1.0.1 -BuildRequires: python-pathlib -BuildRequires: python-typing >= 3.6.2 -%endif -%ifpython2 -Requires: python-enum34 >= 1.0.4 -Requires: python-pathlib >= 1.0.1 -Requires: python-typing >= 3.6.2 -%endif %python_subpackages %description A lint tool for the Vim script Language. %prep -%setup -q -n vint-%{version} -%patch0 -p1 +%autosetup -p1 -n vint-%{version} sed -e 's/==/>=/g' \ -e 's/\~=/>=/g' \ -i setup.py \ @@ -67,10 +54,10 @@ sed -e 's/==/>=/g' \ sed -i -e '/^#!\//, 1d' vint/_bundles/vimlparser.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/vint %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -91,6 +78,6 @@ rm ./test/acceptance/test_cli.py %doc README.rst %python_alternative %{_bindir}/vint %{python_sitelib}/vint -%{python_sitelib}/vim_vint-%{version}*-info +%{python_sitelib}/vim_vint-%{version}.dist-info %changelog