public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Alfredo Moralejo <amoralej@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-magnumclient] epel10: Sync from RDO bobcat release from python-magnumclient-4.2.0-1.el9s
Date: Mon, 10 Aug 2026 09:49:59 GMT [thread overview]
Message-ID: <178635539903.1.13786756905929199613.rpms-python-magnumclient-fbfde0c71202@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-magnumclient
Branch : epel10
Commit : fbfde0c71202f65d07477e2cb8726097856295c8
Author : Alfredo Moralejo <amoralej@redhat.com>
Date : 2023-10-26T13:46:10+02:00
Stats : +53/-58 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-magnumclient/c/fbfde0c71202f65d07477e2cb8726097856295c8?branch=epel10
Log:
Sync from RDO bobcat release from python-magnumclient-4.2.0-1.el9s
---
diff --git a/.gitignore b/.gitignore
index 77fc711..2390808 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,6 @@
/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
diff --git a/python-magnumclient.spec b/python-magnumclient.spec
index 23d6f1b..82bbcee 100644
--- a/python-magnumclient.spec
+++ b/python-magnumclient.spec
@@ -1,9 +1,19 @@
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
-%global sources_gpg_sign 0xa7475c5f2122fec3f90343223fe3bf5aad1080e4
+%global sources_gpg_sign 0x815afec729392386480e076dcc0dfe2d21c023c9
%{!?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 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 common_desc \
This is a client library for Magnum built on the Magnum API. \
@@ -13,11 +23,11 @@ command-line tool (magnum).
%global common_desc_tests Python-magnumclient test subpackage
Name: python-%{pname}
-Version: 4.1.0
-Release: 2%{?dist}
+Version: 4.2.0
+Release: 1%{?dist}
Summary: Client library for Magnum API
-License: ASL 2.0
+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
@@ -37,56 +47,17 @@ BuildRequires: /usr/bin/gpgv2
%package -n python3-%{pname}
Summary: Client library for Magnum API
-%{?python_provide:%python_provide python3-%{pname}}
-Obsoletes: python2-%{pname} < %{version}-%{release}
BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: python3-pbr
+BuildRequires: pyproject-rpm-macros
BuildRequires: git-core
-# test dependencies
-BuildRequires: python3-oslo-utils
-BuildRequires: python3-openstackclient
-BuildRequires: python3-oslo-serialization
-BuildRequires: python3-oslo-log
-%if 0%{?rhel}
-BuildRequires: python3-osprofiler
-%endif
-BuildRequires: python3-stevedore
-BuildRequires: python3-requests
-BuildRequires: python3-oslo-i18n
-BuildRequires: python3-fixtures
-BuildRequires: python3-mock
-BuildRequires: python3-testtools
-BuildRequires: python3-keystoneauth1
-BuildRequires: python3-prettytable
-BuildRequires: python3-stestr
-
-Requires: python3-cryptography
-Requires: python3-keystoneauth1 >= 3.4.0
-Requires: python3-oslo-i18n >= 3.15.3
-Requires: python3-oslo-log >= 3.36.0
-Requires: python3-oslo-serialization >= 2.18.0
-Requires: python3-oslo-utils >= 3.33.0
-Requires: python3-osc-lib >= 1.8.0
-Requires: python3-os-client-config >= 1.28.0
-Requires: python3-pbr
-Requires: python3-prettytable
-
-Requires: python3-decorator
-
%description -n python3-%{pname}
%{common_desc}
%if 0%{?with_doc}
%package -n python-%{pname}-doc
Summary: python-magnumclient documentation
-BuildRequires: python3-sphinx
-BuildRequires: python3-openstackdocstheme
-BuildRequires: python3-os-client-config
-
-BuildRequires: python3-decorator
%description -n python-%{pname}-doc
Documentation for python-magnumclient
@@ -94,7 +65,6 @@ Documentation for python-magnumclient
%package -n python3-%{pname}-tests
Summary: Python-magnumclient test subpackage
-%{?python_provide:%python_provide python2-%{pname}-tests}
Requires: python3-%{pname} = %{version}-%{release}
Requires: python3-oslo-utils
@@ -121,37 +91,56 @@ Requires: python3-osprofiler
%endif
%autosetup -n %{name}-%{upstream_version} -S git
-# let RPM handle deps
-rm -rf *requirements.txt
+
+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
+%generate_buildrequires
+%if 0%{?with_doc}
+ %pyproject_buildrequires -t -e %{default_toxenv},docs
+%else
+ %pyproject_buildrequires -t -e %{default_toxenv}
+%endif
%build
-%{py3_build}
+%pyproject_wheel
%if 0%{?with_doc}
# generate html docs
-# (TODO) Re-add -W once https://review.openstack.org/#/c/554197 is in a
-# tagged release
-sphinx-build-3 -b html doc/source doc/build/html
+%tox -e docs
# Fix hidden-file-or-dir warnings
rm -rf doc/build/html/.{doctrees,buildinfo}
%endif
%install
-%{py3_install}
+%pyproject_install
%check
%if 0%{?rhel}
-PYTHON=%{__python3} stestr run --slowest
+%tox -e %{default_toxenv}
%else
-PYTHON=%{__python3} stestr run --slowest || true
+%tox -e %{default_toxenv} || true
%endif
+
%files -n python3-%{pname}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pname}
%{_bindir}/magnum
-%{python3_sitelib}/*.egg-info
+%{python3_sitelib}/*.dist-info
%exclude %{python3_sitelib}/%{pname}/tests
%if 0%{?with_doc}
@@ -164,6 +153,9 @@ PYTHON=%{__python3} stestr run --slowest || true
%{python3_sitelib}/%{pname}/tests
%changelog
+* Thu Oct 26 2023 Alfredo Moralejo <amoralej@gmail.com> 4.2.0-1
+- Update to upstream version 4.2.0
+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
diff --git a/sources b/sources
index 0bdfb55..5cbc069 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (python-magnumclient-4.1.0.tar.gz) = e0b355ccf6240349d12dd89a0f1ca27a1d337a3cf5c1ae5c5257bbed5da39f7a9b3f1d0f9c1ee77846cedffcfeff03ba7cd13edaab3d9284b6d3cb41db6d8e27
-SHA512 (0xa7475c5f2122fec3f90343223fe3bf5aad1080e4.txt) = cc8731a0fbdf791e51887609d13ee0ba402528572ab075419be998e29510211a6423fdfabc694eef8b654403d43cdcfc6b06ee244df58c5c4abc3e77ce85da24
-SHA512 (python-magnumclient-4.1.0.tar.gz.asc) = 9f9592e507fbee5cd1b4874c2f8c9f20b9b66bee36c95e1310de4c25def1c0867586bbc57583f549a0b324f1cb4c93fbd58fbb59d83e4d87b8372b1c28fb92e4
+SHA512 (python-magnumclient-4.2.0.tar.gz) = 0ec45d0026d08156299ade17a0cc385bf165068ba785ace5506ea237ceef63415496034685510e130f6ad74b0f9fb651c7b1dd2f6fc1f1ab4e1eb8ce699dcff4
+SHA512 (0x815afec729392386480e076dcc0dfe2d21c023c9.txt) = be660eacaae93572475d0ae4e9cc29fc90897ec8a2ca8f4d0c5c7dcf682de9933e71a811f82b067fe5cb92de90165099ad7b49be98a6082c733a7f6b5b5f5a77
+SHA512 (python-magnumclient-4.2.0.tar.gz.asc) = 565e235fc081bc548146c4c4363604b5c3f2e41eb149496e12b00e561a725641ec391650fedf9766e6a6273c9624bfbf91e05609b31af606b107029940a1cc41
reply other threads:[~2026-08-10 9:49 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=178635539903.1.13786756905929199613.rpms-python-magnumclient-fbfde0c71202@fedoraproject.org \
--to=amoralej@redhat.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