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>
|
Fri Apr 21 12:29:41 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pretend
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pretend
|
Name: python-pretend
|
||||||
Version: 1.0.9
|
Version: 1.0.9
|
||||||
@@ -27,8 +26,10 @@ Group: Development/Languages/Python
|
|||||||
URL: https://github.com/alex/pretend
|
URL: https://github.com/alex/pretend
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pretend/pretend-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pretend/pretend-%{version}.tar.gz
|
||||||
Source1: https://raw.githubusercontent.com/alex/pretend/master/test_pretend.py
|
Source1: https://raw.githubusercontent.com/alex/pretend/master/test_pretend.py
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -41,13 +42,13 @@ Pretend is a library to make stubbing with Python easier.
|
|||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m pytest
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.rst
|
%license LICENSE.rst
|
||||||
|
Reference in New Issue
Block a user