diff --git a/python-jedi.changes b/python-jedi.changes index 7af2fd5..c77640e 100644 --- a/python-jedi.changes +++ b/python-jedi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 14 12:05:41 UTC 2019 - Tomáš Chvátal + +- Fix the typing dependency +- Really run the tests + ------------------------------------------------------------------- Sun Jan 6 22:27:01 UTC 2019 - Arun Persaud diff --git a/python-jedi.spec b/python-jedi.spec index b934d7e..610071d 100644 --- a/python-jedi.spec +++ b/python-jedi.spec @@ -17,8 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Compiled file tests only work on particular architectures and only run on python 3.4 -%bcond_with tests Name: python-jedi Version: 0.13.2 Release: 0 @@ -32,21 +30,13 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-parso >= 0.3.0 BuildArch: noarch -%if %{with tests} -# Test requirements -BuildRequires: %{python_module colorama} -BuildRequires: %{python_module docopt} -BuildRequires: %{python_module numpydoc} BuildRequires: %{python_module parso >= 0.3.0} -BuildRequires: %{python_module pytest >= 2.3.5} -BuildRequires: %{python_module pytest-cache} +BuildRequires: %{python_module pytest} BuildRequires: python2-typing -BuildRequires: python3-tox # do not require python3-typing for python >= 3.5 -%if 0%{?suse_version} <= 1320 +%if 0%{python3_version_nodots} < 35 BuildRequires: python3-typing %endif -%endif %python_subpackages %description @@ -72,16 +62,10 @@ implementation as a VIM plugin which uses Jedi's autocompletion. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check - export PYTHONDONTWRITEBYTECODE=1 export LANG="en_US.UTF-8" -pushd docs -# we don't care about the speed, just that it works -tox -e py%{python3_version_nodots} --sitepackages --skip-missing-interpreters -popd -%endif +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} test/ %files %{python_files} %doc AUTHORS.txt CHANGELOG.rst README.rst