public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <filiperosset@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-getmac] rawhide: spec modernization, enabled tests
Date: Thu, 11 Jun 2026 17:35:35 GMT [thread overview]
Message-ID: <178119933568.1.10596484813838094321.rpms-python-getmac-05715542101b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-getmac
Branch : rawhide
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=rawhide
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
reply other threads:[~2026-06-11 17:35 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=178119933568.1.10596484813838094321.rpms-python-getmac-05715542101b@fedoraproject.org \
--to=filiperosset@fedoraproject.org \
--cc=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