public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-editor] rawhide: - Spec cleanup and modernization
Date: Thu, 06 Aug 2026 18:43:28 GMT	[thread overview]
Message-ID: <178604180837.1.16652654853404530165.rpms-python-editor-4a565ba712ef@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-editor
            Branch : rawhide
            Commit : 4a565ba712ef0f28ebba620c0d34b53869b05d3a
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-02T18:29:20-03:00
            Stats  : +16/-17 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-editor/c/4a565ba712ef0f28ebba620c0d34b53869b05d3a?branch=rawhide

            Log:
            - Spec cleanup and modernization

- Resolves: rhbz#2377683 - Stop using deprecated %py3_build/%py3_install macros

---
diff --git a/.gitignore b/.gitignore
index 2c3a929..f6a3a77 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1 @@
-/python-editor-0.4.tar.gz
-/python-editor-1.0.tar.gz
-/python-editor-1.0.1.tar.gz
-/1.0.2.tar.gz
-/1.0.3.tar.gz
-/1.0.4.tar.gz
+/*.tar.gz

diff --git a/python-editor.spec b/python-editor.spec
index 89cee7c..ed1b0ba 100644
--- a/python-editor.spec
+++ b/python-editor.spec
@@ -4,7 +4,7 @@
 
 Name:           python-editor
 Version:        1.0.4
-Release:        29%{?dist}
+Release:        30%{?dist}
 Summary:        Programmatically open an editor, capture the result
 
 # Automatically converted from old format: ASL 2.0 - review is highly recommended.
@@ -18,36 +18,40 @@ Programmatically open an editor, capture the result.
 
 %package -n python3-editor
 Summary:        Programmatically open an editor, capture the result.
-%{?python_provide:%python_provide python3-editor}
 
 BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
 
 %description -n python3-editor
 Programmatically open an editor, capture the result.
 
 %prep
 %setup -q -n %{pypi_name}-%{upstream_version}
-rm -rf %{pypi_name}.egg-info
 # Change shebang according to Python version
 sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' editor.py
 
+%generate_buildrequires
+%pyproject_buildrequires
+
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files -l editor
 chmod a+x $RPM_BUILD_ROOT%{python3_sitelib}/editor.py
 
-%files -n python3-editor
+%check
+%pyproject_check_import
+
+%files -n python3-editor -f %{pyproject_files}
 %doc README.md
-%license LICENSE
-%{python3_sitelib}/*.egg-info/
-%{python3_sitelib}/editor.py*
-%{python3_sitelib}/__pycache__/*
 
 
 %changelog
+* Sun Aug 02 2026 Filipe Rosset <rosset.filipe@gmail.com> - 1.0.4-30
+- Spec cleanup and modernization
+- Resolves: rhbz#2377683 - Stop using deprecated %py3_build/%py3_install macros
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-29
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-08-06 18:43 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=178604180837.1.16652654853404530165.rpms-python-editor-4a565ba712ef@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --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