commit 575168cc2272b50d5bfc03419593e8fb4c921d7d2bbd3b5e598d7b4af867a128 Author: Sebastian Wagner Date: Mon Sep 8 21:02:26 2025 +0000 - 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-enrich-1.3.0.tar.gz b/python-enrich-1.3.0.tar.gz new file mode 100644 index 0000000..74a72ee --- /dev/null +++ b/python-enrich-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bb0eb2dd3e1419d7d668f74a6132e50275cbaa603c2257877ab185702fe5aab +size 11615 diff --git a/python-enrich.changes b/python-enrich.changes new file mode 100644 index 0000000..a12131f --- /dev/null +++ b/python-enrich.changes @@ -0,0 +1,41 @@ +------------------------------------------------------------------- +Mon Sep 8 20:48:59 UTC 2025 - Sebastian Wagner + +- 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á + +- Convert to pip-based build + +------------------------------------------------------------------- +Wed May 10 02:46:11 UTC 2023 - Steve Kowalik + +- Actually run the testsuite. +- Add a missing Requires on python-rich + +------------------------------------------------------------------- +Fri May 5 11:56:47 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Fri Jan 28 16:31:22 UTC 2022 - Sebastian Wagner + +- 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 + +- initial package for version 1.2.7 diff --git a/python-enrich.spec b/python-enrich.spec new file mode 100644 index 0000000..b2e4511 --- /dev/null +++ b/python-enrich.spec @@ -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 diff --git a/remove_setuptools_scm.patch b/remove_setuptools_scm.patch new file mode 100644 index 0000000..a461b6b --- /dev/null +++ b/remove_setuptools_scm.patch @@ -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"