17
0

2 Commits

2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 4 06:08:00 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Nov 9 15:59:17 UTC 2024 - Dirk Müller <dmueller@suse.com> Sat Nov 9 15:59:17 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-tokenize-rt # spec file for package python-tokenize-rt
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,8 +25,10 @@ Group: Development/Languages/Python
URL: https://github.com/asottile/tokenize-rt URL: https://github.com/asottile/tokenize-rt
Source: https://github.com/asottile/tokenize-rt/archive/refs/tags/v{%{version}}.tar.gz#/tokenize-rt-%{version}.tar.gz Source: https://github.com/asottile/tokenize-rt/archive/refs/tags/v{%{version}}.tar.gz#/tokenize-rt-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires(post): update-alternatives Requires(post): update-alternatives
@@ -41,10 +43,10 @@ A wrapper around the stdlib `tokenize` which roundtrips.
%setup -q -n tokenize-rt-%{version} %setup -q -n tokenize-rt-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%{python_clone -a %{buildroot}%{_bindir}/tokenize-rt} %{python_clone -a %{buildroot}%{_bindir}/tokenize-rt}
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -61,8 +63,8 @@ A wrapper around the stdlib `tokenize` which roundtrips.
%license LICENSE %license LICENSE
%doc README.md %doc README.md
%python_alternative %{_bindir}/tokenize-rt %python_alternative %{_bindir}/tokenize-rt
%{python_sitelib}/tokenize_rt* %{python_sitelib}/tokenize_rt.py
%{python_sitelib}/__pycache__/tokenize_rt* %{python_sitelib}/__pycache__/tokenize_rt*.pyc
%{python_sitelib}/tokenize_rt-%{version}*-info %{python_sitelib}/tokenize_rt-%{version}.dist-info
%changelog %changelog