forked from pool/python-pretend
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
7cbb9b7b94 | |||
3168ea416a |
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 12:09:40 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 12:29:41 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pretend
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pretend
|
||||
Version: 1.0.9
|
||||
@@ -27,8 +26,10 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/alex/pretend
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pretend/pretend-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/alex/pretend/master/test_pretend.py
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -41,13 +42,13 @@ Pretend is a library to make stubbing with Python easier.
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
|
||||
%check
|
||||
%python_exec -m pytest
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.rst
|
||||
|
Reference in New Issue
Block a user