[packages/python3-apispec-webframeworks] - python-apispec-webframeworks.spec updated to 1.2.0 for python 3.8+
qboosh
qboosh at pld-linux.org
Sat Dec 20 19:22:07 CET 2025
commit c6097ee3dc5df8f3dc4b39265416416fa7fec85f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Dec 20 19:22:11 2025 +0100
- python-apispec-webframeworks.spec updated to 1.2.0 for python 3.8+
python-apispec-webframeworks.spec | 147 -------------------------------------
python3-apispec-webframeworks.spec | 82 +++++++++++++++++++++
2 files changed, 82 insertions(+), 147 deletions(-)
---
diff --git a/python-apispec-webframeworks.spec b/python-apispec-webframeworks.spec
deleted file mode 100644
index 05b760c..0000000
--- a/python-apispec-webframeworks.spec
+++ /dev/null
@@ -1,147 +0,0 @@
-#
-# 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
diff --git a/python3-apispec-webframeworks.spec b/python3-apispec-webframeworks.spec
new file mode 100644
index 0000000..4f63e6a
--- /dev/null
+++ b/python3-apispec-webframeworks.spec
@@ -0,0 +1,82 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Web framework plugins for apispec
+Summary(pl.UTF-8): Wtyczki szkieletów WWW dla biblioteki apispec
+Name: python3-apispec-webframeworks
+Version: 1.2.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: 75e31c1ac9d06ffa78246926b3d95edf
+URL: https://pypi.org/project/apispec-webframeworks/
+BuildRequires: python3-build
+BuildRequires: python3-flit_core < 4
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-PyYAML >= 3.10
+BuildRequires: python3-aiohttp >= 3.9.3
+BuildRequires: python3-apispec >= 6.0.0
+BuildRequires: python3-bottle >= 0.12.25
+BuildRequires: python3-flask >= 2.3.3
+BuildRequires: python3-pytest
+BuildRequires: python3-tornado >= 6
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.8
+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.aiohttp
+- 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.aiohttp
+- apispec_webframeworks.bottle
+- apispec_webframeworks.flask
+- apispec_webframeworks.tornado
+
+%prep
+%setup -q -n apispec_webframeworks-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE README.rst
+%{py3_sitescriptdir}/apispec_webframeworks
+%{py3_sitescriptdir}/apispec_webframeworks-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-apispec-webframeworks.git/commitdiff/c6097ee3dc5df8f3dc4b39265416416fa7fec85f
More information about the pld-cvs-commit
mailing list