[packages/python-apispec-webframeworks] - initial

qboosh qboosh at pld-linux.org
Sat Dec 20 19:18:08 CET 2025


commit ea8e7c9cb106658d884ac6d32d00a2f790c51743
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 20 19:18:26 2025 +0100

    - initial

 python-apispec-webframeworks.spec | 147 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 147 insertions(+)
---
diff --git a/python-apispec-webframeworks.spec b/python-apispec-webframeworks.spec
new file mode 100644
index 0000000..05b760c
--- /dev/null
+++ b/python-apispec-webframeworks.spec
@@ -0,0 +1,147 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_with	python3 # CPython 3.x module (built from python3-apispec-webframeworks.spec)
+
+Summary:	Web framework plugins for apispec
+Summary(pl.UTF-8):	Wtyczki szkieletów WWW dla biblioteki apispec
+Name:		python-apispec-webframeworks
+# keep 0.4.x here for python2 support
+Version:	0.4.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/apispec-webframeworks/
+Source0:	https://files.pythonhosted.org/packages/source/a/apispec-webframeworks/apispec-webframeworks-%{version}.tar.gz
+# Source0-md5:	72cae5ca3ee9ca17a7ad78c2ba5d2dd7
+URL:		https://pypi.org/project/apispec-webframeworks/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-apispec >= 1.0.0
+BuildRequires:	python-bottle >= 0.12.16
+BuildRequires:	python-flask >= 1.0.2
+BuildRequires:	python-pytest
+BuildRequires:	python-tornado >= 5.1.1
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.5
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-apispec >= 1.0.0
+BuildRequires:	python3-apispec < 3
+BuildRequires:	python3-bottle >= 0.12.16
+BuildRequires:	python3-flask >= 1.0.2
+BuildRequires:	python3-pytest
+BuildRequires:	python3-tornado >= 5.1.1
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+apispec plugins for integrating with various web frameworks. These
+plugins used to be in "apispec.ext" but have since been moved to their
+own package.
+
+Included plugins:
+- apispec_webframeworks.bottle
+- apispec_webframeworks.flask
+- apispec_webframeworks.tornado
+
+%description -l pl.UTF-8
+Wtyczki apispec do integracji z różnymi szkieletami WWW. Wcześniej
+były w przestrzeni "apispec.ext", ale potem zostały przeniesione do
+własnego pakietu.
+
+Załączone wtyczki:
+- apispec_webframeworks.bottle
+- apispec_webframeworks.flask
+- apispec_webframeworks.tornado
+
+%package -n python3-apispec-webframeworks
+Summary:	Web framework plugins for apispec
+Summary(pl.UTF-8):	Wtyczki szkieletów WWW dla biblioteki apispec
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.5
+
+%description -n python3-apispec-webframeworks
+apispec plugins for integrating with various web frameworks. These
+plugins used to be in "apispec.ext" but have since been moved to their
+own package.
+
+Included plugins:
+- apispec_webframeworks.bottle
+- apispec_webframeworks.flask
+- apispec_webframeworks.tornado
+
+%description -n python3-apispec-webframeworks -l pl.UTF-8
+Wtyczki apispec do integracji z różnymi szkieletami WWW. Wcześniej
+były w przestrzeni "apispec.ext", ale potem zostały przeniesione do
+własnego pakietu.
+
+Załączone wtyczki:
+- apispec_webframeworks.bottle
+- apispec_webframeworks.flask
+- apispec_webframeworks.tornado
+
+%prep
+%setup -q -n apispec-webframeworks-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+# test_path_from_method_view tests fail due to OrderedDict vs dict in responses
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest apispec_webframeworks -k 'not test_path_from_method_view'
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest apispec_webframeworks
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/apispec_webframeworks
+%{py_sitescriptdir}/apispec_webframeworks-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-apispec-webframeworks
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/apispec_webframeworks
+%{py3_sitescriptdir}/apispec_webframeworks-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-apispec-webframeworks.git/commitdiff/ea8e7c9cb106658d884ac6d32d00a2f790c51743



More information about the pld-cvs-commit mailing list