[packages/python3-flask] Up to 3.1.0
arekm
arekm at pld-linux.org
Sun May 4 13:18:39 CEST 2025
commit 1136672ba59ca22198e255f9d3173a6c62c3c4f6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun May 4 12:25:42 2025 +0200
Up to 3.1.0
...quire-sphinxcontrib.log_cabinet-extension.patch | 22 +++++-----------
python3-flask.spec | 30 ++++++++++++----------
2 files changed, 23 insertions(+), 29 deletions(-)
---
diff --git a/python3-flask.spec b/python3-flask.spec
index 629d84b..3ab10f7 100644
--- a/python3-flask.spec
+++ b/python3-flask.spec
@@ -7,20 +7,21 @@
Summary: A microframework based on Werkzeug, Jinja2 and good intentions
Summary(pl.UTF-8): Mikroszkielet oparty na Werkzeugu, Jinja2 i dobrych intencjach
Name: python3-%{module}
-Version: 2.2.5
-Release: 3
+Version: 3.1.0
+Release: 1
License: BSD
Group: Development/Languages/Python
#Source0Download: https://pypi.python.org/simple/Flask
-Source0: https://files.pythonhosted.org/packages/source/F/Flask/Flask-%{version}.tar.gz
-# Source0-md5: bbca6fb017f4d338cfddfd673e203779
+Source0: https://files.pythonhosted.org/packages/source/F/Flask/flask-%{version}.tar.gz
+# Source0-md5: c95d81666442bf04f7de7db7edbe2aff
Patch0: 0001-Don-t-require-sphinxcontrib.log_cabinet-extension.patch
URL: https://flask.palletsprojects.com/
%if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
BuildRequires: glibc-localedb-all
%endif
+BuildRequires: python3-build
+BuildRequires: python3-installer
BuildRequires: python3-devel >= 1:3.7
-BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
# optional
@@ -68,20 +69,23 @@ Documentation for Python Flask package.
Dokumentacja do pakietu Pythona Flask.
%prep
-%setup -q -n Flask-%{version}
+%setup -q -n flask-%{version}
%patch -P 0 -p1
%build
-%py3_build
+%py3_build_pyproject
%if %{with tests}
-PYTHONPATH=$(pwd)/src \
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+# use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest tests
+PYTEST_PLUGINS= \
+%{__python3} -m pytest -o pythonpath="$PWD/build-3-test" tests
%endif
%if %{with doc}
-PYTHONPATH=$(pwd)/src \
+%{__python3} -m zipfile -e build-3/*.whl build-3-doc
+PYTHONPATH=$(pwd)/build-3-doc \
%{__make} -C docs html \
SPHINXBUILD=sphinx-build-3
%endif
@@ -89,7 +93,7 @@ PYTHONPATH=$(pwd)/src \
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%{__mv} $RPM_BUILD_ROOT%{_bindir}/flask{,-3}
@@ -101,10 +105,10 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE.rst README.rst
+%doc CHANGES.rst LICENSE.txt README.md
%attr(755,root,root) %{_bindir}/flask-3
%{py3_sitescriptdir}/flask
-%{py3_sitescriptdir}/Flask-%{version}-py*.egg-info
+%{py3_sitescriptdir}/flask-%{version}.dist-info
%{_examplesdir}/python3-%{module}-%{version}
%if %{with doc}
diff --git a/0001-Don-t-require-sphinxcontrib.log_cabinet-extension.patch b/0001-Don-t-require-sphinxcontrib.log_cabinet-extension.patch
index 15dd0a0..93159e7 100644
--- a/0001-Don-t-require-sphinxcontrib.log_cabinet-extension.patch
+++ b/0001-Don-t-require-sphinxcontrib.log_cabinet-extension.patch
@@ -1,20 +1,10 @@
-From fa0e83cd6d5ca44c1583624ef4373730dca05d16 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Ond=C5=99ej=20Nov=C3=BD?= <onovy at debian.org>
-Date: Mon, 14 May 2018 14:50:56 +0200
-Subject: Don't require sphinxcontrib.log_cabinet extension
-
----
- docs/conf.py | 1 -
- 1 file changed, 1 deletion(-)
-
-diff -urNp -x '*.orig' Flask-2.0.2.org/docs/conf.py Flask-2.0.2/docs/conf.py
---- Flask-2.0.2.org/docs/conf.py 2021-10-01 16:21:57.000000000 +0000
-+++ Flask-2.0.2/docs/conf.py 2021-10-13 09:57:24.866571598 +0000
-@@ -15,7 +15,6 @@ master_doc = "index"
- extensions = [
+--- flask-3.1.0/docs/conf.py~ 2024-11-13 19:20:07.000000000 +0100
++++ flask-3.1.0/docs/conf.py 2025-05-04 12:07:40.189319001 +0200
+@@ -16,7 +16,6 @@
"sphinx.ext.autodoc",
+ "sphinx.ext.extlinks",
"sphinx.ext.intersphinx",
- "sphinxcontrib.log_cabinet",
- "pallets_sphinx_themes",
- "sphinx_issues",
"sphinx_tabs.tabs",
+ "pallets_sphinx_themes",
+ ]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-flask.git/commitdiff/1136672ba59ca22198e255f9d3173a6c62c3c4f6
More information about the pld-cvs-commit
mailing list