Compare commits

4 Commits

2 changed files with 16 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Aug 14 02:40:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Skip a test that breaks with pytest 8.4.1.
-------------------------------------------------------------------
Tue Jun 3 12:26:19 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu Jul 6 11:22:16 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-promise
#
# 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
@@ -22,7 +22,6 @@ Version: 2.3.0
Release: 0
Summary: Promises/A+ implementation for Python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/syrusakbary/promise
Source: https://github.com/syrusakbary/promise/archive/v%{version}.tar.gz#/promise-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#syrusakbary/promise#96
@@ -31,10 +30,12 @@ Patch0: pytest-7-support.patch
Patch1: python-311.patch
# https://github.com/syrusakbary/promise/issues/101
Patch2: python-promise-no-six.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -47,14 +48,14 @@ This is an implementation of Promises in Python
%autosetup -p1 -n promise-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%pytest -k 'not test_issue_9_safe'
%files %{python_files}
%doc README.rst