public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Traylen <steve.traylen@cern.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/python-magnumclient] epel10.2: Update to v4.10.0
Date: Mon, 10 Aug 2026 09:50:28 GMT	[thread overview]
Message-ID: <178635542886.1.3005077944785203669.rpms-python-magnumclient-1c78e880f05c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/python-magnumclient
            Branch : epel10.2
            Commit : 1c78e880f05ccdc4bbb34dd219661622672087a7
            Author : Steve Traylen <steve.traylen@cern.ch>
            Date   : 2026-08-10T11:24:24+02:00
            Stats  : +111/-133 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-magnumclient/c/1c78e880f05ccdc4bbb34dd219661622672087a7?branch=epel10.2

            Log:
            Update to v4.10.0

- Resolves: rhbz#2511009

---
diff --git a/.gitignore b/.gitignore
index a38d8fd..ff67e66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,31 +1,3 @@
-/python-magnumclient-1.1.0.tar.gz
-/python-magnumclient-2.0.0.tar.gz
-/python-magnumclient-2.3.0.tar.gz
-/python-magnumclient-2.9.1.tar.gz
-/python-magnumclient-2.12.0.tar.gz
-/python-magnumclient-2.15.0.tar.gz
-/python-magnumclient-3.0.0.tar.gz
-/python-magnumclient-3.2.1.tar.gz
-/0x2426b928085a020d8a90d0d879ab7008d0896c8a.txt
-/python-magnumclient-3.2.1.tar.gz.asc
-/python-magnumclient-3.4.0.tar.gz
-/0x5d2d1e4fb8d38e6af76c50d53d4fec30cf5ce3da.txt
-/python-magnumclient-3.4.0.tar.gz.asc
-/python-magnumclient-3.6.0.tar.gz
-/0x01527a34f0d0080f8a5db8d6eb6c5df21b4b6363.txt
-/python-magnumclient-3.6.0.tar.gz.asc
-/python-magnumclient-4.0.0.tar.gz
-/0xa63ea142678138d1bb15f2e303bdfd64dd164087.txt
-/python-magnumclient-4.0.0.tar.gz.asc
-/python-magnumclient-4.1.0.tar.gz
-/0xa7475c5f2122fec3f90343223fe3bf5aad1080e4.txt
-/python-magnumclient-4.1.0.tar.gz.asc
-/python-magnumclient-4.2.0.tar.gz
-/0x815afec729392386480e076dcc0dfe2d21c023c9.txt
-/python-magnumclient-4.2.0.tar.gz.asc
-/python-magnumclient-4.4.0.tar.gz
-/0x2ef3fe0ec2b075ab7458b5f8b702b20b13df2318.txt
-/python-magnumclient-4.4.0.tar.gz.asc
-/python-magnumclient-4.7.0.tar.gz
-/0xf8675126e2411e7748dd46662fc2093e4682645f.txt
-/python-magnumclient-4.7.0.tar.gz.asc
+/0x*.txt
+/python_magnumclient-*.tar.gz
+/python_magnumclient-*.tar.gz.asc

diff --git a/1d0385e236fc65d1b1beb0e9da46ae8df6a0947d.patch b/1d0385e236fc65d1b1beb0e9da46ae8df6a0947d.patch
new file mode 100644
index 0000000..29bdbab
--- /dev/null
+++ b/1d0385e236fc65d1b1beb0e9da46ae8df6a0947d.patch
@@ -0,0 +1,23 @@
+From 1d0385e236fc65d1b1beb0e9da46ae8df6a0947d Mon Sep 17 00:00:00 2001
+From: Michal Nasiadka <mnasiadka@gmail.com>
+Date: Mon, 9 Mar 2026 12:01:33 +0100
+Subject: [PATCH] Add requests-mock to test-requirements.txt
+
+Change-Id: I01875ce6db56694decea3aaebe9ef57f109c1964
+Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
+---
+ test-requirements.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/test-requirements.txt b/test-requirements.txt
+index a15caacf..b5d097f6 100644
+--- a/test-requirements.txt
++++ b/test-requirements.txt
+@@ -5,6 +5,7 @@ fixtures>=3.0.0 # Apache-2.0/BSD
+ python-openstackclient>=3.12.0 # Apache-2.0
+ oslotest>=3.2.0 # Apache-2.0
+ osprofiler>=1.4.0 # Apache-2.0
++requests-mock>=1.2.0 # Apache-2.0
+ stestr>=2.0.0 # Apache-2.0
+ testscenarios>=0.4 # Apache-2.0/BSD
+ testtools>=2.2.0 # MIT

diff --git a/python-magnumclient.rpmlintrc b/python-magnumclient.rpmlintrc
new file mode 100644
index 0000000..01b280e
--- /dev/null
+++ b/python-magnumclient.rpmlintrc
@@ -0,0 +1,14 @@
+
+
+addFilter("python-magnumclient.src: E: spelling-error \('mangumclient'")
+addFilter("python-magnumclient-doc.noarch: E: spelling-error \('mangumclient'")
+addFilter("python3-magnumclient.noarch: E: spelling-error \('mangumclient'")
+
+
+addFilter("python3-magnumclient.noarch: W: no-manual-page-for-binary magnum")
+
+# https://github.com/sphinx-doc/sphinx/issues/13734
+addFilter("python-magnumclient-doc.noarch: W: files-duplicate /usr/share/doc/python-magnumclient-doc/html/_static/images/openstack-logo-full.png /usr/share/doc/python-magnumclient-doc/html/_static/images/logo-full.png")
+addFilter("python-magnumclient-doc.noarch: W: files-duplicate /usr/share/doc/python-magnumclient-doc/html/_static/images/openstack-logo-full.svg /usr/share/doc/python-magnumclient-doc/html/_static/images/logo-full.svg")
+addFilter("python-magnumclient-doc.noarch: W: files-duplicate /usr/share/doc/python-magnumclient-doc/html/_static/images/openstack-logo-vert.png /usr/share/doc/python-magnumclient-doc/html/_static/images/logo-vert.png")
+addFilter("python-magnumclient-doc.noarch: W: files-duplicate /usr/share/doc/python-magnumclient-doc/html/_static/images/openstack-logo-vert.svg /usr/share/doc/python-magnumclient-doc/html/_static/images/logo-vert.svg")

diff --git a/python-magnumclient.spec b/python-magnumclient.spec
index 04ab9bb..4ec0918 100644
--- a/python-magnumclient.spec
+++ b/python-magnumclient.spec
@@ -1,156 +1,125 @@
-%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
-%global sources_gpg_sign 0xf8675126e2411e7748dd46662fc2093e4682645f
-%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
-# we are excluding some BRs from automatic generator
-%global excluded_brs doc8 bandit pre-commit hacking flake8-import-order
-%global sname python-magnumclient
-%global pname magnumclient
+%global sources_gpg 1
+%global sources_gpg_sign 0xb8e9315f48553ec5aff9ffe5e69d97da9efb5aff
+
+%global sname magnumclient
 %global with_doc 1
-# Exclude sphinx from BRs if docs are disabled
-%if ! 0%{?with_doc}
-%global excluded_brs %{excluded_brs} sphinx openstackdocstheme
-%endif
 
-%if ! 0%{?rhel}
-%global excluded_brs %{excluded_brs} osprofiler
-%endif
+%global _description %{expand:
+This is the client library for Magnum built on the Magnum API.
+It provides a Python API ( the mangumclient module ) and a
+command line tool (magnum).}
 
-%global common_desc \
-This is a client library for Magnum built on the Magnum API. \
-It provides a Python API (the magnumclient module) and a \
-command-line tool (magnum).
 
-%global common_desc_tests Python-magnumclient test subpackage
+Name:             python-%{sname}
+Version:          4.10.0
+Release:          %autorelease
+Summary:          Python API and CLI for the Magnum Client
+License:          Apache-2.0
+URL:              https://launchpad.net/%{name}
+Source0:          https://tarballs.openstack.org/%{name}/python_%{sname}-%{version}.tar.gz
+# Required for tarball sources verification
 
-Name:           python-%{pname}
-Version:        4.7.0
-Release:        %autorelease
-Summary:        Client library for Magnum API
+# Test requirement for requests-mock - released with 4.11.0
+Patch0:           https://github.com/openstack/python-magnumclient/commit/1d0385e236fc65d1b1beb0e9da46ae8df6a0947d.patch
 
-License:        Apache-2.0
-URL:            https://launchpad.net/python-magnumclient
-Source0:        https://tarballs.openstack.org/%{sname}/%{sname}-%{upstream_version}.tar.gz
-# Required for tarball sources verification
 %if 0%{?sources_gpg} == 1
-Source101:        https://tarballs.openstack.org/%{sname}/%{sname}-%{upstream_version}.tar.gz.asc
+Source101:        https://tarballs.openstack.org/%{name}/python_%{sname}-%{version}.tar.gz.asc
 Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
 %endif
-BuildArch:      noarch
+
+BuildArch:        noarch
 
 # Required for tarball sources verification
 %if 0%{?sources_gpg} == 1
-BuildRequires:  /usr/bin/gpgv2
+BuildRequires:    /usr/bin/gpgv2
 %endif
 
-%description
-%{common_desc}
+BuildRequires:    git-core
+BuildRequires:    python3-devel
+
+
+%description %{_description}
+
 
-%package -n     python3-%{pname}
-Summary:        Client library for Magnum API
+%package -n python3-%{sname}
+Summary:          %{summary}
 
-BuildRequires:  python3-devel
-BuildRequires:  pyproject-rpm-macros
-BuildRequires:  git-core
 
-%description -n python3-%{pname}
-%{common_desc}
+%description -n python3-%{sname} %{_description}
+
 
 %if 0%{?with_doc}
-%package -n python-%{pname}-doc
-Summary:        python-magnumclient documentation
+%package doc
+Summary:          Documentation for OpenStack Magnum API Client
 
-%description -n python-%{pname}-doc
-Documentation for python-magnumclient
-%endif
 
-%package -n python3-%{pname}-tests
-Summary: Python-magnumclient test subpackage
-
-Requires:  python3-%{pname} = %{version}-%{release}
-Requires:  python3-oslo-utils
-Requires:  python3-stevedore
-Requires:  python3-requests
-Requires:  python3-oslo-i18n
-Requires:  python3-fixtures
-Requires:  python3-mock
-Requires:  python3-testtools
-Requires:  python3-keystoneauth1
-Requires:  python3-prettytable
-Requires:  python3-stestr
-%if 0%{?rhel}
-Requires:  python3-osprofiler
+%description doc
+%{_description}
+
+This package contains auto-generated documentation.
 %endif
 
-%description -n python3-%{pname}-tests
-%{common_desc_tests}
 
 %prep
-# Required for tarball sources verification
 %if 0%{?sources_gpg} == 1
 %{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
 %endif
-%autosetup -n %{name}-%{upstream_version} -S git
-
+%autosetup -n python_%{sname}-%{version} -S git
 
+# Ignore global online constraints file
 sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini
-sed -i "s/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/" tox.ini
-sed -i /^minversion.*/d tox.ini
-sed -i /^requires.*virtualenv.*/d tox.ini
-
-# Exclude some bad-known BRs
-for pkg in %{excluded_brs}; do
-  for reqfile in doc/requirements.txt test-requirements.txt; do
-    if [ -f $reqfile ]; then
-      sed -i /^${pkg}.*/d $reqfile
-    fi
-  done
-done
-
-# Automatic BR generation
+
+# Drop dependencies for lint, coverage, ...
+
+sed -i \
+    -e "/^coverage[[:space:]]*[!><=]/d" \
+    -e "/^reno[[:space:]]*[!><=]/d" \
+    -e "/^hacking[[:space:]]*[!><=]/d" \
+    -e "/^bandit[[:space:]]*[!><=]/d" \
+    -e "/^osprofiler[[:space:]]*[!><=]/d" \
+    test-requirements.txt doc/requirements.txt
+
+
 %generate_buildrequires
 %if 0%{?with_doc}
-  %pyproject_buildrequires -t -e %{default_toxenv},docs
+%pyproject_buildrequires -t -e %{default_toxenv},docs
 %else
-  %pyproject_buildrequires -t -e %{default_toxenv}
+%pyproject_buildrequires -t -e %{default_toxenv}
 %endif
 
+
 %build
 %pyproject_wheel
 
+
+%install
+%pyproject_install
+
+%pyproject_save_files -l %{sname}
+
+
 %if 0%{?with_doc}
-# generate html docs
 %tox -e docs
 # Fix hidden-file-or-dir warnings
-rm -rf doc/build/html/.{doctrees,buildinfo}
+rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo doc/build/html/.htaccess
 %endif
 
-%install
-%pyproject_install
 
 %check
-%if 0%{?rhel}
 %tox -e %{default_toxenv}
-%else
-%tox -e %{default_toxenv} || true
-%endif
 
 
-%files -n python3-%{pname}
-%doc README.rst
-%license LICENSE
-%{python3_sitelib}/%{pname}
+%files -n python3-%{sname} -f %{pyproject_files}
+%doc ChangeLog README.rst
 %{_bindir}/magnum
-%{python3_sitelib}/*.dist-info
-%exclude %{python3_sitelib}/%{pname}/tests
+
 
 %if 0%{?with_doc}
-%files -n python-%{pname}-doc
-%license LICENSE
+%files doc
 %doc doc/build/html
+%license LICENSE
 %endif
 
-%files -n python3-%{pname}-tests
-%{python3_sitelib}/%{pname}/tests
 
 %changelog
 %autochangelog

diff --git a/sources b/sources
index 7cf183c..e29cb90 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (python-magnumclient-4.7.0.tar.gz) = 2ad3fbfcdd0e8deae6b4741f201ff6930abd77774107d28246307b6b86023441036bd12a542e60a82a6323f4615b0532fb6d8a298b8858b14067cf9c77f4d24d
-SHA512 (0xf8675126e2411e7748dd46662fc2093e4682645f.txt) = 1e9471d80d44bb3570b8054e845583b4c06f7177dc4fa8a5907e6185806ce794a594bf42d5c336ee20004a58e53748f275b749816e75f4cc3b9fecb8075ccbdf
-SHA512 (python-magnumclient-4.7.0.tar.gz.asc) = fe877e405b3382c50d3496f3213bfbd3d8719b506384120ac0fe50896fd13ed4e2178c14735459b73a6f9ba862fdcc8429b54aac83cd635cbfea91f331c0627d
+SHA512 (0xb8e9315f48553ec5aff9ffe5e69d97da9efb5aff.txt) = 0b92cb980baab073ca49f66f0dbc2c3a939c677b00351dd693063520e9788e2c753c8ee3a8960b953acc2ef77c0150d1da76fe1a9d3b65f57fa1167628885788
+SHA512 (python_magnumclient-4.10.0.tar.gz) = 2490ad97e1f2b9895f847a01c0d746a99ba62db5b2376ced386e4bcdaf85e98d652ca573b416cb92c5c9b8fa81c2c4e16f8fd29ec5b804c3569c743907abcb1f
+SHA512 (python_magnumclient-4.10.0.tar.gz.asc) = 29a05c5b6ca99b3fe9b29e03975ba738ad37a0d6617201d6d03875a04911ccf35b3cf5ac62ad203d4447244ac254c809459c8e9c368fc8e9ca9e0ec4c380c3fa

                 reply	other threads:[~2026-08-10  9:50 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=178635542886.1.3005077944785203669.rpms-python-magnumclient-1c78e880f05c@fedoraproject.org \
    --to=steve.traylen@cern.ch \
    --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