From 7758dda8430eac31eff8562b4d6682d880ed033b Mon Sep 17 00:00:00 2001 From: Christian Dersch Date: Jul 08 2018 08:49:29 +0000 Subject: Fix build with Python 3.7 --- diff --git a/python-pyvo-rename-async-test.patch b/python-pyvo-rename-async-test.patch new file mode 100644 index 0000000..8437d46 --- /dev/null +++ b/python-pyvo-rename-async-test.patch @@ -0,0 +1,12 @@ +diff -Naur pyvo-0.8.1/pyvo/dal/tests/test_tap.py pyvo-0.8.1.patched/pyvo/dal/tests/test_tap.py +--- pyvo-0.8.1/pyvo/dal/tests/test_tap.py 2018-05-24 11:19:45.000000000 +0200 ++++ pyvo-0.8.1.patched/pyvo/dal/tests/test_tap.py 2018-07-08 10:48:44.077288442 +0200 +@@ -50,7 +50,7 @@ + + + @pytest.fixture() +-def async(mocker): ++def pyvo_async(mocker): + class Callback(object): + def __init__(self): + self._jobs = dict() diff --git a/python-pyvo.spec b/python-pyvo.spec index c0e8d20..3b6de02 100644 --- a/python-pyvo.spec +++ b/python-pyvo.spec @@ -25,7 +25,7 @@ The pyvo module currently provides these main capabilities: \ Name: python-%{srcname} Version: 0.8.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: %{sum} License: BSD @@ -36,6 +36,8 @@ Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{sr Source0: %{url}/archive/%{commit}.tar.gz#/%{srcname}-%{version}%{?git_ver}.tar.gz %endif # 0%%{?relbuild} Patch0: python-pyvo-removes-python-scripts.patch +# Py 3.7 compat fix +Patch1: python-pyvo-rename-async-test.patch BuildArch: noarch BuildRequires: python2-astropy @@ -127,6 +129,9 @@ Requires: python3-six #%%doc docs/_build/html %changelog +* Sun Jul 08 2018 Christian Dersch - 0.8.1-3 +- Fix build with Python 3.7 + * Fri Jul 06 2018 Christian Dersch - 0.8.1-2 - Rebuild for Python 3.7