From 73cfc1d97d8338521236d35aefa109b9a870e45c04ad04675ccee44c1f316de3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 10 Jul 2023 23:05:30 +0000 Subject: [PATCH 1/2] 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 --- flynt-0.76.tar.gz | 3 --- python-flynt-0.78.tar.gz | 3 +++ python-flynt.changes | 9 +++++++++ python-flynt.spec | 15 +++++++++------ 4 files changed, 21 insertions(+), 9 deletions(-) delete mode 100644 flynt-0.76.tar.gz create mode 100644 python-flynt-0.78.tar.gz diff --git a/flynt-0.76.tar.gz b/flynt-0.76.tar.gz deleted file mode 100644 index c833254..0000000 --- a/flynt-0.76.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a99c5a550ea9e8c21203f6999ed8ce69cbad7bc8465268469777cf06413193a -size 31839 diff --git a/python-flynt-0.78.tar.gz b/python-flynt-0.78.tar.gz new file mode 100644 index 0000000..a00fce3 --- /dev/null +++ b/python-flynt-0.78.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be3508adad6e15878053ffc011fbc2e8e47b8175997661112119e990ef808ac6 +size 54675 diff --git a/python-flynt.changes b/python-flynt.changes index a7ddbc9..1e30080 100644 --- a/python-flynt.changes +++ b/python-flynt.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Jul 6 13:05:53 UTC 2023 - ecsos + +- 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} + ------------------------------------------------------------------- Tue Jan 25 09:50:38 UTC 2022 - Dirk Müller diff --git a/python-flynt.spec b/python-flynt.spec index 658c5c9..7922ea9 100644 --- a/python-flynt.spec +++ b/python-flynt.spec @@ -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} From b1588849698f23541235c16f259a0679a18ab3781c36519774b19280729699fc Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 10 Jul 2023 23:07:31 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flynt?expand=0&rev=5 --- python-flynt.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-flynt.spec b/python-flynt.spec index 7922ea9..110d7be 100644 --- a/python-flynt.spec +++ b/python-flynt.spec @@ -67,6 +67,7 @@ CLI tool to convert a python project's %-formatted strings to f-strings. %doc README.md %license LICENSE %python_alternative %{_bindir}/flynt -%{python_sitelib}/* +%{python_sitelib}/flynt +%{python_sitelib}/flynt-%{version}*-info %changelog