commit python-pytest for openSUSE:Factory
Hello community, here is the log from the commit of package python-pytest for openSUSE:Factory checked in at 2017-02-27 18:33:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest (Old) and /work/SRC/openSUSE:Factory/.python-pytest.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-pytest" Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest/python-pytest-doc.changes 2016-09-20 13:23:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest.new/python-pytest-doc.changes 2017-02-27 18:34:01.422927782 +0100 @@ -1,0 +2,8 @@ +Thu Feb 23 14:40:25 UTC 2017 - jmatejek@suse.com + +- update for singlespec +- update to 3.0.6 + * fixed tests in python 3.6 +- only use Python 3 to build docs + +------------------------------------------------------------------- --- /work/SRC/openSUSE:Factory/python-pytest/python-pytest.changes 2016-09-20 13:23:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytest.new/python-pytest.changes 2017-02-27 18:34:01.662893876 +0100 @@ -1,0 +2,10 @@ +Mon Feb 20 14:05:32 UTC 2017 - jmatejek@suse.com + +- update for singlespec +- update to 3.0.6 + * the ids argument to parametrize again accepts unicode in python2 + * import errors for plugins now display full traceback + * no longer recognizes coroutine functions as yield tests + * see more in changelog + +------------------------------------------------------------------- Old: ---- pytest-3.0.2.tar.gz New: ---- pytest-3.0.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-doc.spec ++++++ --- /var/tmp/diff_new_pack.aAORir/_old 2017-02-27 18:34:02.218815327 +0100 +++ /var/tmp/diff_new_pack.aAORir/_new 2017-02-27 18:34:02.218815327 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytest-doc # -# Copyright (c) 2016 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,25 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-doc -Version: 3.0.2 +Version: 3.0.6 Release: 0 Summary: Simple powerful testing with Python License: MIT Group: Development/Languages/Python Url: http://pytest.org Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-Sphinx -BuildRequires: python-py >= 1.4.22 +BuildRequires: python3-Sphinx # Test requirements: -BuildRequires: python-mock -BuildRequires: python-hypothesis -BuildRequires: python-PyYAML -%if 0%{?suse_version} && 0%{?suse_version} > 1110 +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module hypothesis} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module py >= 1.4.29} +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch -%endif +Provides: %{python_module pytest-doc = %{version}} %description pytest helps you write better programs. It is a a mature full-featured, @@ -51,19 +52,18 @@ This package contains the documentation for pytest - %prep %setup -q -n pytest-%{version} %build -python setup.py build_sphinx +python3 setup.py build_sphinx rm doc/build/html/.buildinfo %install # Only building documentation %check -python setup.py test +%python_exec setup.py test %files %defattr(-,root,root,-) ++++++ python-pytest.spec ++++++ --- /var/tmp/diff_new_pack.aAORir/_old 2017-02-27 18:34:02.258809676 +0100 +++ /var/tmp/diff_new_pack.aAORir/_new 2017-02-27 18:34:02.262809111 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pytest # -# Copyright (c) 2016 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 @@ -15,8 +15,10 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest -Version: 3.0.2 +Version: 3.0.6 Release: 0 Summary: Simple powerful testing with Python License: MIT @@ -24,22 +26,19 @@ Url: http://pytest.org Source: https://files.pythonhosted.org/packages/source/p/pytest/pytest-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: unzip -BuildRequires: python-devel -BuildRequires: python-py >= 1.4.25 -BuildRequires: python-setuptools -BuildRequires: python-xml +BuildRequires: %{python_module devel} +BuildRequires: %{python_module py >= 1.4.29} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module xml} +BuildRequires: python-rpm-macros Requires: python-py >= 1.4.29 Requires(post): update-alternatives Requires(preun): update-alternatives #/usr/bin/py.test imports pkg_resources Requires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -Requires: python-argparse -%{!?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 pytest helps you write better programs. It is a a mature full-featured, @@ -60,37 +59,34 @@ %setup -q -n pytest-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +# for some reason we need something after python_expand in order to correctly eat multilines +%{python_expand %$python_install +mv %{buildroot}%{_bindir}/py.test{,-%$python_bin_suffix} +mv %{buildroot}%{_bindir}/pytest{,-%$python_bin_suffix} +} +%prepare_alternative py.test +%prepare_alternative pytest -# Prepare for update-alternatives usage -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -for p in py.test pytest ; do - mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver} - ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p -done +ln -s py.test-%python2_bin_suffix %{buildroot}%{_bindir}/py.test2 +ln -s py.test-%python3_bin_suffix %{buildroot}%{_bindir}/py.test3 %post -update-alternatives \ - --install %{_bindir}/py.test py.test %{_bindir}/py.test-%{py_ver} 20 \ - --slave %{_bindir}/pytest pytest %{_bindir}/pytest-%{py_ver} +%{python_install_alternative py.test} \ + --slave %{_bindir}/pytest pytest %{_bindir}/pytest-%{python_version} %preun -if [ $1 -eq 0 ] ; then - update-alternatives --remove py.test %{_bindir}/py.test-%{py_ver} -fi +%python_uninstall_alternative py.test -%files +%files %{python_files} %defattr(-,root,root,-) %doc AUTHORS LICENSE README.rst -%{_bindir}/py.test -%{_bindir}/pytest -%{_bindir}/py.test-%{py_ver} -%{_bindir}/pytest-%{py_ver} -%ghost %{_sysconfdir}/alternatives/py.test -%ghost %{_sysconfdir}/alternatives/pytest +%python_alternative %{_bindir}/py.test +%python_alternative %{_bindir}/pytest +%python2_only %{_bindir}/py.test2 +%python3_only %{_bindir}/py.test3 %{python_sitelib}/* %changelog ++++++ pytest-3.0.2.tar.gz -> pytest-3.0.6.tar.gz ++++++ ++++ 9576 lines of diff (skipped)
participants (1)
-
root@hilbertn.suse.de