public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-authheaders] epel10: Update to version 0.16.3; Fixes: RHBZ#2258214
@ 2026-11-04 22:02 Michel Lind
  0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-11-04 22:02 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-authheaders
            Branch : epel10
            Commit : e1d2dcc7864538967cca08c4091482c8d62f1f5a
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2024-08-28T12:16:48-05:00
            Stats  : +32/-6 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-authheaders/c/e1d2dcc7864538967cca08c4091482c8d62f1f5a?branch=epel10

            Log:
            Update to version 0.16.3; Fixes: RHBZ#2258214

Signed-off-by: Michel Lind <salimma@fedoraproject.org>

---
diff --git a/.gitignore b/.gitignore
index fd34160..7487423 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /authheaders-0.13.0.tar.gz
 /authheaders-0.15.2.tar.gz
 /authheaders-0.15.3.tar.gz
+/authheaders-0.16.3.tar.gz

diff --git a/python-authheaders.spec b/python-authheaders.spec
index ecce454..ac21b97 100644
--- a/python-authheaders.spec
+++ b/python-authheaders.spec
@@ -1,9 +1,12 @@
+# Some tests fail. Pass --with all_tests to retry
+%bcond_with all_tests
+
 # Created by pyp2rpm-3.3.4
 %global pypi_name authheaders
 
 Name:           python-%{pypi_name}
-Version:        0.15.3
-Release:        5%{?dist}
+Version:        0.16.3
+Release:        1%{?dist}
 Summary:        A library wrapping email authentication header verification and generation
 
 # Licensing described in LICENSE file
@@ -13,6 +16,8 @@ Source0:        %{pypi_source}
 BuildArch:      noarch
 
 BuildRequires:  python3-devel
+BuildRequires:  python3dist(pytest)
+BuildRequires:  help2man
 
 %description
 %{summary}.
@@ -32,6 +37,8 @@ Requires:       publicsuffix-list
 rm -f %{pypi_name}/public_suffix_list.txt
 # Use public suffix data from installed RPM
 ln -s %{_datadir}/publicsuffix/public_suffix_list.dat %{pypi_name}/public_suffix_list.txt
+# fix shebang
+sed -i '/^#!\/usr\/bin\/python3/,+2 d' %{pypi_name}/dmarcpolicyfind.py
 
 %generate_buildrequires
 %pyproject_buildrequires
@@ -43,22 +50,40 @@ ln -s %{_datadir}/publicsuffix/public_suffix_list.dat %{pypi_name}/public_suffix
 %pyproject_install
 %pyproject_save_files %{pypi_name}
 
-# Re-link so this is a relative path
-ln -srf %{buildroot}%{_datadir}/publicsuffix/public_suffix_list.dat %{buildroot}%{python3_sitelib}/%{pypi_name}/public_suffix_list.txt
+mkdir -p %{buildroot}%{_mandir}/man1
+PYTHONPATH=%{buildroot}%{python3_sitelib} help2man --no-info \
+  --name="Find DMARC policy for a domain" \
+  --version-string=%{version} \
+  %{buildroot}%{_bindir}/dmarc-policy-find \
+  -o %{buildroot}%{_mandir}/man1/dmarc-policy-find.1
 
 %check
 %pyproject_check_import %{pypi_name}
-PYTHONPATH=. %{__python3} %{pypi_name}/test/test_authentication.py -v
+# test_authenticate_dmarc_psdsub: test fixture not shipped
+%pytest -v \
+%if %{without all_tests}
+  -k "not test_authenticate_dmarc_psdsub" \
+%endif
+;
 
 %files -n python3-%{pypi_name} -f %{pyproject_files}
 %doc README.md CHANGES
 %license COPYING
 %{_bindir}/dmarc-policy-find
+%{_mandir}/man1/dmarc-policy-find.1*
 
 %changelog
+* Wed Aug 28 2024 Michel Lind <salimma@fedoraproject.org> - 0.16.3-1
+- Update to version 0.16.3; Fixes: RHBZ#2258214
+- Fix rpmlint issues
+
 * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.3-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
 
+* Wed Aug 28 2024 Michel Lind <salimma@fedoraproject.org> - 0.16.3-1
+- Update to version 0.16.3; Fixes: RHBZ#2258214
+- Fix rpmlint issues
+
 * Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.15.3-4
 - Rebuilt for Python 3.13
 

diff --git a/sources b/sources
index 8644fee..29c4aaa 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (authheaders-0.15.3.tar.gz) = e45af947faeb6416160b1b0ee270fb486c3f2d0853ce886e4e66fd57a814838213d73515417f4be25cf3d2e29faa20f183dae7e083aff14bf4c390c0ecddc2f2
+SHA512 (authheaders-0.16.3.tar.gz) = 94741ec6127aa20b128958ba5b386b63d00f27ae68fe6b5ede3a0308bd6a75a9b940fb40b6066b65fefb07e40e85cb412bd59fde6c76f60099d6bf6872ae9a68

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-04 22:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 22:02 [rpms/python-authheaders] epel10: Update to version 0.16.3; Fixes: RHBZ#2258214 Michel Lind

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox