public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-enrich] f45: initial commit
@ 2026-11-28 16:03 chedi
0 siblings, 0 replies; only message in thread
From: chedi @ 2026-11-28 16:03 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-enrich
Branch : f45
Commit : d8085c3745007f1418d7d729dd3a5dc706194881
Author : chedi <chedi.toueiti@gmail.com>
Date : 2021-01-03T20:30:04+01:00
Stats : +76/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/python-enrich/c/d8085c3745007f1418d7d729dd3a5dc706194881?branch=f45
Log:
initial commit
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c60df1f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/enrich-1.2.6.tar.gz
diff --git a/0001-remove-unsuported-pytest-option.patch b/0001-remove-unsuported-pytest-option.patch
new file mode 100644
index 0000000..24778cf
--- /dev/null
+++ b/0001-remove-unsuported-pytest-option.patch
@@ -0,0 +1,11 @@
+--- 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.spec b/python-enrich.spec
new file mode 100644
index 0000000..384766a
--- /dev/null
+++ b/python-enrich.spec
@@ -0,0 +1,63 @@
+%global srcname enrich
+
+Name: python-%{srcname}
+Version: 1.2.6
+Release: 1%{?dist}
+Summary: Enrich adds few missing features to the wonderful rich library
+
+URL: https://github.com/pycontribs/enrich
+Source: %{pypi_source}
+License: MIT
+
+# Removing the --duration-min option from pytest call (not supported in pytest < 6.1)
+patch0: 0001-remove-unsuported-pytest-option.patch
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3dist(rich)
+BuildRequires: python3dist(setuptools)
+BuildRequires: python3dist(setuptools-scm)
+
+# testing requirements
+BuildRequires: python3dist(pytest)
+BuildRequires: python3dist(pytest-cov)
+BuildRequires: python3dist(pytest-mock)
+BuildRequires: python3dist(pytest-xdist)
+
+%global _description %{expand:
+rich library functionality with a set of changes that were not accepted
+to rich itself.
+}
+
+%description %{_description}
+
+%package -n python3-%{srcname}
+Summary: Enrich adds few missing features to the wonderful rich library
+
+Requires: python3dist(rich)
+
+%py_provides python3-%{srcname}
+%description -n python3-%{srcname} %{_description}
+
+%prep
+%autosetup -p1 -n %{srcname}-%{version}
+
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%check
+PYTHONPATH=src %{python3} -m pytest src/enrich/test -v
+
+%files -n python3-%{srcname}
+%license LICENSE
+%{python3_sitelib}/enrich/
+%{python3_sitelib}/enrich-*.egg-info/
+
+%changelog
+* Tue Dec 22 2020 Chedi Toueiti <chedi.toueiti@gmail.com> - 1.2.6-1
+- Initial commit
diff --git a/sources b/sources
new file mode 100644
index 0000000..ef92a52
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (enrich-1.2.6.tar.gz) = 07c280d3526538af9d718c6d423be50d67e8285007a6702b7f3d842725a63cb282192c29481cbea6cbe7da886b630e5694776092dc0ffcaac522ccf1e895b5a9
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 16:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 16:03 [rpms/python-enrich] f45: initial commit chedi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox