Mageia Bugzilla – Attachment 14473 Details for
Bug 32991
rebuild python-flask-mail and switch to pyproject
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
patch to switch to pyproject.
python-flask-mail.spec.patch (text/plain), 2.12 KB, created by
Aurelian R
on 2024-03-20 21:34:43 CET
(
hide
)
Description:
patch to switch to pyproject.
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-03-20 21:34:43 CET
Size:
2.12 KB
patch
obsolete
>--- python-flask-mail/python-flask-mail.spec 2024-03-20 22:04:05.703194073 +0200 >+++ SPECS/python-flask-mail.spec 2024-03-20 22:27:45.495851694 +0200 >@@ -1,6 +1,8 @@ > # Created by pyp2rpm-3.3.3 > %global pypi_name flask-mail > >+%bcond_without tests >+ > Name: python-%{pypi_name} > Version: 0.9.1 > Release: %mkrel 5 >@@ -9,16 +11,18 @@ Group: Development/Python > License: BSD > URL: https://github.com/rduplain/flask-mail > Source0: https://files.pythonhosted.org/packages/source/f/%{pypi_name}/Flask-Mail-%{version}.tar.gz >+# the tests using speaklater are removed (speaklater too old) > Patch0: flask-mail-0.9.1-disable-speaklater.patch > BuildArch: noarch > > BuildRequires: python3-devel > BuildRequires: python3dist(blinker) > BuildRequires: python3dist(flask) >+BuildRequires: python3dist(sphinx) >+%if %{with tests} > BuildRequires: python3dist(mock) > BuildRequires: python3dist(nose) >-BuildRequires: python3dist(setuptools) >-BuildRequires: python3dist(sphinx) >+%endif > > %description > A Flask extension for sending email messages. >@@ -39,8 +43,11 @@ A Flask extension for sending email mess > # Remove bundled egg-info > rm -rf Flask-Mail.egg-info > >+%generate_buildrequires >+%pyproject_buildrequires >+ > %build >-%py3_build >+%pyproject_wheel > > # generate html docs > PYTHONPATH=${PWD} sphinx-build-3 docs html >@@ -48,16 +55,17 @@ PYTHONPATH=${PWD} sphinx-build-3 docs ht > rm -rf html/.{doctrees,buildinfo} > > %install >-%py3_install >+%pyproject_install > > %check >-# the tests using speaklater is removed (speaklater too old) >-%{__python3} setup.py test >+%{?with_tests:# Fix assertEquals and skip two tests >+sed -i 's/assertEquals/assertEqual/' tests.py >+sed -i 's/test_unicode_sender/_test_unicode_sender/' tests.py >+%py_test_envvars nosetests-3 -v } > > %files -n python3-%{pypi_name} >-%license docs/_themes/LICENSE LICENSE >-%doc README.rst >-%doc html >+%license docs/_themes/LICENSE >+%doc README.rst html > %{python3_sitelib}/__pycache__/* > %{python3_sitelib}/flask_mail.py >-%{python3_sitelib}/Flask_Mail-%{version}-py%{python3_version}.egg-info >+%{python3_sitelib}/Flask_Mail-%{version}.dist-info
--- python-flask-mail/python-flask-mail.spec 2024-03-20 22:04:05.703194073 +0200 +++ SPECS/python-flask-mail.spec 2024-03-20 22:27:45.495851694 +0200 @@ -1,6 +1,8 @@ # Created by pyp2rpm-3.3.3 %global pypi_name flask-mail +%bcond_without tests + Name: python-%{pypi_name} Version: 0.9.1 Release: %mkrel 5 @@ -9,16 +11,18 @@ Group: Development/Python License: BSD URL: https://github.com/rduplain/flask-mail Source0: https://files.pythonhosted.org/packages/source/f/%{pypi_name}/Flask-Mail-%{version}.tar.gz +# the tests using speaklater are removed (speaklater too old) Patch0: flask-mail-0.9.1-disable-speaklater.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(blinker) BuildRequires: python3dist(flask) +BuildRequires: python3dist(sphinx) +%if %{with tests} BuildRequires: python3dist(mock) BuildRequires: python3dist(nose) -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(sphinx) +%endif %description A Flask extension for sending email messages. @@ -39,8 +43,11 @@ A Flask extension for sending email mess # Remove bundled egg-info rm -rf Flask-Mail.egg-info +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html @@ -48,16 +55,17 @@ PYTHONPATH=${PWD} sphinx-build-3 docs ht rm -rf html/.{doctrees,buildinfo} %install -%py3_install +%pyproject_install %check -# the tests using speaklater is removed (speaklater too old) -%{__python3} setup.py test +%{?with_tests:# Fix assertEquals and skip two tests +sed -i 's/assertEquals/assertEqual/' tests.py +sed -i 's/test_unicode_sender/_test_unicode_sender/' tests.py +%py_test_envvars nosetests-3 -v } %files -n python3-%{pypi_name} -%license docs/_themes/LICENSE LICENSE -%doc README.rst -%doc html +%license docs/_themes/LICENSE +%doc README.rst html %{python3_sitelib}/__pycache__/* %{python3_sitelib}/flask_mail.py -%{python3_sitelib}/Flask_Mail-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/Flask_Mail-%{version}.dist-info
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32991
: 14473