Accepting request 844933 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/844933 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-Admin?expand=0&rev=8
This commit is contained in:
commit
b6d30048cd
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 29 20:46:47 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add remove_nose.patch to remove dependency on nose
|
||||
(gh#flask-admin/flask-admin#2047).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 28 11:33:32 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
|
||||
|
||||
|
@ -25,6 +25,9 @@ Summary: Extensible admin interface framework for Flask
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/flask-admin/flask-admin/
|
||||
Source: https://files.pythonhosted.org/packages/source/F/Flask-Admin/Flask-Admin-%{version}.tar.gz
|
||||
# PATCH-FEATURE-UPSTREAM remove_nose.patch gh#flask-admin/flask-admin#2047 mcepl@suse.com
|
||||
# port from nose to pytest (mostly just pure asserts)
|
||||
Patch0: remove_nose.patch
|
||||
BuildRequires: %{python_module Flask >= 0.7}
|
||||
BuildRequires: %{python_module Flask-BabelEx}
|
||||
BuildRequires: %{python_module Flask-SQLAlchemy}
|
||||
@ -33,8 +36,8 @@ BuildRequires: %{python_module SQLAlchemy-Utils}
|
||||
BuildRequires: %{python_module WTForms}
|
||||
BuildRequires: %{python_module arrow}
|
||||
BuildRequires: %{python_module colour}
|
||||
BuildRequires: %{python_module nose >= 1.0}
|
||||
BuildRequires: %{python_module peewee}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -60,6 +63,8 @@ the resulting application.
|
||||
|
||||
%prep
|
||||
%setup -q -n Flask-Admin-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
# remove contrib tests that pull in too many dependencies
|
||||
rm -rf flask_admin/tests/geoa
|
||||
rm -rf flask_admin/tests/{mongoengine,pymongo}
|
||||
@ -76,8 +81,7 @@ rm -f flask_admin/tests/test_form_upload.py
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
%python_expand nosetests-%{$python_bin_suffix} -e test_ajax_fk
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
7018
remove_nose.patch
Normal file
7018
remove_nose.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user