From 597b3a8398fda634cff062b54aa03720a22dd2837747b41483317e32311a76c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 14 Nov 2018 14:00:23 +0000 Subject: [PATCH] - Do not require old pytest and simply execute the pytest binary OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-alembic?expand=0&rev=74 --- python-alembic.changes | 5 +++++ python-alembic.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-alembic.changes b/python-alembic.changes index 3f97861..b2ef422 100644 --- a/python-alembic.changes +++ b/python-alembic.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 14 13:59:58 UTC 2018 - Tomáš Chvátal + +- Do not require old pytest and simply execute the pytest binary + ------------------------------------------------------------------- Thu Nov 1 22:51:27 UTC 2018 - Arun Persaud diff --git a/python-alembic.spec b/python-alembic.spec index ee18151..6407a70 100644 --- a/python-alembic.spec +++ b/python-alembic.spec @@ -41,8 +41,8 @@ Requires: python-Mako Requires: python-SQLAlchemy >= 0.9.0 Requires: python-python-dateutil Requires: python-python-editor >= 0.3 -Requires(post): %{_sbindir}/update-alternatives -Requires(postun): %{_sbindir}/update-alternatives +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -93,7 +93,7 @@ sed -i -e '1d' alembic/testing/runner.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} %post %python_install_alternative alembic