- 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
This commit is contained in:
Dirk Mueller 2024-11-20 17:05:27 +00:00 committed by Git OBS Bridge
parent 091894df73
commit 865ff59a71
4 changed files with 25 additions and 13 deletions

View File

@ -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"

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Nov 20 17:05:10 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <badshah400@gmail.com>

View File

@ -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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:49294a7a3ba3d78bcaff5f061ecb62a43c443ba182877ee8c6a37c24c4fa47e0
size 11705