diff --git a/.gitignore b/.gitignore index daa8d19..99c1b36 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ Flask-SQLAlchemy-0.16.tar.gz /Flask-SQLAlchemy-1.0.tar.gz /Flask-SQLAlchemy-2.0.tar.gz /Flask-SQLAlchemy-2.1.tar.gz +/Flask-SQLAlchemy-2.3.2.tar.gz diff --git a/python-flask-sqlalchemy.spec b/python-flask-sqlalchemy.spec index 6e29d96..0897d62 100644 --- a/python-flask-sqlalchemy.spec +++ b/python-flask-sqlalchemy.spec @@ -5,20 +5,17 @@ %endif Name: python-flask-sqlalchemy -Version: 2.1 -Release: 8%{?dist} +Version: 2.3.2 +Release: 1%{?dist} Summary: Adds SQLAlchemy support to Flask application Group: Development/Libraries License: BSD -URL: http://github.com/mitsuhiko/flask-sqlalchemy -Source0: http://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz +URL: https://github.com/mitsuhiko/flask-sqlalchemy +Source0: https://pypi.io/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel -BuildRequires: python2-setuptools -BuildRequires: python2-flask -Requires: python2-sqlalchemy %description Flask-SQLAlchemy is an extension for Flask that adds support for @@ -33,13 +30,19 @@ Summary: Adds SQLAlchemy support to Flask application BuildRequires: python2-devel %if 0%{?fedora} BuildRequires: python2-setuptools -%else -BuildRequires: python-setuptools -%endif +BuildRequires: python2-pytest BuildRequires: python2-flask BuildRequires: python2-sqlalchemy Requires: python2-flask Requires: python2-sqlalchemy +%else +BuildRequires: python-setuptools +BuildRequires: pytest +BuildRequires: python-flask +BuildRequires: python-sqlalchemy +Requires: python-flask +Requires: python-sqlalchemy +%endif %description -n python2-flask-sqlalchemy Flask-SQLAlchemy is an extension for Flask that adds support for @@ -55,6 +58,7 @@ Summary: Adds SQLAlchemy support to Flask application %{?python_provide:%python_provide python3-%{mod_name}} %{?python_provide:%python_provide python3-flask-sqlalchemy} BuildRequires: python3-devel +BuildRequires: python3-pytest BuildRequires: python3-setuptools BuildRequires: python3-flask BuildRequires: python3-sqlalchemy @@ -75,7 +79,6 @@ Python 3 version. rm -f docs/_static/.DS_Store rm -f docs/.DS_Store rm -f docs/_themes/.gitignore -chmod -x docs/_static/flask-sqlalchemy-small.png %build %py2_build @@ -92,27 +95,35 @@ chmod -x docs/_static/flask-sqlalchemy-small.png %endif %check -%{__python2} setup.py test +%if 0%{?fedora} +PYTHONPATH=%{buildroot}/%{python2_sitelib} py.test-2 +%else +# pytest is too old on el7.. +#PYTHONPATH=%%{buildroot}/%%{python2_sitelib} py.test +%endif %if 0%{?with_python3} -%{__python3} setup.py test +PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 %endif - + %files -n python2-flask-sqlalchemy %license LICENSE -%doc docs/ README CHANGES PKG-INFO +%doc docs/ README CHANGES.rst PKG-INFO %{python2_sitelib}/*.egg-info/ %{python2_sitelib}/flask_sqlalchemy/ %if 0%{?with_python3} %files -n python3-flask-sqlalchemy %license LICENSE -%doc docs/ README CHANGES PKG-INFO +%doc docs/ README CHANGES.rst PKG-INFO %{python3_sitelib}/*.egg-info/ %{python3_sitelib}/flask_sqlalchemy/ %endif # with_python3 %changelog +* Mon Mar 05 2018 Ralph Bean - 2.3.2-1 +- Latest upstream. + * Wed Feb 21 2018 Iryna Shcherbina - 2.1-8 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) diff --git a/sources b/sources index 1b9ac7e..b505d94 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dc15fe08b07b434d3d2c4063b4674b72 Flask-SQLAlchemy-2.1.tar.gz +SHA512 (Flask-SQLAlchemy-2.3.2.tar.gz) = e0c12e5cc5ddb3685f04c928185e4526fb6a94dedb5c53e2b5ece2e0f1cae6ea4c00b3f9d6863c1b6252357ccf2b5a4c1fca0185d2d741bdbc0ab62e2901d2ff