[packages/python3-sphinxcontrib-towncrier] - updated to 0.2.1a0

qboosh qboosh at pld-linux.org
Wed Mar 23 21:43:19 CET 2022


commit f322177f3549c5f6ecf86c81f419b5cbd1a52d90
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Mar 23 21:45:17 2022 +0100

    - updated to 0.2.1a0

 python3-sphinxcontrib-towncrier.spec | 34 +++++++++++++++++++++++++++++++---
 1 file changed, 31 insertions(+), 3 deletions(-)
---
diff --git a/python3-sphinxcontrib-towncrier.spec b/python3-sphinxcontrib-towncrier.spec
index 4f25dbd..bb3a4c4 100644
--- a/python3-sphinxcontrib-towncrier.spec
+++ b/python3-sphinxcontrib-towncrier.spec
@@ -1,25 +1,41 @@
 #
 # Conditional build:
 %bcond_with	tests	# unit tests
+%bcond_without	doc	# Sphinx documentation
 
 Summary:	An RST directive for injecting a Towncrier-generated changelog draft containing fragments for the unreleased (next) project version
+Summary(pl.UTF-8):	Dyrektywa RST do wstawiania szablonu logu zmian z Towncriera, zawierającego fragmenty dla kolejnej wersji projektu
 Name:		python3-sphinxcontrib-towncrier
-Version:	0.2.0a0
+Version:	0.2.1a0
 Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/sphinxcontrib-towncrier/
 Source0:	https://files.pythonhosted.org/packages/source/s/sphinxcontrib-towncrier/sphinxcontrib-towncrier-%{version}.tar.gz
-# Source0-md5:	556b38e82f42426d6dcc61ad2303ef4d
+# Source0-md5:	b315d29674b2af992e98ef762bcc9de0
 URL:		https://pypi.org/project/sphinxcontrib-towncrier/
-BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	python3-setuptools
+BuildRequires:	python3-setuptools_scm >= 3.5
+BuildRequires:	python3-toml
 %if %{with tests}
 BuildRequires:	python3-Sphinx >= 1.7
 BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-xdist
+BuildRequires:	python3-towncrier >= 19.2
+%endif
+%if %{with doc}
+BuildRequires:	python3-furo >= 2021.02.28.beta28
+BuildRequires:	python3-myst_parser >= 0.13.5
+BuildRequires:	python3-sphinxcontrib-apidoc >= 0.3.0
+# already installed package
+BuildRequires:	python3-sphinxcontrib-towncrier
+BuildRequires:	python3-towncrier >= 19.2
+BuildRequires:	sphinx-pdg >= 3.5.1
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRequires:	sed >= 4.0
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -27,17 +43,29 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 An RST directive for injecting a Towncrier-generated changelog draft
 containing fragments for the unreleased (next) project version.
 
+%description -l pl.UTF-8
+Dyrektywa RST do wstawiania szablonu logu zmian z Towncriera,
+zawierającego fragmenty dla nie wydanej (kolejnej) wersji projektu.
+
 %prep
 %setup -q -n sphinxcontrib-towncrier-%{version}
 
+%{__sed} -i -e '/^get_scm_version/ s/=.*/= lambda **kwargs : "%{version}"/' docs/conf.py
+
 %build
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="xdist.plugin" \
 PYTHONPATH=$(pwd) \
 %{__python3} -m pytest tests
 %endif
 
+%if %{with doc}
+sphinx-build-3 docs docs/_build/html
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinxcontrib-towncrier.git/commitdiff/f322177f3549c5f6ecf86c81f419b5cbd1a52d90



More information about the pld-cvs-commit mailing list