diff --git a/Flask-2.2.5.tar.gz b/Flask-2.2.5.tar.gz deleted file mode 100644 index c5bc58297e5d4b8797e6ab7f521f22f622d6de55..0000000000000000000000000000000000000000 Binary files a/Flask-2.2.5.tar.gz and /dev/null differ diff --git a/flask-3.0.3.tar.gz b/flask-3.0.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3bf7b08327a2782634f0601da12f6820cadd2175 Binary files /dev/null and b/flask-3.0.3.tar.gz differ diff --git a/python-flask.spec b/python-flask.spec index 9b8feff981e59a413da9109706579a5b671a2fb0..0129674bfa4d86e66efb5dc971b8f41730836437 100644 --- a/python-flask.spec +++ b/python-flask.spec @@ -1,14 +1,39 @@ -Name: python-flask -Version: 2.2.5 +%global _empty_manifest_terminate_build 0 +%global pypi_name flask + +Name: python-%{pypi_name} +Version: 3.0.3 Release: 1 Epoch: 1 Summary: A lightweight WSGI web application framework License: BSD-3-Clause -URL: https://palletsprojects.com/p/flask/ -Source0: https://files.pythonhosted.org/packages/source/F/Flask/Flask-2.2.5.tar.gz +URL: https://github.com/pallets/flask +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel python3-setuptools python3-pytest python3-jinja2 python3-werkzeug python3-itsdangerous python3-click +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-poetry-core +BuildRequires: python3-blinker +BuildRequires: python3-flit-core +# for test +BuildRequires: python3-hypothesis +BuildRequires: python3-anyio +BuildRequires: python3-pytest +BuildRequires: python3-time-machine +BuildRequires: python3-pytest-mock +BuildRequires: python3-pytest-cov +BuildRequires: python3-pytest-rerunfailures +BuildRequires: python3-pytest-flake8 +BuildRequires: python3-pytest-xdist +BuildRequires: python3-pytest-datadir +BuildRequires: python3-pytest-asyncio +BuildRequires: python3-pytest-trio +BuildRequires: python3-pytest-xprocess +BuildRequires: python3-pytest-timeout +BuildRequires: python3-pytest-benchmark %description Flask is a lightweight WSGI web application framework. It is designed @@ -26,20 +51,19 @@ Requires: python3-jinja2 python3-werkzeug python3-itsdangerous python3-cl Python-flask for python 3 version %prep -%autosetup -n Flask-%{version} -p1 +%autosetup -n flask-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install mv %{buildroot}%{_bindir}/flask{,-%{python3_version}} ln -s flask-%{python3_version} %{buildroot}%{_bindir}/flask-3 ln -sf flask-3 %{buildroot}%{_bindir}/flask %check -export LC_ALL=C.UTF-8 -PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v || : +%pytest -- -Wdefault %files -n python3-flask %defattr(-,root,root) @@ -51,6 +75,14 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v || : %{python3_sitelib}/* %changelog +* Thu Oct 31 2024 Dongxing Wang - 1:3.0.3-1 +- Update package to version 3.0.3 + Correct type for jinja_loader property. + Fix error with --extra-files and --exclude-patterns CLI options. + Fix a typo in an error message for the flask run --key option. + Restructure the code such that the Flask (app) and Blueprint classes have Sans-IO bases. + Allow self as an argument to url_for. + * Tue May 09 2023 wulei - 1:2.2.5-1 - Update to 2.2.5