1
0

1 Commits

Author SHA256 Message Date
865ff59a71 - 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
2024-11-20 17:05:27 +00:00
4 changed files with 25 additions and 13 deletions

View File

@@ -1,10 +1,9 @@
import sys import sys
author = "Rocky Bernstein"
author_email = "rb@dustyfeet.com"
import os.path as osp import os.path as osp
author = "Rocky Bernstein"
author_email = "rb@dustyfeet.com"
py_modules = None py_modules = None
short_desc = "Determine if shell has a light or dark background" 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> 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 # 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 # 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
@@ -20,7 +20,7 @@
%define tarname term-background %define tarname term-background
%define modname %( echo %{tarname} | tr '-' '_' ) %define modname %( echo %{tarname} | tr '-' '_' )
Name: python-term-background Name: python-term-background
Version: 1.0.1 Version: 1.0.2
Release: 0 Release: 0
Summary: Determine if shell has a light or dark background Summary: Determine if shell has a light or dark background
License: GPL-2.0-or-later License: GPL-2.0-or-later
@@ -28,9 +28,10 @@ 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 # Missed in source tarball
Source1: https://raw.githubusercontent.com/rocky/shell-term-background/%{version}/__pkginfo__.py 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_module pip}
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION For tests # SECTION For tests
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
@@ -43,13 +44,13 @@ A python module to determine if a shell has a light or dark background.
%prep %prep
%setup -q -n %{tarname}-%{version} %setup -q -n %{tarname}-%{version}
cp %{SOURCE1} %{SOURCE2} ./ cp %{SOURCE1} .
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -57,7 +58,7 @@ cp %{SOURCE1} %{SOURCE2} ./
%files %{python_files} %files %{python_files}
%license COPYING %license COPYING
%{python_sitelib}/%{modname}/ %{python_sitelib}/%{modname}
%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/ %{python_sitelib}/%{modname}-%{version}.dist-info
%changelog %changelog

View File

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