From a785ba3ee3cd7103578081b1fc44776656a55b89619de3dfb6b40de82164bf8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 30 Mar 2020 12:52:49 +0000 Subject: [PATCH] Accepting request 789712 from home:mcalabkova:branches:devel:languages:python - Update to 3.0 * Added support for Python 3.7 and 3.8. * Dropped support for Python 2.6 and 3.4. * Actively deprecate ``interpret_carriage_returns()``. * Moved test helpers to :mod:`humanfriendly.testing`. * Include documentation in source distributions. * Use Python 3 for local development (``Makefile``). * Restructured the online documentation. * Updated PyPI domain in documentation. * Added this changelog. OBS-URL: https://build.opensuse.org/request/show/789712 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-capturer?expand=0&rev=8 --- capturer-2.4.tar.gz | 3 --- capturer-3.0.tar.gz | 3 +++ python-capturer.changes | 14 ++++++++++++++ python-capturer.spec | 17 ++++++++++------- 4 files changed, 27 insertions(+), 10 deletions(-) delete mode 100644 capturer-2.4.tar.gz create mode 100644 capturer-3.0.tar.gz diff --git a/capturer-2.4.tar.gz b/capturer-2.4.tar.gz deleted file mode 100644 index e3c91da..0000000 --- a/capturer-2.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:090142a58f3f85def3a7dd55d9024d0d1a86d1a88aaf9317c0f146244994a615 -size 16963 diff --git a/capturer-3.0.tar.gz b/capturer-3.0.tar.gz new file mode 100644 index 0000000..b52a3a9 --- /dev/null +++ b/capturer-3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4849032f6a670c02be434c484a0abf43c870a1efafafbfffd2e6f1c1f7ef5001 +size 18146 diff --git a/python-capturer.changes b/python-capturer.changes index 1bdafc4..ebc3dd0 100644 --- a/python-capturer.changes +++ b/python-capturer.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Mar 30 09:31:30 UTC 2020 - Marketa Calabkova + +- Update to 3.0 + * Added support for Python 3.7 and 3.8. + * Dropped support for Python 2.6 and 3.4. + * Actively deprecate ``interpret_carriage_returns()``. + * Moved test helpers to :mod:`humanfriendly.testing`. + * Include documentation in source distributions. + * Use Python 3 for local development (``Makefile``). + * Restructured the online documentation. + * Updated PyPI domain in documentation. + * Added this changelog. + ------------------------------------------------------------------- Tue Dec 4 12:46:28 UTC 2018 - Matej Cepl diff --git a/python-capturer.spec b/python-capturer.spec index a146bcf..cfd048c 100644 --- a/python-capturer.spec +++ b/python-capturer.spec @@ -1,7 +1,7 @@ # # spec file for package python-capturer # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,22 +17,25 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_with test +%bcond_without test Name: python-capturer -Version: 2.4 +Version: 3.0 Release: 0 Summary: Python module for capturing stdout/stderr of the current process group License: MIT Group: Development/Languages/Python -Url: https://capturer.readthedocs.io +URL: https://capturer.readthedocs.io Source: https://files.pythonhosted.org/packages/source/c/capturer/capturer-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with test} -BuildRequires: %{python_module humanfriendly >= 2.1} +BuildRequires: %{python_module coverage >= 4.2} +BuildRequires: %{python_module humanfriendly >= 8.0} +BuildRequires: %{python_module pytest >= 3.0.4} +BuildRequires: %{python_module pytest-cov >= 2.4.0} %endif -Requires: python-humanfriendly >= 2.1 +Requires: python-humanfriendly >= 8.0 BuildArch: noarch %python_subpackages @@ -59,7 +62,7 @@ but definitely won't work on Windows (due to the use of the platform dependent %if %{with test} %check export LANG=en_US.UTF-8 -%python_exec setup.py test +%pytest capturer/tests.py %endif %files %{python_files}