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-ipmi] f44: spec modernization + enable tests fix rhbz#2377809
Date: Sat, 13 Jun 2026 00:02:57 GMT	[thread overview]
Message-ID: <178130897718.1.731986323006735970.rpms-python-ipmi-0978b9a36f04@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-ipmi
            Branch : f44
            Commit : 0978b9a36f0402329241dc3ad745d3ab16902943
            Author : Filipe Rosset <filiperosset@fedoraproject.org>
            Date   : 2026-06-12T20:47:32-03:00
            Stats  : +16/-17 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-ipmi/c/0978b9a36f0402329241dc3ad745d3ab16902943?branch=f44

            Log:
            spec modernization + enable tests fix rhbz#2377809

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

---
diff --git a/python-ipmi.spec b/python-ipmi.spec
index bbee517..0cb70da 100644
--- a/python-ipmi.spec
+++ b/python-ipmi.spec
@@ -5,50 +5,49 @@ Name:           python-%{srcname}
 Version:        0.5.5
 Release:        %autorelease
 Summary:        Pure python IPMI library
-# Automatically converted from old format: LGPLv2+ - review is highly recommended.
-License:        LicenseRef-Callaway-LGPLv2+
+License:        LGPL-2.1-or-later
 URL:            https://github.com/kontron/python-ipmi
 Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
 BuildArch:      noarch
 
-%?python_enable_dependency_generator
-
-BuildRequires: python3-devel
-BuildRequires: python3dist(markdown)
-BuildRequires: python3dist(setuptools)
-
+BuildRequires:  python3-devel
+BuildRequires:  python3dist(pyyaml)
+BuildRequires:  python3dist(pytest)
 
 %description
 Pure Python IPMI Library.
 
 %package -n     python3-%{srcname}
 Summary:        %{summary}
-%{?python_provide:%python_provide python3-%{srcname}}
+Requires:       python3dist(pyyaml)
 
 %description -n python3-%{srcname}
 Pure Python IPMI Library.
 
 %prep
 %autosetup -n %{pypi_name}-%{version} -p1
-# Remove bundled egg-info
-rm -rf %{pypi_name}.egg-info
 
 find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} ';'
+sed -i 's/from mock import/from unittest.mock import/g' tests/*.py
+
+%generate_buildrequires
+%pyproject_buildrequires
 
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install 
+%pyproject_install
+%pyproject_save_files pyipmi
 
 %check
-export PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib}
+%pyproject_check_import
+%pytest -k "not (test_fru_inventory_from_file or test_board_area or test_product_area or test_multirecord_with_power_module_capability_record or test_upgrade_image)"
 
-%files -n python3-%{srcname}
+%files -n python3-%{srcname} -f %{pyproject_files}
+%license COPYING
 %doc README.rst
 %{_bindir}/ipmitool.py
-%{python3_sitelib}/pyipmi
-%{python3_sitelib}/*-py%{python3_version}.egg-info
 
 %changelog
 %autochangelog

                 reply	other threads:[~2026-06-13  0:02 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=178130897718.1.731986323006735970.rpms-python-ipmi-0978b9a36f04@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