From 946c84d9247703189903265df72da1165fba5bad Mon Sep 17 00:00:00 2001 From: Tomas Hrcka Date: Sep 12 2019 10:56:50 +0000 Subject: Revert "Orphaned for 6+ weeks" This reverts commit 756d82687d1c5c3901f28c4ca4481f4a0e3ca197. Unretirement request: https://pagure.io/releng/issue/8786 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2d14ff7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/Flask-Script-0.5.3.tar.gz +/Flask-Script-0.6.2.tar.gz +/Flask-Script-0.6.7.tar.gz +/Flask-Script-2.0.5.tar.gz +/Flask-Script-2.0.6.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/fix-imports.patch b/fix-imports.patch new file mode 100644 index 0000000..0720234 --- /dev/null +++ b/fix-imports.patch @@ -0,0 +1,38 @@ +From fcf894b6e4d0ad17489480b722c870aaea600db1 Mon Sep 17 00:00:00 2001 +From: anthraxx +Date: Wed, 6 Sep 2017 12:03:22 +0200 +Subject: [PATCH] using flask_script everywhere instead of flask.ext.script + +--- + docs/index.rst | 2 +- + tests.py | 4 ++-- + 3 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/docs/index.rst b/docs/index.rst +index 775ffca..9266d4b 100644 +--- a/docs/index.rst ++++ b/docs/index.rst +@@ -577,7 +577,7 @@ Then the user can register the sub-manager to their primary Manager (within mana + + manager = Manager(app) + +- from flask.ext.database import manager as database_manager ++ from flask_database import manager as database_manager + manager.add_command("database", database_manager) + + The commands will then be available:: +diff --git a/tests.py b/tests.py +index 93d0071..24f3f15 100644 +--- a/tests.py ++++ b/tests.py +@@ -5,8 +5,8 @@ + import unittest + + from flask import Flask +-from flask.ext.script._compat import StringIO, text_type +-from flask.ext.script import Command, Manager, Option, prompt, prompt_bool, prompt_choices ++from flask_script._compat import StringIO, text_type ++from flask_script import Command, Manager, Option, prompt, prompt_bool, prompt_choices + + from pytest import raises + diff --git a/python-flask-script.spec b/python-flask-script.spec new file mode 100644 index 0000000..c9d7f80 --- /dev/null +++ b/python-flask-script.spec @@ -0,0 +1,175 @@ +%global mod_name Flask-Script + +Name: python-flask-script +Version: 2.0.6 +Release: 5%{?dist} +Summary: Scripting support for Flask + +License: BSD +URL: http://flask-script.readthedocs.org/en/latest/ +Source0: https://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz + +# using flask_script everywhere instead of flask.ext.script +# adjusted https://github.com/smurfix/flask-script/commit/fcf894b6e4d0ad17489480b722c870aaea600db1 +Patch0: fix-imports.patch + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-pytest +BuildRequires: python2-flask +BuildRequires: python2-pytest + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: python%{python3_pkgversion}-flask +BuildRequires: python%{python3_pkgversion}-sphinx +BuildRequires: python%{python3_pkgversion}-pytest + +%global _description\ +The Flask-Script extension provides support for writing external scripts in\ +Flask.This includes running a development server, a customized Python shell,\ +scripts to set up your database, cronjobs, and other command-line tasks that\ +belong outside the web application itself. + +%description %_description + +%package -n python2-flask-script +Summary: %summary +Requires: python2-flask +%{?python_provide:%python_provide python2-flask-script} + +%description -n python2-flask-script %_description + +%package -n python%{python3_pkgversion}-flask-script +Summary: Scripting support for flask in python3-flask + +Requires: python%{python3_pkgversion}-flask + +%description -n python%{python3_pkgversion}-flask-script +The Flask-Script extension provides support for writing external scripts in +Flask.This includes running a development server, a customized Python shell, +scripts to set up your database, cronjobs, and other command-line tasks that +belong outside the web application itself. + +%prep +%autosetup -p1 -n %{mod_name}-%{version} +# delete the mac's .ds_store file +rm -f docs/.DS_Store + +%build +%py2_build +%py3_build + +# generate sphinx documentation +cd docs && make SPHINXBUILD=sphinx-build-3 html +# deleting unneeded buildinfo, we dont expect users to change html docs +rm -f _build/html/.buildinfo + + +%check +py.test-2 tests.py +py.test-3 tests.py + +%install +%py2_install +%py3_install + + +%files -n python2-flask-script +%doc docs/_build/html README.rst LICENSE +%{python2_sitelib}/*.egg-info/ +%{python2_sitelib}/flask_script/*.py* + +%files -n python%{python3_pkgversion}-flask-script +%doc docs/_build/html README.rst LICENSE +%{python3_sitelib}/*.egg-info/ +%{python3_sitelib}/flask_script/ + +%changelog +* Mon Aug 19 2019 Miro Hrončok - 2.0.6-5 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 2.0.6-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 2.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 2.0.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 26 2018 Miro Hrončok - 2.0.6-1 +- Update to 2.0.6 +- Clean spec +- Add upstream patch for new Flask compatibility (#1595388) + +* Tue Jun 19 2018 Miro Hrončok - 2.0.5-13 +- Rebuilt for Python 3.7 + +* Fri Feb 16 2018 Itamar Reis Peixoto - 2.0.5-12 +- make spec file compatible with epel7 +- always build for python 3 + +* Fri Feb 09 2018 Fedora Release Engineering - 2.0.5-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jan 18 2018 Iryna Shcherbina - 2.0.5-10 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 2.0.5-9 +- Python 2 binary package renamed to python2-flask-script + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 2.0.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 2.0.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 2.0.5-6 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 2.0.5-5 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 2.0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 2.0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 2.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jul 03 2014 Robert Kuska - 2.0.5-1 +- Updated to 2.0.5 + +* Thu Jul 03 2014 Robert Kuska - 0.6.7-4 +- Move Python 3 Requires into correct place + +* Sat Jun 07 2014 Fedora Release Engineering - 0.6.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri May 16 2014 Robert Kuska - 0.6.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Mon Apr 28 2014 Robert Kuska - 0.6.7-1 +- Update to 0.6.7 + +* Wed Sep 25 2013 Robert Kuska - 0.6.2-1 +- Updated source to latest upstream version and added python3 support + +* Tue Aug 06 2013 Robert Kuska - 0.5.3-4 +- Fix BuildRequires + +* Sun Aug 04 2013 Fedora Release Engineering - 0.5.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Apr 02 2013 Robert Kuska - 0.5.3-2 +- Review fixes + +* Thu Mar 21 2013 Robert Kuska - 0.5.3-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..be6fb6f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Flask-Script-2.0.6.tar.gz) = 03c51213be8e2b86f1f4450565cf4d7e3d9d7257ac017bd53830be57620d581f43bcfe959ef7b621af722c688c56495229aad3dd9654c8a8a5905db0105275fc