Accepting request 688905 from home:jayvdb:coala:test-rig

- Remove irrelevant and invalid runtime dependencies
- Set pytest as a Recommends
- Remove unnecessary build dependencies
- Simplify %check routine

OBS-URL: https://build.opensuse.org/request/show/688905
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sybil?expand=0&rev=13
This commit is contained in:
Tomáš Chvátal 2019-03-28 08:39:51 +00:00 committed by Git OBS Bridge
parent b65d030a05
commit 180f95e977
2 changed files with 11 additions and 19 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Mar 26 22:38:48 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Remove irrelevant and invalid runtime dependencies
- Set pytest as a Recommends
- Remove unnecessary build dependencies
- Simplify %check routine
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 21 13:01:18 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com> Wed Nov 21 13:01:18 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -26,26 +26,14 @@ Group: Development/Languages/Python
Url: https://github.com/cjw296/sybil Url: https://github.com/cjw296/sybil
Source: https://files.pythonhosted.org/packages/source/s/sybil/sybil-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/sybil/sybil-%{version}.tar.gz
Patch0: sybil-pytest4.patch Patch0: sybil-pytest4.patch
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module nose} BuildRequires: %{python_module nose}
BuildRequires: %{python_module pkginfo}
BuildRequires: %{python_module pytest >= 3.5.0} BuildRequires: %{python_module pytest >= 3.5.0}
BuildRequires: %{python_module python-coveralls}
BuildRequires: %{python_module setuptools-git} BuildRequires: %{python_module setuptools-git}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module twine}
BuildRequires: %{python_module virtualenv}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Suggests: python-python-coveralls Recommends: python-pytest
Suggests: python-nose Suggests: python-nose
Suggests: python-pytest
Suggests: python-sphinx
Suggests: python-pkginfo
Suggests: python-setuptools-git
Suggests: python-twine
Suggests: python-wheel
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@ -59,6 +47,7 @@ test runners.
%prep %prep
%setup -q -n sybil-%{version} %setup -q -n sybil-%{version}
%patch0 -p1 %patch0 -p1
sed -i '/build=/d;/coveralls/d' setup.py
%build %build
%python_build %python_build
@ -68,12 +57,7 @@ test runners.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
sed -i -e "s/'coveralls'/'python-coveralls'/" setup.py %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest
%{python_expand virtualenv-%$python_bin_suffix --system-site-packages --no-download testvenv-%$python_bin_suffix
testvenv-%$python_bin_suffix/bin/pip install -e .[test,build]
export PYTHONPATH=$PWD/testvenv-%$python_bin_suffix/lib/python%$python_bin_suffix/site-packages/:$PWD
testvenv-%$python_bin_suffix/bin/python -m pytest && rm -Rf testvenv-%$python_bin_suffix
}
%files %{python_files} %files %{python_files}
%doc README.rst docs/changes.rst %doc README.rst docs/changes.rst