15
0
forked from pool/python-enrich

- Update to version 1.3.0:

* Require python 3.9 or newer (#67)
  * Externalize package requirments (#65)
  * RichHandler add omit_repeated_times parameter (#62)
  * Adopt PEP-621 (#57)
  * Move tests outside package (#56)
  * Remove mock from test dependencies (#46)
  * Update build-system requirement for setuptools-scm to >=7.0.0 (#45)
  * Packaging fixes (#48)
  * Enable support for python 3.11 (#42)
  * Temporary pin down rich version (#43)
- Adapt remove_setuptools_scm.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-enrich?expand=0&rev=9
This commit is contained in:
2025-09-08 21:02:26 +00:00
committed by Git OBS Bridge
commit 575168cc22
6 changed files with 150 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

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

41
python-enrich.changes Normal file
View File

@@ -0,0 +1,41 @@
-------------------------------------------------------------------
Mon Sep 8 20:48:59 UTC 2025 - Sebastian Wagner <sebix@sebix.at>
- Update to version 1.3.0:
* Require python 3.9 or newer (#67)
* Externalize package requirments (#65)
* RichHandler add omit_repeated_times parameter (#62)
* Adopt PEP-621 (#57)
* Move tests outside package (#56)
* Remove mock from test dependencies (#46)
* Update build-system requirement for setuptools-scm to >=7.0.0 (#45)
* Packaging fixes (#48)
* Enable support for python 3.11 (#42)
* Temporary pin down rich version (#43)
- Adapt remove_setuptools_scm.patch
-------------------------------------------------------------------
Mon May 26 12:47:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Wed May 10 02:46:11 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Actually run the testsuite.
- Add a missing Requires on python-rich
-------------------------------------------------------------------
Fri May 5 11:56:47 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- add sle15_python_module_pythons
-------------------------------------------------------------------
Fri Jan 28 16:31:22 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- add remove_setuptools_scm.patch to get rid of setuptools-scm and fix the version
-------------------------------------------------------------------
Sun Jan 23 11:49:58 UTC 2022 - Sebastian Wagner <sebix@sebix.at>
- initial package for version 1.2.7

63
python-enrich.spec Normal file
View File

@@ -0,0 +1,63 @@
#
# spec file for package python-enrich
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-enrich
Version: 1.3.0
Release: 0
Summary: Extends the python-rich library functionality
License: MIT
URL: https://github.com/pycontribs/enrich
Source0: https://github.com/pycontribs/enrich/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: remove_setuptools_scm.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rich}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-rich
BuildArch: noarch
%{?python_enable_dependency_generator}
%python_subpackages
%description
Extends the python-rich library functionality
with a set of changes that were not accepted to rich itself.
%prep
%autosetup -n enrich-%{version}
sed -i 's/__VERSION__/%{version}/' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# gh#pycontribs/enrich#40
%pytest -k 'not test_rich_console_ex'
%files %{python_files}
%{python_sitelib}/enrich
%{python_sitelib}/enrich-%{version}*info
%changelog

View File

@@ -0,0 +1,19 @@
--- pyproject.toml 2024-06-14 14:49:49.000000000 +0200
+++ pyproject.toml 2025-09-08 22:56:54.944216329 +0200
@@ -1,14 +1,14 @@
[build-system]
requires = [
"setuptools >= 65.3.0", # required by pyproject+setuptools_scm integration and editable installs
- "setuptools_scm[toml] >= 7.0.5", # required for "no-local-version" scheme
]
build-backend = "setuptools.build_meta"
[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.9"
-dynamic = ["version", "dependencies", "optional-dependencies"]
+version = "__VERSION__"
+dynamic = ["dependencies", "optional-dependencies"]
name = "enrich"
description = "enrich"
readme = "README.md"