public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-enrich] f45: Unretirement (rhbz#2571807)
Date: Sat, 28 Nov 2026 16:03:57 GMT	[thread overview]
Message-ID: <179588183780.1.7072141408009376018.rpms-python-enrich-9ee2cd9dc7d3@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-enrich
Branch : f45
Commit : 9ee2cd9dc7d3f980707fdbb9a550608f7846bd03
Author : Terje Røsten <terjeros@gmail.com>
Date   : 2026-11-28T16:54:33+01:00
Stats  : +77/-52 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/python-enrich/c/9ee2cd9dc7d3f980707fdbb9a550608f7846bd03?branch=f45

Log:
Unretirement (rhbz#2571807)

---
diff --git a/.gitignore b/.gitignore
index 14f7a6b..954301d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /enrich-1.2.6.tar.gz
 /enrich-1.2.7.tar.gz
+/v1.3.0.tar.gz

diff --git a/0001-remove-unsuported-pytest-option.patch b/0001-remove-unsuported-pytest-option.patch
deleted file mode 100644
index 24778cf..0000000
--- a/0001-remove-unsuported-pytest-option.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/setup.cfg	2020-12-22 11:33:09.339309497 +0100
-+++ b/setup.cfg	2020-12-22 11:37:33.467283884 +0100
-@@ -77,7 +77,7 @@
- 	*.pyi
- 
- [tool:pytest]
--addopts = --doctest-modules --durations 10 --durations-min=3 --color=yes
-+addopts = --doctest-modules --durations 10 --color=yes
- doctest_optionflags = ALLOW_UNICODE ELLIPSIS
- norecursedirs = dist doc build .tox .eggs
- testpaths = src

diff --git a/python-enrich-1.3.0-pytest.patch b/python-enrich-1.3.0-pytest.patch
new file mode 100644
index 0000000..aafc181
--- /dev/null
+++ b/python-enrich-1.3.0-pytest.patch
@@ -0,0 +1,49 @@
+diff --git a/.config/requirements-test.in b/.config/requirements-test.in
+deleted file mode 100644
+index c038ac7..0000000
+--- a/.config/requirements-test.in
++++ /dev/null
+@@ -1,5 +0,0 @@
+-pytest-cov>=2.7.1
+-pytest-mock>=3.3.1
+-pytest-plus
+-pytest-xdist>=1.29.0
+-pytest>=5.4.0
+diff --git a/.config/requirements.in b/.config/requirements.in
+deleted file mode 100644
+index 5c2b8d2..0000000
+--- a/.config/requirements.in
++++ /dev/null
+@@ -1 +0,0 @@
+-rich>=10.0.0,<12.5.0 # https://github.com/pycontribs/enrich/issues/40
+diff --git a/pyproject.toml b/pyproject.toml
+index 530c296..208c8e3 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -16,7 +16,7 @@ authors = [{ "name" = "Sorin Sbarnea", "email" = "sorin.sbarnea@gmail.com" }]
+ maintainers = [
+   { "name" = "Sorin Sbarnea", "email" = "sorin.sbarnea@gmail.com" }
+ ]
+-license = { text = "MIT" }
++license = "MIT"
+ classifiers = [
+   # https://pypi.org/classifiers/
+   "Development Status :: 5 - Production/Stable",
+@@ -24,7 +24,6 @@ classifiers = [
+   "Intended Audience :: Developers",
+   "Intended Audience :: Information Technology",
+   "Intended Audience :: System Administrators",
+-  "License :: OSI Approved :: MIT License",
+   "Operating System :: MacOS",
+   "Operating System :: POSIX :: Linux",
+   "Operating System :: POSIX",
+@@ -63,9 +62,7 @@ warn_return_any = true
+ warn_unused_configs = true
+ 
+ [tool.pytest]
+-addopts = "--doctest-modules --durations 10 --durations-min=3 --color=yes"
+ doctest_optionflags = ["ALLOW_UNICODE", "ELLIPSIS"]
+-norecursedirs = "dist doc build .tox .eggs"
+ filterwarnings = [
+   # treat warnings as errors unless we add them below
+   "error"

diff --git a/python-enrich.spec b/python-enrich.spec
index 0a129ea..d99eb38 100644
--- a/python-enrich.spec
+++ b/python-enrich.spec
@@ -1,63 +1,49 @@
-%global srcname   enrich
-%global pkgname   python-enrich
-%global forge_url https://github.com/pycontribs/%{srcname}
-%global common_description %{expand:
-rich library functionality with a set of changes that were not accepted
-to rich itself.
-}
-
-%bcond_without tests
-
-Name:           %{pkgname}
-Version:        1.2.7
-%forgemeta
-Release:        %autorelease
 Summary:        Enrich adds few missing features to the wonderful rich library
-URL:            %{forge_url}
-Source:         %{pypi_source}
+Name:           python-enrich
+Version:        1.3.0
+Release:        %autorelease
+URL:            https://github.com/pycontribs/enrich
+Source:         https://github.com/pycontribs/enrich/archive/refs/tags/v%{version}.tar.gz
 License:        MIT
 BuildArch:      noarch
-patch:          0001-remove-unsuported-pytest-option.patch
-patch:          0002_remove_pytest_plus_dependency.patch
-# Backport of:
-# Remove mock from test dependencies (#46)
-# https://github.com/pycontribs/enrich/commit/6a21526fed438cdcd3ee0f9be27d8348293adcee
-Patch:          remove-python-mock.patch
-# https://bugzilla.redhat.com/show_bug.cgi?id=2248708
-# Backport of:
-# Update build-system requirement for setuptools-scm to >=7.0.0 (#45)
-# https://github.com/pycontribs/enrich/commit/6a21526fed438cdcd3ee0f9be27d8348293adcee
-Patch:          remove-setuptools-scm-git-archive.patch
-
+# Fix pyproject.toml and pytest setup
+Patch:          python-enrich-1.3.0-pytest.patch
 BuildRequires:  python3-devel
+BuildRequires:  python3-pytest
+BuildRequires:  python3-pytest-mock
+BuildRequires:  python3-rich
 BuildRequires:  pyproject-rpm-macros
+%global _description %{expand:
+rich library functionality with a set of changes that were not accepted
+to rich itself.}
+%description %{_description}
 
-%description %{common_description}
-
-%package -n python3-%{srcname}
+%package -n python3-enrich
 Summary: %summary
-
-%description -n python3-%{srcname} %{common_description}
+%description -n python3-enrich %{_description}
 
 %prep
-%autosetup -p1 -n %{srcname}-%{version}
+%autosetup -p1 -n enrich-%{version}
 
 %generate_buildrequires
-%pyproject_buildrequires -r %{?with_tests: -x test}
+export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
+%pyproject_buildrequires -r -x test
 
 %build
+export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
 %pyproject_wheel
 
 %install
+export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
 %pyproject_install
-%pyproject_save_files %{srcname}
+%pyproject_save_files enrich
 
-%if %{with tests}
 %check
-PYTHONPATH=src %{python3} -m pytest src/enrich/test -v -k "not test_rich_console_ex"
-%endif
+%pyproject_check_import
+%pytest
 
-%files -n python3-%{srcname}
+%files -n python3-enrich
+%doc README.md
 %license LICENSE
 %{python3_sitelib}/enrich/
 %{python3_sitelib}/enrich-%{version}.dist-info/

diff --git a/sources b/sources
index b6fd8b3..ceea7aa 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (enrich-1.2.7.tar.gz) = 4e3d8598e82d7d013ff74dd325be02245086159fef819431a1ba7505e2e1557992ccbefc0b5a37d0e81487b4e378bef02179c6b74fd50528d6710ff297f0832a
+SHA512 (v1.3.0.tar.gz) = 9fcb30383fb79ac06e97b00cc3c205c1e173749b06ab20f5a3cb09d65429e424de363168b0c4e18f06ba82ae980e23c8e0e725252a1f8e11a0a9682910984f74

                 reply	other threads:[~2026-11-28 16:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179588183780.1.7072141408009376018.rpms-python-enrich-9ee2cd9dc7d3@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox