[packages/python3-reno] - python-reno.spec updated to 4.1.0 for python 3.6+
qboosh
qboosh at pld-linux.org
Sat Nov 1 20:21:40 CET 2025
commit aadaa3aa34a19b90aec912d42009a6650e48d694
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 1 20:21:29 2025 +0100
- python-reno.spec updated to 4.1.0 for python 3.6+
python-reno-mock.patch | 98 ----------------------------
python-reno.spec | 171 -------------------------------------------------
python3-reno.spec | 104 ++++++++++++++++++++++++++++++
3 files changed, 104 insertions(+), 269 deletions(-)
---
diff --git a/python-reno.spec b/python-reno.spec
deleted file mode 100644
index 13ea39b..0000000
--- a/python-reno.spec
+++ /dev/null
@@ -1,171 +0,0 @@
-# TODO: fix tests and doc
-#
-# Conditional build:
-%bcond_with doc # Sphinx documentation [broken, requires git repo?]
-%bcond_with tests # subunit tests (requires git repo?)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: reno: a New Way to manage Release Notes
-Summary(pl.UTF-8): reno: nowy sposób zarządzania informacjami o wydaniu (Release Notes)
-Name: python-reno
-# keep 2.x here for python2 support
-Version: 2.11.3
-Release: 8
-License: Apache v2.0
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/reno/
-Source0: https://files.pythonhosted.org/packages/source/r/reno/reno-%{version}.tar.gz
-# Source0-md5: c582cf344169a91f8d9a86b22ae3660a
-Patch0: %{name}-mock.patch
-URL: https://docs.openstack.org/reno/
-%if %{with python2}
-BuildRequires: python3-modules >= 1:3.6
-BuildRequires: python-pbr >= 1.4
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-PyYAML >= 3.10.0
-BuildRequires: python-Sphinx >= 1.6.1
-BuildRequires: python-coverage >= 4.0
-BuildRequires: python-dulwich >= 0.15.0
-BuildRequires: python-mock >= 1.2
-BuildRequires: python-six >= 1.9.0
-BuildRequires: python-testtools >= 1.4.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-pbr >= 1.4
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-PyYAML >= 3.10.0
-BuildRequires: python3-Sphinx >= 1.6.1
-BuildRequires: python3-coverage >= 4.0
-BuildRequires: python3-dulwich >= 0.15.0
-BuildRequires: python3-six >= 1.9.0
-BuildRequires: python3-testtools >= 1.4.0
-%endif
-%endif
-%if %{with doc}
-BuildRequires: python3-docutils >= 0.11
-BuildRequires: python3-openstackdocstheme >= 1.11.0
-BuildRequires: sphinx-pdg >= 1.6.1
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python3-modules >= 1:3.6
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Reno is a release notes manager designed with high throughput in mind,
-supporting fast distributed development teams without introducing
-additional development processes. The goal is to encourage detailed
-and accurate release notes for every release.
-
-%description -l pl.UTF-8
-Reno to zarządca informacji o wydaniu, zaprojektowany z myślą o dużym
-przepływie, obsługujący szybkie, rozproszone zespoły programistów bez
-wprowadzania dodatkowych procesów. Celem jest wspieranie szczegółowych
-i dokładnych informacji dla każdego wydania.
-
-%package -n python3-reno
-Summary: reno: a New Way to manage Release Notes
-Summary(pl.UTF-8): reno: nowy sposób zarządzania informacjami o wydaniu (Release Notes)
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-reno
-Reno is a release notes manager designed with high throughput in mind,
-supporting fast distributed development teams without introducing
-additional development processes. The goal is to encourage detailed
-and accurate release notes for every release.
-
-%description -n python3-reno -l pl.UTF-8
-Reno to zarządca informacji o wydaniu, zaprojektowany z myślą o dużym
-przepływie, obsługujący szybkie, rozproszone zespoły programistów bez
-wprowadzania dodatkowych procesów. Celem jest wspieranie szczegółowych
-i dokładnych informacji dla każdego wydania.
-
-%package apidocs
-Summary: API documentation for reno
-Summary(pl.UTF-8): Dokumentacja API modułu reno
-Group: Documentation
-
-%description apidocs
-API documentation for reno.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu reno.
-
-%prep
-%setup -q -n reno-%{version}
-%patch -P 0 -p1
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s reno/tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m unittest discover -s reno/tests
-%endif
-%endif
-
-%if %{with doc}
-PYTHONPATH=$(pwd) \
-sphinx-build-3 -b html doc/source doc/source/_build/html
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/reno{,-2}
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/reno{,-3}
-ln -s reno-3 $RPM_BUILD_ROOT%{_bindir}/reno
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README.rst
-%attr(755,root,root) %{_bindir}/reno-2
-%{py_sitescriptdir}/reno
-%{py_sitescriptdir}/reno-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-reno
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README.rst
-%attr(755,root,root) %{_bindir}/reno
-%attr(755,root,root) %{_bindir}/reno-3
-%{py3_sitescriptdir}/reno
-%{py3_sitescriptdir}/reno-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/*
-%endif
diff --git a/python3-reno.spec b/python3-reno.spec
new file mode 100644
index 0000000..78db473
--- /dev/null
+++ b/python3-reno.spec
@@ -0,0 +1,104 @@
+# TODO: fix tests and doc
+#
+# Conditional build:
+%bcond_with doc # Sphinx documentation (requires git repo?)
+%bcond_with tests # subunit tests (requires git repo?)
+
+Summary: reno: a New Way to manage Release Notes
+Summary(pl.UTF-8): reno: nowy sposób zarządzania informacjami o wydaniu (Release Notes)
+Name: python3-reno
+Version: 4.1.0
+Release: 1
+License: Apache v2.0
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/reno
+Source0: https://files.pythonhosted.org/packages/source/r/reno/reno-%{version}.tar.gz
+# Source0-md5: 765a468a3ba485747504d7a3a6e78604
+URL: https://docs.openstack.org/reno/
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-pbr >= 1.4
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-PyYAML >= 5.3.1
+BuildRequires: python3-Sphinx >= 1.6.1
+BuildRequires: python3-coverage >= 4.0
+BuildRequires: python3-dulwich >= 0.15.0
+BuildRequires: python3-packaging >= 20.4
+BuildRequires: python3-stestr >= 2.0.0
+BuildRequires: python3-subunit >= 0.0.18
+BuildRequires: python3-testscenarios >= 0.4
+BuildRequires: python3-testtools >= 1.4.0
+%endif
+%if %{with doc}
+BuildRequires: python3-docutils >= 0.11
+BuildRequires: python3-openstackdocstheme >= 2.2.1
+BuildRequires: sphinx-pdg >= 2.0.0
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Reno is a release notes manager designed with high throughput in mind,
+supporting fast distributed development teams without introducing
+additional development processes. The goal is to encourage detailed
+and accurate release notes for every release.
+
+%description -l pl.UTF-8
+Reno to zarządca informacji o wydaniu, zaprojektowany z myślą o dużym
+przepływie, obsługujący szybkie, rozproszone zespoły programistów bez
+wprowadzania dodatkowych procesów. Celem jest wspieranie szczegółowych
+i dokładnych informacji dla każdego wydania.
+
+%package apidocs
+Summary: API documentation for reno
+Summary(pl.UTF-8): Dokumentacja API modułu reno
+Group: Documentation
+
+%description apidocs
+API documentation for reno.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu reno.
+
+%prep
+%setup -q -n reno-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s reno/tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html doc/source doc/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/reno{,-3}
+ln -s reno-3 $RPM_BUILD_ROOT%{_bindir}/reno
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README.rst
+%attr(755,root,root) %{_bindir}/reno-3
+%{_bindir}/reno
+%{py3_sitescriptdir}/reno
+%{py3_sitescriptdir}/reno-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/_build/html/*
+%endif
diff --git a/python-reno-mock.patch b/python-reno-mock.patch
deleted file mode 100644
index be77958..0000000
--- a/python-reno-mock.patch
+++ /dev/null
@@ -1,98 +0,0 @@
---- reno-2.11.3/reno/tests/test_cache.py.orig 2019-04-04 05:59:54.000000000 +0200
-+++ reno-2.11.3/reno/tests/test_cache.py 2020-01-13 20:36:08.997885009 +0100
-@@ -15,7 +15,10 @@
- import fixtures
- import textwrap
-
--import mock
-+try:
-+ import mock
-+except ImportError:
-+ from unittest import mock
-
- from reno import cache
- from reno import config
---- reno-2.11.3/reno/tests/test_config.py.orig 2019-04-04 05:59:54.000000000 +0200
-+++ reno-2.11.3/reno/tests/test_config.py 2020-01-13 20:36:28.684445025 +0100
-@@ -21,7 +21,10 @@
- from reno import main
- from reno.tests import base
-
--import mock
-+try:
-+ import mock
-+except ImportError:
-+ from unittest import mock
-
-
- class TestConfig(base.TestCase):
---- reno-2.11.3/reno/tests/test_create.py.orig 2019-04-04 05:59:54.000000000 +0200
-+++ reno-2.11.3/reno/tests/test_create.py 2020-01-13 20:36:44.131028010 +0100
-@@ -14,7 +14,10 @@
-
- import fixtures
- import io
--import mock
-+try:
-+ import mock
-+except ImportError:
-+ from unittest import mock
-
- from reno import create
- from reno.tests import base
---- reno-2.11.3/reno/tests/test_formatter.py.orig 2019-04-04 05:59:54.000000000 +0200
-+++ reno-2.11.3/reno/tests/test_formatter.py 2020-01-13 20:36:59.774276596 +0100
-@@ -12,7 +12,10 @@
- # License for the specific language governing permissions and limitations
- # under the License.
-
--import mock
-+try:
-+ import mock
-+except ImportError:
-+ from unittest import mock
-
- from reno import config
- from reno import formatter
---- reno-2.11.3/reno/tests/test_loader.py.orig 2019-04-04 05:59:54.000000000 +0200
-+++ reno-2.11.3/reno/tests/test_loader.py 2020-01-13 20:37:14.794195227 +0100
-@@ -16,7 +16,10 @@
- import textwrap
-
- import fixtures
--import mock
-+try:
-+ import mock
-+except ImportError:
-+ from unittest import mock
- import six
- import yaml
-
---- reno-2.11.3/reno/tests/test_scanner.py.orig 2020-01-13 20:37:28.574120574 +0100
-+++ reno-2.11.3/reno/tests/test_scanner.py 2020-01-13 20:37:30.737442188 +0100
-@@ -25,7 +25,10 @@
- from dulwich import diff_tree
- from dulwich import objects
- import fixtures
--import mock
-+try:
-+ import mock
-+except ImportError:
-+ from unittest import mock
- from testtools.content import text_content
-
- from reno import config
---- reno-2.11.3/reno/tests/test_utils.py.orig 2019-04-04 05:59:54.000000000 +0200
-+++ reno-2.11.3/reno/tests/test_utils.py 2020-01-13 20:37:40.040725121 +0100
-@@ -12,7 +12,10 @@
- # License for the specific language governing permissions and limitations
- # under the License.
-
--import mock
-+try:
-+ import mock
-+except ImportError:
-+ from unittest import mock
- import six
-
- from reno.tests import base
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-reno.git/commitdiff/aadaa3aa34a19b90aec912d42009a6650e48d694
More information about the pld-cvs-commit
mailing list