Hello community, here is the log from the commit of package python-argh for openSUSE:Factory checked in at 2017-04-28 10:52:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-argh (Old) and /work/SRC/openSUSE:Factory/.python-argh.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-argh" Fri Apr 28 10:52:56 2017 rev:12 rq:490830 version:0.26.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-argh/python-argh.changes 2015-04-21 10:53:56.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-argh.new/python-argh.changes 2017-04-28 10:53:00.585443631 +0200 @@ -1,0 +2,13 @@ +Mon Apr 24 17:32:13 UTC 2017 - toddrme2...@gmail.com + +- Fix source URL +- Various small spec file cleanups. + +------------------------------------------------------------------- +Sun Apr 23 08:19:15 UTC 2017 - aloi...@gmx.com + +- Converted to single-spec +- Added python-argh-0.26.1-fix-testsuite.patch +- Enabled tests + +------------------------------------------------------------------- New: ---- python-argh-0.26.1-fix-testsuite.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-argh.spec ++++++ --- /var/tmp/diff_new_pack.kEbwU7/_old 2017-04-28 10:53:01.997244098 +0200 +++ /var/tmp/diff_new_pack.kEbwU7/_new 2017-04-28 10:53:02.001243533 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-argh # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,31 @@ # +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-argh Version: 0.26.1 Release: 0 -Url: https://github.com/neithere/argh/ Summary: A simple argparse wrapper License: LGPL-3.0+ Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/a/argh/argh-%{version}.tar.gz +Url: https://github.com/neithere/argh/ +Source: https://files.pythonhosted.org/packages/source/a/argh/argh-%{version}.tar.gz +# PATCH-FIX-OPENSUSE python-argh-0.26.1-fix-testsuite.patch -- so that tests can run on OBS +Patch0: python-argh-0.26.1-fix-testsuite.patch +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# test requirements +%if %{with tests} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-argparse >= 1.1 -BuildRequires: python-devel -BuildRequires: python-setuptools -Requires: python-argparse >= 1.1 -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description Agrh, argparse! @@ -61,16 +68,25 @@ %prep %setup -q -n argh-%{version} +%patch0 -p1 %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%if %{with tests} +%check +export LC_CTYPE="en_US.UTF-8" +%python_exec setup.py test +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/argh/ +%{python_sitelib}/argh-%{version}-py*.egg-info %changelog ++++++ python-argh-0.26.1-fix-testsuite.patch ++++++ Index: argh-0.26.1/test/test_integration.py =================================================================== --- argh-0.26.1.orig/test/test_integration.py +++ argh-0.26.1/test/test_integration.py @@ -772,4 +772,4 @@ def test_unknown_args(): assert run(p, '--bar 1', exit=True) == 'unrecognized arguments: --bar 1' assert run(p, '--bar 1', exit=False, kwargs={'skip_unknown_args': True}) == \ - R(out='usage: py.test [-h] [-f FOO]\n\n', err='') + R(out='usage: setup.py [-h] [-f FOO]\n\n', err='')