public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-oslo-concurrency] noevent: Sync from RDO bobcat release from python-oslo-concurrency-5.2.0-1.el9s
@ 2026-06-07 12:40 Alfredo Moralejo
0 siblings, 0 replies; only message in thread
From: Alfredo Moralejo @ 2026-06-07 12:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-oslo-concurrency
Branch : noevent
Commit : 5f90e39948b47d2f45e3fa4e9c72463af38bf820
Author : Alfredo Moralejo <amoralej@redhat.com>
Date : 2023-10-26T08:16:56+02:00
Stats : +51/-43 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-oslo-concurrency/c/5f90e39948b47d2f45e3fa4e9c72463af38bf820?branch=noevent
Log:
Sync from RDO bobcat release from python-oslo-concurrency-5.2.0-1.el9s
---
diff --git a/.gitignore b/.gitignore
index b351999..ef0a725 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,3 +29,6 @@
/oslo.concurrency-5.1.1.tar.gz
/0xa7475c5f2122fec3f90343223fe3bf5aad1080e4.txt
/oslo.concurrency-5.1.1.tar.gz.asc
+/oslo.concurrency-5.2.0.tar.gz
+/0x815afec729392386480e076dcc0dfe2d21c023c9.txt
+/oslo.concurrency-5.2.0.tar.gz.asc
diff --git a/python-oslo-concurrency.spec b/python-oslo-concurrency.spec
index 811010c..2a5660a 100644
--- a/python-oslo-concurrency.spec
+++ b/python-oslo-concurrency.spec
@@ -1,7 +1,13 @@
%{!?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
+# Exclude sphinx from BRs if docs are disabled
+%if ! 0%{?with_doc}
+%global excluded_brs %{excluded_brs} sphinx openstackdocstheme
+%endif
%global with_doc 1
%global pypi_name oslo.concurrency
@@ -16,11 +22,11 @@ external processes.
Tests for the Oslo concurrency library.
Name: python-oslo-concurrency
-Version: 5.1.1
-Release: 4%{?dist}
+Version: 5.2.0
+Release: 1%{?dist}
Summary: OpenStack Oslo concurrency library
-License: ASL 2.0
+License: Apache-2.0
URL: https://launchpad.net/oslo
Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
# Required for tarball sources verification
@@ -40,32 +46,10 @@ BuildRequires: /usr/bin/gpgv2
%package -n python3-%{pkg_name}
Summary: OpenStack Oslo concurrency library
-%{?python_provide:%python_provide python3-%{pkg_name}}
BuildRequires: python3-devel
-BuildRequires: python3-pbr
BuildRequires: git-core
-# Required for tests
-BuildRequires: python3-hacking
-BuildRequires: python3-oslotest
-BuildRequires: python3-fixtures
-BuildRequires: python3-eventlet
-BuildRequires: python3-oslo-config
-BuildRequires: python3-oslo-utils
-BuildRequires: python3-fasteners
-# Required to compile translation files
-BuildRequires: python3-babel
BuildRequires: pyproject-rpm-macros
-BuildRequires: python3-tox
-BuildRequires: python3-tox-current-env
-BuildRequires: python3-stestr
-
-Requires: python3-pbr
-Requires: python3-oslo-config >= 2:5.2.0
-Requires: python3-oslo-i18n >= 3.15.3
-Requires: python3-oslo-utils >= 3.33.0
-Requires: python3-fasteners
-
Requires: python-%{pkg_name}-lang = %{version}-%{release}
%description -n python3-%{pkg_name}
@@ -76,10 +60,6 @@ Requires: python-%{pkg_name}-lang = %{version}-%{release}
%package -n python-%{pkg_name}-doc
Summary: Documentation for the Oslo concurrency library
Group: Documentation
-BuildRequires: python3-sphinx
-BuildRequires: python3-openstackdocstheme
-BuildRequires: python3-sphinxcontrib-apidoc
-
%description -n python-%{pkg_name}-doc
Documentation for the Oslo concurrency library.
@@ -87,7 +67,6 @@ Documentation for the Oslo concurrency library.
%package -n python3-%{pkg_name}-tests
Summary: Tests for the Oslo concurrency library
-%{?python_provide:%python_provide python3-%{pkg_name}-tests}
Requires: python3-%{pkg_name} = %{version}-%{release}
Requires: python3-hacking
@@ -110,24 +89,47 @@ Translation files for Oslo concurrency library
%{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
%endif
%autosetup -n %{pypi_name}-%{upstream_version} -S git
-# Let RPM handle the dependencies
-rm -rf {test-,}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
+
+
+%install
+%pyproject_install
# Generate i18n files
-python3 setup.py compile_catalog -d build/lib/oslo_concurrency/locale --domain oslo_concurrency
+python3 setup.py compile_catalog -d %{buildroot}%{python3_sitelib}/oslo_concurrency/locale --domain oslo_concurrency
%if 0%{?with_doc}
# generate html docs
-sphinx-build-3 -b html doc/source doc/build/html
+PYTHONPATH="%{buildroot}/%{python3_sitelib}"
+%tox -e docs
# remove the sphinx-build-3 leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%endif
-%install
-%{py3_install}
ln -s ./lockutils-wrapper %{buildroot}%{_bindir}/lockutils-wrapper-3
# Install i18n .mo files (.po and .pot are not required)
@@ -140,7 +142,7 @@ mv %{buildroot}%{python3_sitelib}/oslo_concurrency/locale %{buildroot}%{_datadir
%find_lang oslo_concurrency --all-name
%check
-%tox
+%tox -e %{default_toxenv}
%files -n python3-%{pkg_name}
%doc README.rst
@@ -148,7 +150,7 @@ mv %{buildroot}%{python3_sitelib}/oslo_concurrency/locale %{buildroot}%{_datadir
%{_bindir}/lockutils-wrapper
%{_bindir}/lockutils-wrapper-3
%{python3_sitelib}/oslo_concurrency
-%{python3_sitelib}/*.egg-info
+%{python3_sitelib}/*.dist-info
%exclude %{python3_sitelib}/oslo_concurrency/tests
%if 0%{?with_doc}
@@ -164,6 +166,9 @@ mv %{buildroot}%{python3_sitelib}/oslo_concurrency/locale %{buildroot}%{_datadir
%license LICENSE
%changelog
+* Thu Oct 26 2023 Alfredo Moralejo <amoralej@gmail.com> 5.2.0-1
+- Update to upstream version 5.2.0
+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
diff --git a/sources b/sources
index 0c4510e..e07f520 100644
--- a/sources
+++ b/sources
@@ -1,3 +1,3 @@
-SHA512 (oslo.concurrency-5.1.1.tar.gz) = 2eac13529f1635d39b5866d20d1f077ddcb2a676e78f4f50abe1df13c2fbf9f85aea1b360fde01e983459dcdc4958783477a87eb8fad106362e81e0f77b36561
-SHA512 (0xa7475c5f2122fec3f90343223fe3bf5aad1080e4.txt) = cc8731a0fbdf791e51887609d13ee0ba402528572ab075419be998e29510211a6423fdfabc694eef8b654403d43cdcfc6b06ee244df58c5c4abc3e77ce85da24
-SHA512 (oslo.concurrency-5.1.1.tar.gz.asc) = 65920b049b3bceddb7578aba1eff817c9cc5064c7af72085e912869a02405dbaa2ce788cc9f8bd3c166c29f55a054df07fd6afc483620ff981d7095e4ef8bb00
+SHA512 (oslo.concurrency-5.2.0.tar.gz) = 9f645aa611882e1b7218a7fbf65b54fef523d9cf067f894e9441c0a8de3ab80495ec8a167604412385edf12fc7a53b73ac0ef63e977889db7021dd5b93b0d72f
+SHA512 (0x815afec729392386480e076dcc0dfe2d21c023c9.txt) = be660eacaae93572475d0ae4e9cc29fc90897ec8a2ca8f4d0c5c7dcf682de9933e71a811f82b067fe5cb92de90165099ad7b49be98a6082c733a7f6b5b5f5a77
+SHA512 (oslo.concurrency-5.2.0.tar.gz.asc) = 03a0c55f9c1f6eb6e2ff842a2f2c232b3001bfea1dcd85e07eef053df84572b2876160bf95ba7a5180d2ab6b80a4526855aec3e36b9121b513b87d5a7728c2a8
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-07 12:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-07 12:40 [rpms/python-oslo-concurrency] noevent: Sync from RDO bobcat release from python-oslo-concurrency-5.2.0-1.el9s Alfredo Moralejo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox