- Fix the typing dependency

- Really run the tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jedi?expand=0&rev=31
This commit is contained in:
Tomáš Chvátal
2019-02-14 12:07:37 +00:00
committed by Git OBS Bridge
parent f0aba44f9f
commit cfff2eebee
2 changed files with 9 additions and 19 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 14 12:05:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fix the typing dependency
- Really run the tests
-------------------------------------------------------------------
Sun Jan 6 22:27:01 UTC 2019 - Arun Persaud <arun@gmx.de>

View File

@@ -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