From ba217462a83b2e21fd5a778dddaf58d2c9d1d38f Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Jan 07 2022 10:00:32 +0000 Subject: Update to 3.0.0 --- diff --git a/.gitignore b/.gitignore index bf597b8..186f53e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ WTForms-1.0.2.zip /WTForms-2.0.zip /wtforms-2.2.1.tar.gz /WTForms-2.3.3.tar.gz +/WTForms-3.0.0.tar.gz diff --git a/python-wtforms.spec b/python-wtforms.spec index a02129c..a8ad121 100644 --- a/python-wtforms.spec +++ b/python-wtforms.spec @@ -1,64 +1,63 @@ %global srcname WTForms Name: python-wtforms -Version: 2.3.3 -Release: 5%{?dist} +Version: 3.0.0 +Release: 1%{?dist} Summary: Forms validation and rendering library for python License: BSD URL: https://wtforms.simplecodes.com/ Source0: %{pypi_source} - BuildArch: noarch -Requires: python%{python3_pkgversion}-email-validator +BuildRequires: python3-devel -BuildRequires: python%{python3_pkgversion}-devel -BuildRequires: python%{python3_pkgversion}-setuptools -%global _description\ -With wtforms, your form field HTML can be generated for you.\ -This allows you to maintain separation of code and presentation,\ +%description +With wtforms, your form field HTML can be generated for you. +This allows you to maintain separation of code and presentation, and keep those messy parameters out of your python code. -%description %_description -%package -n python%{python3_pkgversion}-wtforms +%package -n python3-wtforms Summary: Forms validation and rendering library for python -%{?python_provide:%python_provide python3-wtforms} -%description -n python%{python3_pkgversion}-wtforms +%description -n python3-wtforms With wtforms, your form field HTML can be generated for you. This allows you to maintain separation of code and presentation, and keep those messy parameters out of your python code. +%generate_buildrequires +%pyproject_buildrequires -r + + %prep -%setup -q -n %{srcname}-%{version} -sed -i "s|\r||g" docs/Makefile -sed -i "s|\r||g" CHANGES.rst -rm wtforms/locale/README.md +%autosetup -p1 -n %{srcname}-%{version} + %build -%py3_build +%pyproject_wheel + %install -%py3_install -# rm -rf %%{buildroot}/%{python3_sitelib}/wtforms/locale +%pyproject_install +%pyproject_save_files wtforms + -#% find_lang wtforms +%check +%py3_check_import wtforms -# add the check section after the upgrade to the python-wtforms 3.x -# tests in 2.3.3 are a mess... -%files -n python%{python3_pkgversion}-wtforms -# -f wtforms.lang +%files -n python3-wtforms -f %{pyproject_files} %doc docs/ README.rst CHANGES.rst %license LICENSE.rst -%{python3_sitelib}/WTForms-%{version}-py*.egg-info -%{python3_sitelib}/wtforms/ + %changelog +* Thu Dec 09 2021 Sandro Mani - 3.0.0-1 +- Update to 3.0.0 + * Tue Jul 27 2021 Fedora Release Engineering - 2.3.3-5 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 4a3285b..d592e00 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (WTForms-2.3.3.tar.gz) = 934cf1483beec37d698d13a81e44a733d082baad1f418d3087306fd908df809d37fffe000ed1ecabf65d2c31b57034bf6f25c3b77cfc5598ae1f65bf4a115fe5 +SHA512 (WTForms-3.0.0.tar.gz) = dbed8706a317022be07f9568d11c7dab6021642957efab38e547b7b1b83b1ac8863a521b8fb0f5f4ec15cdc2966520a76d079a00ea88ce56f40a42b335fcfc6e