forked from pool/python-flynt
Accepting request 1097967 from home:ecsos:python
- Update to 0.78
- no changelog from upstream
- Change Source from pythonhosted to github because tests are
missing in source from pythonhosted.
- Add %{?sle15_python_module_pythons}
OBS-URL: https://build.opensuse.org/request/show/1097967
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flynt?expand=0&rev=4
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-flynt
|
||||
#
|
||||
# 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,15 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-flynt
|
||||
Version: 0.76
|
||||
Version: 0.78
|
||||
Release: 0
|
||||
Summary: CLI tool to convert a python project's %-formatted strings to f-strings
|
||||
License: MIT
|
||||
URL: https://github.com/ikamensh/flynt
|
||||
Source: https://files.pythonhosted.org/packages/source/f/flynt/flynt-%{version}.tar.gz
|
||||
Source: https://github.com/ikamensh/flynt/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-astor
|
||||
@@ -44,10 +47,10 @@ CLI tool to convert a python project's %-formatted strings to f-strings.
|
||||
%setup -q -n flynt-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/flynt
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user