17
0

Compare commits

26 Commits

Author SHA256 Message Date
c5fc834a5c Accepting request 1157044 from devel:languages:python:pytest
Forwarded request #1156454 from bnavigator

- Fix requirements for python39 (yes really)
  - Make brittle test "fix" depending on the undocumented value of
    unexpanded %python_bin_suffix more robust

OBS-URL: https://build.opensuse.org/request/show/1157044
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=13
2024-03-13 21:17:56 +00:00
0d21f78e9e Accepting request 1156454 from home:bnavigator:branches:devel:languages:python:pytest
- Fix requirements for python39 (yes really)
- Make brittle test "fix" depending on the undocumented value of
  unexpanded %python_bin_suffix more robust

OBS-URL: https://build.opensuse.org/request/show/1156454
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=25
2024-03-11 21:35:05 +00:00
f489131cf6 Accepting request 1099550 from devel:languages:python:pytest
- Fix build error for Leap.

OBS-URL: https://build.opensuse.org/request/show/1099550
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=12
2023-07-24 16:24:46 +00:00
73c94232ea Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=23
2023-07-19 14:41:16 +00:00
525ac7f255 Accepting request 1099527 from home:ecsos:python
- Fix build error for Leap.

OBS-URL: https://build.opensuse.org/request/show/1099527
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=22
2023-07-19 14:36:35 +00:00
50d594225f Accepting request 1090270 from devel:languages:python:pytest
- 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.

OBS-URL: https://build.opensuse.org/request/show/1090270
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=11
2023-06-01 15:21:17 +00:00
73e2813d49 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=20
2023-06-01 10:16:12 +00:00
8ce1fc545b Accepting request 963380 from devel:languages:python:pytest
- Update to 1.3.1:
  * Remove use of mock.
- Drop patch remove-mock.patch, included upstream.

OBS-URL: https://build.opensuse.org/request/show/963380
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=10
2022-03-21 19:11:09 +00:00
4bd6b13613 - Update to 1.3.1:
* Remove use of mock.
- Drop patch remove-mock.patch, included upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=18
2022-03-21 01:24:09 +00:00
0170430c87 Accepting request 962569 from devel:languages:python:pytest
- 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.

OBS-URL: https://build.opensuse.org/request/show/962569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=9
2022-03-18 15:42:17 +00:00
c031ebc0a5 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=16
2022-03-18 04:16:21 +00:00
e1702feafb Accepting request 941307 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/941307
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=8
2021-12-18 19:30:10 +00:00
198d4e7ae9 Accepting request 941225 from home:pgajdos:python
- pytest-runner is not required for build

OBS-URL: https://build.opensuse.org/request/show/941225
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=15
2021-12-17 21:10:06 +00:00
ebaed9a0cc Accepting request 937342 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/937342
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=7
2021-12-09 18:45:36 +00:00
067b320370 Accepting request 936444 from home:pgajdos:python
- version update to 1.2.1
  * no upstream changelog
- deleted patches
  - virtualenv-20.patch (upstreamed)

- do not require pytest-runner for build, it is not needed

OBS-URL: https://build.opensuse.org/request/show/936444
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=14
2021-12-09 00:18:32 +00:00
0a5ea953b0 Accepting request 805767 from devel:languages:python:pytest
- Do not pull in pytest twice

OBS-URL: https://build.opensuse.org/request/show/805767
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=6
2020-05-15 21:52:15 +00:00
Tomáš Chvátal
c02f1a140f - Do not pull in pytest twice
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=12
2020-05-15 08:53:22 +00:00
fb0e7effd4 Accepting request 793540 from devel:languages:python:pytest
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/793540
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=5
2020-04-21 11:04:58 +00:00
Tomáš Chvátal
1f43fdfbc0 - Add patch to work with python-virtualenv >= 20:
* virtualenv-20.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=10
2020-04-06 08:22:41 +00:00
4f2963cde0 Accepting request 748852 from devel:languages:python:pytest
- Update to 0.2.0:
  * no upstream changelog

OBS-URL: https://build.opensuse.org/request/show/748852
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=4
2019-11-15 21:38:29 +00:00
Tomáš Chvátal
78d4c024a1 - Update to 0.2.0:
* no upstream changelog

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=8
2019-11-15 10:44:40 +00:00
3018aee772 Accepting request 733104 from devel:languages:python:pytest
- Update the pytest requirement to > 4 as per setup.py

OBS-URL: https://build.opensuse.org/request/show/733104
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=3
2019-09-26 18:40:36 +00:00
Tomáš Chvátal
5f3f636fe4 - Update the pytest requirement to > 4 as per setup.py
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=6
2019-09-25 09:05:10 +00:00
0d5fe3e4fa Accepting request 730736 from devel:languages:python:pytest
- Update to 0.1.10:
  * Print out return code, stdout and stderr output

OBS-URL: https://build.opensuse.org/request/show/730736
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=2
2019-09-16 08:51:06 +00:00
Tomáš Chvátal
873334d840 - Update to 0.1.10:
* Print out return code, stdout and stderr output

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-console-scripts?expand=0&rev=4
2019-09-13 13:24:11 +00:00
343ec94834 Accepting request 725243 from devel:languages:python:pytest
OBS-URL: https://build.opensuse.org/request/show/725243
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-console-scripts?expand=0&rev=1
2019-08-22 13:05:13 +00:00
4 changed files with 118 additions and 20 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8508674e176fa33cc04aa1bd0dadd59b10b24d3d23c3d73d75ffc10a7f1bd82e
size 9116

Binary file not shown.

View File

@@ -1,3 +1,95 @@
-------------------------------------------------------------------
Fri Mar 8 20:17:05 UTC 2024 - Ben Greiner <code@bnavigator.de>
- Fix requirements for python39 (yes really)
- Make brittle test "fix" depending on the undocumented value of
unexpanded %python_bin_suffix more robust
-------------------------------------------------------------------
Wed Jul 19 13:34:19 UTC 2023 - ecsos <ecsos@opensuse.org>
- Fix build error for Leap.
-------------------------------------------------------------------
Thu Jun 1 10:15:24 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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 <steven.kowalik@suse.com>
- 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 <steven.kowalik@suse.com>
- 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 <tchvatal@suse.com>
- Do not pull in pytest twice
-------------------------------------------------------------------
Mon Apr 6 08:19:12 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch to work with python-virtualenv >= 20:
* virtualenv-20.patch
-------------------------------------------------------------------
Fri Nov 15 10:41:07 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.2.0:
* no upstream changelog
-------------------------------------------------------------------
Wed Sep 25 09:04:51 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update the pytest requirement to > 4 as per setup.py
-------------------------------------------------------------------
Fri Sep 13 13:22:48 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.1.10:
* Print out return code, stdout and stderr output
-------------------------------------------------------------------
Thu Aug 22 08:31:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-console-scripts
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,27 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-pytest-console-scripts
Version: 0.1.9
Version: 1.4.1
Release: 0
Summary: Pytest plugin for testing console scripts
License: MIT
Group: Development/Languages/Python
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 importlib-metadata >= 3.6 if %python-base < 3.10}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 4.0.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-mock >= 2.0.0
Requires: python-pytest >= 3.0.0
Requires: python-pytest-runner
Requires: python-pytest >= 4.0.0
Requires: (python-importlib-metadata >= 3.6 if python-base < 3.10)
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module mock >= 2.0.0}
BuildRequires: %{python_module pytest >= 3.0.0}
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module virtualenv}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module virtualenv >= 20}
# /SECTION
%python_subpackages
@@ -54,18 +53,25 @@ much as possible.
%autosetup -n pytest-console-scripts-%{version} -p1
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
cp tests/test_run_scripts.py template_run_scripts.py
export PYTHONDONTWRITEBYTECODE=1
%{python_expand #
export PYTHONPATH=%{buildroot}%{$python_sitelib}
sed 's|env python|$python|' template_run_scripts.py > tests/test_run_scripts.py
$python -m pytest -v
}
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%doc README.md
%{python_sitelib}/pytest_console_scripts
%{python_sitelib}/pytest_console_scripts-%{version}.dist-info
%changelog