diff --git a/python-sqlalchemy_schemadisplay.spec b/python-sqlalchemy_schemadisplay.spec index 5b6ef3e..ac1fb9c 100644 --- a/python-sqlalchemy_schemadisplay.spec +++ b/python-sqlalchemy_schemadisplay.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 1.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Turn SQLAlchemy DB Model into a graph License: MIT @@ -14,6 +14,24 @@ BuildArch: noarch Turn SQLAlchemy DB Model into a graph. +%package -n python3-%{srcname} +Summary: %{summary} +Requires: graphviz +Requires: python3-setuptools +Requires: python3-sqlalchemy +Requires: python3-pydot +BuildRequires: graphviz +BuildRequires: python3-devel +BuildRequires: python3-pydot +BuildRequires: python3-pytest +BuildRequires: python3-setuptools +BuildRequires: python3-sqlalchemy +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +Turn SQLAlchemy DB Model into a graph. + + %package -n python2-%{srcname} Summary: %{summary} Requires: graphviz @@ -37,14 +55,23 @@ Turn SQLAlchemy DB Model into a graph. %build %py2_build +%py3_build %install %py2_install +%py3_install %check PYTHONPATH=$(pwd) py.test tests/ +PYTHONPATH=$(pwd) pytest-3 tests/ + + +%files -n python3-%{srcname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/* %files -n python2-%{srcname} @@ -54,6 +81,9 @@ PYTHONPATH=$(pwd) py.test tests/ %changelog +* Tue Sep 18 2018 Jeremy Cline - 1.3-6 +- Add Python 3 package + * Sat Jul 14 2018 Fedora Release Engineering - 1.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild