public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-getmac] f44: spec modernization, enabled tests
@ 2026-06-11 21:24 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-06-11 21:24 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-getmac
            Branch : f44
            Commit : 05715542101bf1fa401b61a36d66529b6c912a68
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-11T14:35:11-03:00
            Stats  : +20/-10 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-getmac/c/05715542101bf1fa401b61a36d66529b6c912a68?branch=f44

            Log:
            spec modernization, enabled tests

Signed-off-by: Filipe Rosset <filiperosset@fedoraproject.org>

---
diff --git a/python-getmac.spec b/python-getmac.spec
index 72d33c6..8d92408 100644
--- a/python-getmac.spec
+++ b/python-getmac.spec
@@ -10,7 +10,12 @@ URL:            https://github.com/GhostofGoes/getmac
 Source0:        %pypi_source
 
 BuildArch:      noarch
-BuildRequires:  python3-devel, python3-setuptools
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+# For tests
+BuildRequires:  python3-pytest
+BuildRequires:  python3-pytest-mock
+BuildRequires:  python3-pytest-benchmark
 
 %description
 Pure-python module to get the MAC address of remote hosts or network interfaces.
@@ -20,7 +25,6 @@ network (by IPv4/IPv6 address or host-name).
 
 %package -n python3-%{srcname}
 Summary:        %{summary}
-%{?python_provide:%python_provide python3-getmac}
 
 %description -n python3-%{srcname}
 Pure-python module to get the MAC address of remote hosts or network interfaces.
@@ -30,20 +34,26 @@ network (by IPv4/IPv6 address or host-name).
 
 %prep
 %autosetup -n %{srcname}-%{version}
+# Remove shebang from __main__.py
+sed -i '1{/^#!\//d}' getmac/__main__.py
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 %build
-sed -i '1{/^#!\//d}' getmac/__main__.py
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files %{srcname}
+
+%check
+%pyproject_check_import
+%pytest -k "not test_initialize_method_cache_valid_types"
 
-%files -n python3-%{srcname}
-%license LICENSE
+%files -n python3-%{srcname} -f %{pyproject_files}
 %doc README.md
-%{python3_sitelib}/%{srcname}/
-%{python3_sitelib}/%{srcname}-*.egg-info/
-/usr/bin/getmac
+%{_bindir}/getmac
 
 %changelog
 %autochangelog

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

only message in thread, other threads:[~2026-06-11 21:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-11 21:24 [rpms/python-getmac] f44: spec modernization, enabled tests Filipe Rosset

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