From cc1e720343e743710f09657e11fa88855e7f5a93713d4234ec775d0f58167421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 26 Aug 2025 09:31:59 +0000 Subject: [PATCH] - Convert to libalternatives on SLE-16-based and newer systems OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtue?expand=0&rev=19 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + _service | 3 ++ python-virtue.changes | 74 ++++++++++++++++++++++++++++++++ python-virtue.spec | 96 ++++++++++++++++++++++++++++++++++++++++++ virtue-2023.8.2.tar.gz | 3 ++ virtue-2025.2.1.tar.gz | 3 ++ virtue-2025.7.1.tar.gz | 3 ++ 8 files changed, 206 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 python-virtue.changes create mode 100644 python-virtue.spec create mode 100644 virtue-2023.8.2.tar.gz create mode 100644 virtue-2025.2.1.tar.gz create mode 100644 virtue-2025.7.1.tar.gz 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..6062efc --- /dev/null +++ b/_service @@ -0,0 +1,3 @@ + + + diff --git a/python-virtue.changes b/python-virtue.changes new file mode 100644 index 0000000..0695cae --- /dev/null +++ b/python-virtue.changes @@ -0,0 +1,74 @@ +------------------------------------------------------------------- +Tue Aug 26 09:31:19 UTC 2025 - Markéta Machová + +- Convert to libalternatives on SLE-16-based and newer systems + +------------------------------------------------------------------- +Wed Jul 2 05:52:10 UTC 2025 - Johannes Kastl + +- 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 + +- 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 + +- update to 2023.8.2: + no changelog available, diff here: + https://github.com/Julian/Virtue/compare/v2023.08.1...v2023.08.2 + +------------------------------------------------------------------- +Wed Sep 6 15:41:18 UTC 2023 - Johannes Kastl + +- update to 2023.8.1: + no changelog available, diff here: + https://github.com/Julian/Virtue/compare/v2023.07.5...v2023.08.1 + +------------------------------------------------------------------- +Tue Aug 1 10:03:50 UTC 2023 - Johannes Kastl + +- update to 2023.7.5: + no changelog available, diff here: + https://github.com/Julian/Virtue/compare/v2023.07.4...v2023.07.5 + +------------------------------------------------------------------- +Tue Jul 18 18:56:06 UTC 2023 - Johannes Kastl + +- update to 2023.7.4: + no changelog available, diff here: + https://github.com/Julian/Virtue/compare/v2023.07.2...v2023.07.4 +- skipping non-existent release 2023.7.3 + +------------------------------------------------------------------- +Wed Jul 12 10:43:22 UTC 2023 - Johannes Kastl + +- update to 2023.7.2: + no changelog available, diff here: + https://github.com/Julian/Virtue/compare/v2023.07.1...v2023.07.2 +- update to 2023.7.1: + no changelog available, diff here: + https://github.com/Julian/Virtue/compare/v2023.05.3...v2023.07.1 + +------------------------------------------------------------------- +Thu Jun 1 05:20:20 UTC 2023 - Johannes Kastl + +- update to 2023.5.3 (new version naming scheme): + no changelog available, diff here: + https://github.com/Julian/Virtue/compare/v2023.05.2...v2023.05.3 + +------------------------------------------------------------------- +Fri May 5 11:13:01 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Fri Mar 24 18:32:59 UTC 2023 - Johannes Kastl + +- new package virtue, needed for tests in python-jsonschema diff --git a/python-virtue.spec b/python-virtue.spec new file mode 100644 index 0000000..aba8544 --- /dev/null +++ b/python-virtue.spec @@ -0,0 +1,96 @@ +# +# spec file for package python-virtue +# +# 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 +# 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/ +# + + +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif +%{?sle15_python_module_pythons} +Name: python-virtue +Version: 2025.7.1 +Release: 0 +Summary: After trial comes virtue. A test runner for good +License: MIT +URL: https://github.com/Julian/Virtue +Source: https://files.pythonhosted.org/packages/source/v/virtue/virtue-%{version}.tar.gz +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Twisted >= 23.10.0rc1 +Requires: python-attrs >= 19 +Requires: python-click +Requires: python-colorama +Requires: python-pyrsistent +Suggests: python-importlib_metadata +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 +After trial comes virtue. A test runner for good. + +%prep +%setup -q -n virtue-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%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 +%python_alternative %{_bindir}/virtue +%{python_sitelib}/virtue +%{python_sitelib}/virtue-%{version}.dist-info/ + +%changelog diff --git a/virtue-2023.8.2.tar.gz b/virtue-2023.8.2.tar.gz new file mode 100644 index 0000000..4dcb5fc --- /dev/null +++ b/virtue-2023.8.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ced7dd508d187897c49de18760c91a211ac7787d579d372a51a607e8c207c8e +size 20783 diff --git a/virtue-2025.2.1.tar.gz b/virtue-2025.2.1.tar.gz new file mode 100644 index 0000000..fb1c3f7 --- /dev/null +++ b/virtue-2025.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa8f329205629b2366c98bb0577d070abac4a5b0b91c9c73736b124252c98830 +size 33921 diff --git a/virtue-2025.7.1.tar.gz b/virtue-2025.7.1.tar.gz new file mode 100644 index 0000000..bc79582 --- /dev/null +++ b/virtue-2025.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7af7e000de8629279f7dcdad43a851a833aa5019c02b277e737d544600ca319b +size 34972