From b02498d566524aa2b3f14a830a8e9636c25db6fb58da89b4b7eee380c94d9b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 22:19:44 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-pytest-console-scripts revision 78fab410c3dfbc93fd344650b0e63969 --- .gitattributes | 23 ++++++ pytest-console-scripts-1.4.1.tar.gz | 3 + python-pytest-console-scripts.changes | 102 ++++++++++++++++++++++++++ python-pytest-console-scripts.spec | 73 ++++++++++++++++++ 4 files changed, 201 insertions(+) create mode 100644 .gitattributes create mode 100644 pytest-console-scripts-1.4.1.tar.gz create mode 100644 python-pytest-console-scripts.changes create mode 100644 python-pytest-console-scripts.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/pytest-console-scripts-1.4.1.tar.gz b/pytest-console-scripts-1.4.1.tar.gz new file mode 100644 index 0000000..ab6fb20 --- /dev/null +++ b/pytest-console-scripts-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a826ed84cc0afa202eb9e44381d7d762f7bdda8e0c23f9f79a7f1f44cf4a895 +size 20994 diff --git a/python-pytest-console-scripts.changes b/python-pytest-console-scripts.changes new file mode 100644 index 0000000..f24d7f8 --- /dev/null +++ b/python-pytest-console-scripts.changes @@ -0,0 +1,102 @@ +------------------------------------------------------------------- +Wed Jul 19 13:34:19 UTC 2023 - ecsos + +- Fix build error for Leap. + +------------------------------------------------------------------- +Thu Jun 1 10:15:24 UTC 2023 - Dirk Müller + +- update to 1.4.1: + * Dropped support for Python 3.7 + * Fix loading scripts with non-UTF-8 encodings. + * Print output when a subprocess runner with `check=True` fails + was missing. + * Added type-hinting for all types, + `pytest_console_scripts.ScriptRunner` + can now be used to hint the `script_runner` fixture. + * Added support for the `shell` and `check` keywords for in- + process mode. + * Passing command arguments in `*args` is now deprecated and + will raise warnings. + * Dropped support for Python 3.6 + * Install-time dependencies have been fixed. + +------------------------------------------------------------------- +Mon Mar 21 01:22:50 UTC 2022 - Steve Kowalik + +- Update to 1.3.1: + * Remove use of mock. +- Drop patch remove-mock.patch, included upstream. + +------------------------------------------------------------------- +Fri Mar 18 04:14:59 UTC 2022 - Steve Kowalik + +- Update to 1.3: + * Add a note on manual result printing to README - #50 + * Bump Python version to 3.6 - fix #51 +- Add patch remove-mock.patch: + * Remove use of mock. + +------------------------------------------------------------------- +Fri Dec 17 13:50:46 UTC 2021 - pgajdos@suse.com + +- pytest-runner is not required for build + +------------------------------------------------------------------- +Wed Dec 8 08:33:48 UTC 2021 - pgajdos@suse.com + +- version update to 1.2.1 + * no upstream changelog +- deleted patches + - virtualenv-20.patch (upstreamed) + +------------------------------------------------------------------- +Wed Dec 8 07:33:48 UTC 2021 - pgajdos@suse.com + +- do not require pytest-runner for build, it is not needed + +------------------------------------------------------------------- +Fri May 15 08:53:13 UTC 2020 - Tomáš Chvátal + +- Do not pull in pytest twice + +------------------------------------------------------------------- +Mon Apr 6 08:19:12 UTC 2020 - Tomáš Chvátal + +- Add patch to work with python-virtualenv >= 20: + * virtualenv-20.patch + +------------------------------------------------------------------- +Fri Nov 15 10:41:07 UTC 2019 - Tomáš Chvátal + +- Update to 0.2.0: + * no upstream changelog + +------------------------------------------------------------------- +Wed Sep 25 09:04:51 UTC 2019 - Tomáš Chvátal + +- Update the pytest requirement to > 4 as per setup.py + +------------------------------------------------------------------- +Fri Sep 13 13:22:48 UTC 2019 - Tomáš Chvátal + +- Update to 0.1.10: + * Print out return code, stdout and stderr output + +------------------------------------------------------------------- +Thu Aug 22 08:31:23 UTC 2019 - Tomáš Chvátal + +- Use spec-cleaner +- Update to 0.1.9: + * Fixes for newer pytest releases + +------------------------------------------------------------------- +Mon Oct 1 12:07:44 UTC 2018 - Andreas Schneider + +- Update to version 0.1.6 +- Added pytest-console-scripts-0.1.6_test_virtualenv.patch + +------------------------------------------------------------------- +Fri Jun 15 09:11:13 UTC 2018 - Andreas Schneider + +- Initial package diff --git a/python-pytest-console-scripts.spec b/python-pytest-console-scripts.spec new file mode 100644 index 0000000..e448326 --- /dev/null +++ b/python-pytest-console-scripts.spec @@ -0,0 +1,73 @@ +# +# spec file for package python-pytest-console-scripts +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pytest-console-scripts +Version: 1.4.1 +Release: 0 +Summary: Pytest plugin for testing console scripts +License: MIT +URL: https://github.com/kvas-it/pytest-console-scripts +Source: https://files.pythonhosted.org/packages/source/p/pytest-console-scripts/pytest-console-scripts-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest >= 4.0.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest >= 4.0.0} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module virtualenv >= 20} +# /SECTION +%python_subpackages + +%description +Pytest-console-scripts is a `Pytest`_ plugin for testing python scripts +installed via ``console_scripts`` entry point of ``setup.py``. It can run the +scripts under test in a separate process or using the interpreter that's +running the test suite. The former mode ensures that the script will run in an +environment that is identical to normal execution whereas the latter one allows +much quicker test runs during development while simulating the real runs as +much as possible. + +%prep +%autosetup -n pytest-console-scripts-%{version} -p1 + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%if 0%{?suse_version} > 1500 +sed -i 's:env python:env python3:' tests/test_run_scripts.py +%else +sed -i 's:env python:env python%{python_bin_suffix}:' tests/test_run_scripts.py +%endif +%pytest + +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitelib}/pytest_console_scripts +%{python_sitelib}/pytest_console_scripts-%{version}*-info + +%changelog