commit 0dddf0678603ad55b99053d3949b1d6f4b3f630661e984ef450aea0cb926a967 Author: Tomáš Chvátal Date: Tue Oct 30 10:03:08 2018 +0000 - Initial commit, needed by acitoolkit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-Admin?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Flask-Admin-1.5.2.tar.gz b/Flask-Admin-1.5.2.tar.gz new file mode 100644 index 0000000..a5603f0 --- /dev/null +++ b/Flask-Admin-1.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:752937f4af1f6600e5f4f08586c4790719a71146f163a091deba04706a48523b +size 1588924 diff --git a/python-Flask-Admin.changes b/python-Flask-Admin.changes new file mode 100644 index 0000000..b17c7ee --- /dev/null +++ b/python-Flask-Admin.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Oct 30 09:41:06 UTC 2018 - Tomáš Chvátal + +- Initial commit, needed by acitoolkit diff --git a/python-Flask-Admin.spec b/python-Flask-Admin.spec new file mode 100644 index 0000000..52623d3 --- /dev/null +++ b/python-Flask-Admin.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-Flask-Admin +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-Flask-Admin +Version: 1.5.2 +Release: 0 +Summary: Simple and extensible admin interface framework for Flask +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/flask-admin/flask-admin/ +Source: https://files.pythonhosted.org/packages/source/F/Flask-Admin/Flask-Admin-%{version}.tar.gz +BuildRequires: %{python_module Flask >= 0.7} +BuildRequires: %{python_module Flask-BabelEx} +BuildRequires: %{python_module Flask-SQLAlchemy} +BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module WTForms} +BuildRequires: %{python_module nose >= 1.0} +BuildRequires: %{python_module peewee} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: python2-enum34 +Requires: python-Flask >= 0.7 +Requires: python-WTForms +BuildArch: noarch +%ifpython2 +Requires: python-enum34 +%endif +%python_subpackages + +%description +Flask-Admin is a batteries-included, simple-to-use Flask extension that lets you +add admin interfaces to Flask applications. + +It is inspired by the *django-admin* package, but implemented in such +a way that the developer has total control of the look, feel and functionality of the resulting application. + +%prep +%setup -q -n Flask-Admin-%{version} +# remove contrib tests that pull in too many dependencies +rm -rf flask_admin/tests/geoa +rm -rf flask_admin/tests/{mongoengine,pymongo} +rm -rf flask_admin/tests/peeweemodel +rm -f flask_admin/tests/sqla/test_postgres.py +# these tests try to write to protected dirs in the OBS +rm -f flask_admin/tests/test_form_upload.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export PYTHONDONTWRITEBYTECODE=1 +%python_expand nosetests-%{$python_bin_suffix} + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/* + +%changelog