14
0
forked from pool/python-virtue

6 Commits

4 changed files with 52 additions and 16 deletions

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Tue Aug 26 09:31:19 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Wed Jul 2 05:52:10 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 2025.7.1:
no changelog available, diff here:
https://github.com/Julian/Virtue/compare/v2025.2.1...v2025.7.1
-------------------------------------------------------------------
Fri Feb 7 18:18:38 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 2025.2.1:
no changelog available, diff here:
https://github.com/Julian/Virtue/compare/v2023.08.2...v2025.2.1
-------------------------------------------------------------------
Wed Sep 6 15:43:14 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-virtue
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,14 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-virtue
Version: 2023.8.2
Version: 2025.7.1
Release: 0
Summary: After trial comes virtue. A test runner for good
License: MIT
@@ -30,23 +35,28 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module attrs >= 19}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module click}
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module pyrsistent}
# /SECTION
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires: python-Twisted
Requires: python-Twisted >= 23.10.0rc1
Requires: python-attrs >= 19
Requires: python-click
Requires: python-colorama
Requires: python-pyrsistent
Suggests: python-importlib_metadata
Suggests: python-pkgutil_resolve_name >= 1.3.10
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Twisted >= 23.10.0rc1}
BuildRequires: %{python_module attrs >= 19}
BuildRequires: %{python_module click}
BuildRequires: %{python_module colorama}
BuildRequires: %{python_module pyrsistent}
BuildRequires: %{python_module pytest}
# /SECTION
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -63,12 +73,19 @@ After trial comes virtue. A test runner for good.
%python_clone -a %{buildroot}%{_bindir}/virtue
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTEST_IGNORE="test_foo"
%pytest -k "not (${PYTEST_IGNORE})"
%post
%python_install_alternative virtue
%postun
%python_uninstall_alternative virtue
%pre
%python_libalternatives_reset_alternative virtue
%files %{python_files}
%doc README.rst
%license COPYING

Binary file not shown.

3
virtue-2025.7.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7af7e000de8629279f7dcdad43a851a833aa5019c02b277e737d544600ca319b
size 34972