public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-editor] rawhide: - Spec cleanup and modernization
@ 2026-08-06 18:43 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-06 18:43 UTC (permalink / raw)
  To: git-commits

            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
 

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

only message in thread, other threads:[~2026-08-06 18:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06 18:43 [rpms/python-editor] rawhide: - Spec cleanup and modernization Filipe Rosset

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