diff --git a/Flask-SQLAlchemy-3.0.3.tar.gz b/Flask-SQLAlchemy-3.0.3.tar.gz deleted file mode 100644 index f36af5ee6f62f57b993dbecb27f89b87ad9c0e9c..0000000000000000000000000000000000000000 Binary files a/Flask-SQLAlchemy-3.0.3.tar.gz and /dev/null differ diff --git a/flask_sqlalchemy-3.1.1.tar.gz b/flask_sqlalchemy-3.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f76cbbaaf9027d74c00fd74a29de6d5431096441 Binary files /dev/null and b/flask_sqlalchemy-3.1.1.tar.gz differ diff --git a/python-Flask-SQLAlchemy.spec b/python-Flask-SQLAlchemy.spec index 31292db3e5f7642f51734aa9ab784c6f2dfa121d..c2ba885374f33112d9b091a5756d34e7f13a1f4a 100644 --- a/python-Flask-SQLAlchemy.spec +++ b/python-Flask-SQLAlchemy.spec @@ -1,15 +1,17 @@ %global _empty_manifest_terminate_build 0 Name: python-Flask-SQLAlchemy -Version: 3.0.3 -Release: 2 +Version: 3.1.1 +Release: 1 Summary: Adds SQLAlchemy support to your Flask application. License: BSD-3-Clause URL: https://github.com/pallets/flask-sqlalchemy -Source0: %{pypi_source Flask-SQLAlchemy} +Source0: %{pypi_source flask_sqlalchemy} BuildArch: noarch BuildRequires: python3-pip python3-wheel python3-pdm-pep517 -Requires: python3-Flask -Requires: python3-SQLAlchemy +BuildRequires: python3-flit python3-pytest python3-flask +BuildRequires: python3-sqlalchemy >= 2.0.16 +Requires: python3-flask +Requires: python3-sqlalchemy %description Flask-SQLAlchemy is an extension for Flask that adds support for @@ -38,7 +40,7 @@ with Flask by providing useful defaults and extra helpers that make it easier to accomplish common tasks. %prep -%autosetup -n Flask-SQLAlchemy-%{version} -p1 +%autosetup -n flask_sqlalchemy-%{version} -p1 %build %pyproject_build @@ -51,6 +53,10 @@ if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +%check +export PYTHONPATH=$PYTHONPATH:%{buildroot}%{python3_sitelib} +pytest + %files -n python3-Flask-SQLAlchemy %license LICENSE.rst %{python3_sitelib}/* @@ -59,6 +65,13 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi %{_pkgdocdir} %changelog +* Wed Oct 16 2024 xu_ping <707078654@qq.com> - 3.1.1-1 +- Upgrade version to 3.1.1 + Fix type hint for get_or_404 return value. + Drop support for Python 3.7 + Add support for the SQLAlchemy 2.x API via model_class parameter. + Deprecate the __version__ attribute. + * Thu May 11 2023 wulei - 3.0.3-2 - Adapting to the pyproject.toml compilation mode