Mageia Bugzilla – Attachment 14474 Details for
Bug 32992
rebuild python-flask-principal 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-principal.spec.patch (text/plain), 1.33 KB, created by
Aurelian R
on 2024-03-20 21:48:59 CET
(
hide
)
Description:
patch to switch to pyproject.
Filename:
MIME Type:
Creator:
Aurelian R
Created:
2024-03-20 21:48:59 CET
Size:
1.33 KB
patch
obsolete
>--- python-flask-principal/python-flask-principal.spec 2024-03-20 21:46:25.449521132 +0200 >+++ SPECS/python-flask-principal.spec 2024-03-20 22:44:59.729163718 +0200 >@@ -1,6 +1,9 @@ > # Created by pyp2rpm-3.3.3 > %global pypi_name flask-principal > >+# Tests need source from archived git https://github.com/pallets-eco/flask-principal >+%bcond_with tests >+ > Name: python-%{pypi_name} > Version: 0.4.0 > Release: %mkrel 5 >@@ -14,8 +17,10 @@ BuildArch: noarch > BuildRequires: python3-devel > BuildRequires: python3dist(blinker) > BuildRequires: python3dist(flask) >+%if %{with tests} > BuildRequires: python3dist(nose) >-BuildRequires: python3dist(setuptools) >+%endif >+ > > %description > Flask Principal Identity management for Flask. >@@ -36,17 +41,20 @@ Flask Principal Identity management for > # Remove bundled egg-info > rm -rf Flask_Principal.egg-info > >+%generate_buildrequires >+%pyproject_buildrequires >+ > %build >-%py3_build >+%pyproject_wheel > > %install >-%py3_install >+%pyproject_install > > %check >-%{__python3} setup.py test >+%{?with_tests:%py_test_envvars nosetests-3 -v} > > %files -n python3-%{pypi_name} > %doc README.rst > %{python3_sitelib}/__pycache__/* > %{python3_sitelib}/flask_principal.py >-%{python3_sitelib}/Flask_Principal-%{version}-py%{python3_version}.egg-info >+%{python3_sitelib}/Flask_Principal-%{version}.dist-info
--- python-flask-principal/python-flask-principal.spec 2024-03-20 21:46:25.449521132 +0200 +++ SPECS/python-flask-principal.spec 2024-03-20 22:44:59.729163718 +0200 @@ -1,6 +1,9 @@ # Created by pyp2rpm-3.3.3 %global pypi_name flask-principal +# Tests need source from archived git https://github.com/pallets-eco/flask-principal +%bcond_with tests + Name: python-%{pypi_name} Version: 0.4.0 Release: %mkrel 5 @@ -14,8 +17,10 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(blinker) BuildRequires: python3dist(flask) +%if %{with tests} BuildRequires: python3dist(nose) -BuildRequires: python3dist(setuptools) +%endif + %description Flask Principal Identity management for Flask. @@ -36,17 +41,20 @@ Flask Principal Identity management for # Remove bundled egg-info rm -rf Flask_Principal.egg-info +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install %check -%{__python3} setup.py test +%{?with_tests:%py_test_envvars nosetests-3 -v} %files -n python3-%{pypi_name} %doc README.rst %{python3_sitelib}/__pycache__/* %{python3_sitelib}/flask_principal.py -%{python3_sitelib}/Flask_Principal-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/Flask_Principal-%{version}.dist-info
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32992
: 14474