public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-memray] rawhide: Update to 1.20.0 + spec cleanup and modernization + silent rpmlint
@ 2026-08-16  4:24 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-16  4:24 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-memray
            Branch : rawhide
            Commit : 7d0a3d762dd7f95e69832aef8211e0d9e8d2701c
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-07T22:51:44-03:00
            Stats  : +17/-14 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-memray/c/7d0a3d762dd7f95e69832aef8211e0d9e8d2701c?branch=rawhide

            Log:
            Update to 1.20.0 + spec cleanup and modernization + silent rpmlint

Resolves: rhbz#2310953

---
diff --git a/.gitignore b/.gitignore
index 571f83e..bf22cb2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /memray-1.11.0.tar.gz
 /memray-1.12.0.tar.gz
 /memray-1.13.4.tar.gz
+/memray-1.20.0.tar.gz

diff --git a/python-memray.spec b/python-memray.spec
index b505041..dd57a63 100644
--- a/python-memray.spec
+++ b/python-memray.spec
@@ -1,28 +1,28 @@
 %global srcname memray
 %global forgeurl https://github.com/bloomberg/%{srcname}
+Version:        1.20.0
+%forgemeta
 
 # The tests attempt to perform tracing and are generally flaky in mock/koji
 %bcond_with tests
 
 Name:           python-%{srcname}
-Version:        1.13.4
 Release:        %autorelease
 Summary:        Memory profiler for Python applications
 
 # memray is Apache-2.0, the vendored libbacktrace is BSD-3-Clause
 License:        Apache-2.0 AND BSD-3-Clause
 URL:            https://bloomberg.github.io/memray/
-# PyPI tarball doesn't include tests
-Source:         %{forgeurl}/archive/v%{version}/%{srcname}-%{version}.tar.gz
-
-BuildRequires:  gcc-c++
-BuildRequires:  python3-docs
-BuildRequires:  sed
+Source:         %{forgesource}
 
 BuildRequires:  elfutils-debuginfod-client-devel
+BuildRequires:  fdupes
+BuildRequires:  gcc-c++
 BuildRequires:  libunwind-devel
 BuildRequires:  lz4-devel
 BuildRequires:  python3-devel
+BuildRequires:  python3-docs
+BuildRequires:  sed
 %if %{with tests}
 BuildRequires:  python3-pytest
 %endif
@@ -81,17 +81,19 @@ sed -r \
 %build
 %pyproject_wheel
 
-# Build the docs
-PYTHONPATH="build/lib.%{python3_platform}-cpython-%{python3_version_nodots}" \
-  sphinx-build-3 docs html
-rm -r html/{.buildinfo,.doctrees,.nojekyll}
-
 %install
 %pyproject_install
 %pyproject_save_files %{srcname}
 
+# Build the docs
+PYTHONPATH="%{buildroot}%{python3_sitearch}" \
+  sphinx-build-3 docs html
+rm -r html/{.buildinfo,.doctrees,.nojekyll}
+
 # Remove duplicate binary
-rm %{buildroot}%{_bindir}/%{srcname}%{python3_version}
+rm -f %{buildroot}%{_bindir}/%{srcname}%{python3_version}
+
+%fdupes %{buildroot}%{_docdir}
 
 %check
 %if %{with tests}

diff --git a/sources b/sources
index 8d6a0ed..5b7168c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (memray-1.13.4.tar.gz) = d989c7a1b5263c25bd6932a9f3594ce6597241fe5495d2006cb3be470b8c6b483b08b13113f66290ebba6304c003ec7de6ef363d31ffc62f3fdf63d70f93ecad
+SHA512 (memray-1.20.0.tar.gz) = 6b37c89e79162da0c00d24382ba78248885996872f4d31df4081bba2c8ac26b844963ca8179ee491ed5bb90ec9f383e0ad83144ec2d9fdc5b95318bbc463f125

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

only message in thread, other threads:[~2026-08-16  4:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-16  4:24 [rpms/python-memray] rawhide: Update to 1.20.0 + spec cleanup and modernization + silent rpmlint Filipe Rosset

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