From 865ff59a71893284fe263d1a0a9b7186fab3d07159b26561b720a9f77ef6cf40 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 20 Nov 2024 17:05:27 +0000 Subject: [PATCH] - update to 1.0.2: * Split out Python code into git branches to support older Python. * Master now can use newer Python idioms like f-strings, and newer packaging uses `pyproject.toml`. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-term-background?expand=0&rev=3 --- __pkginfo__.py | 5 ++--- python-term-background.changes | 9 +++++++++ python-term-background.spec | 21 +++++++++++---------- term-background-1.0.2.tar.gz | 3 +++ 4 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 term-background-1.0.2.tar.gz diff --git a/__pkginfo__.py b/__pkginfo__.py index 3f3f0e1..842fe74 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -1,10 +1,9 @@ import sys -author = "Rocky Bernstein" -author_email = "rb@dustyfeet.com" - import os.path as osp +author = "Rocky Bernstein" +author_email = "rb@dustyfeet.com" py_modules = None short_desc = "Determine if shell has a light or dark background" diff --git a/python-term-background.changes b/python-term-background.changes index 539b38e..5002e77 100644 --- a/python-term-background.changes +++ b/python-term-background.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Nov 20 17:05:10 UTC 2024 - Dirk Müller + +- update to 1.0.2: + * Split out Python code into git branches to support older + Python. + * Master now can use newer Python idioms like f-strings, and + newer packaging uses `pyproject.toml`. + ------------------------------------------------------------------- Sat Feb 5 17:43:21 UTC 2022 - Atri Bhattacharya diff --git a/python-term-background.spec b/python-term-background.spec index bb2fb24..c511c27 100644 --- a/python-term-background.spec +++ b/python-term-background.spec @@ -1,7 +1,7 @@ # # spec file for package python-term-background # -# 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 @@ -20,17 +20,18 @@ %define tarname term-background %define modname %( echo %{tarname} | tr '-' '_' ) Name: python-term-background -Version: 1.0.1 +Version: 1.0.2 Release: 0 Summary: Determine if shell has a light or dark background License: GPL-2.0-or-later URL: http://github.com/rocky/shell-term-background -Source0: https://github.com/rocky/shell-term-background/releases/download/%{version}/%{tarname}-%{version}.tar.gz +Source0: https://github.com/rocky/shell-term-background/releases/download/%{version}/%{tarname}-%{version}.tar.gz # Missed in source tarball Source1: https://raw.githubusercontent.com/rocky/shell-term-background/%{version}/__pkginfo__.py -Source2: https://raw.githubusercontent.com/rocky/shell-term-background/%{version}/COPYING -BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros # SECTION For tests BuildRequires: %{python_module pytest} # /SECTION @@ -43,13 +44,13 @@ A python module to determine if a shell has a light or dark background. %prep %setup -q -n %{tarname}-%{version} -cp %{SOURCE1} %{SOURCE2} ./ +cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,7 +58,7 @@ cp %{SOURCE1} %{SOURCE2} ./ %files %{python_files} %license COPYING -%{python_sitelib}/%{modname}/ -%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/%{modname} +%{python_sitelib}/%{modname}-%{version}.dist-info %changelog diff --git a/term-background-1.0.2.tar.gz b/term-background-1.0.2.tar.gz new file mode 100644 index 0000000..046ced8 --- /dev/null +++ b/term-background-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49294a7a3ba3d78bcaff5f061ecb62a43c443ba182877ee8c6a37c24c4fa47e0 +size 11705