forked from pool/python-pretend
Accepting request 674883 from home:jayvdb:coala:python3-bears
- Activate test suite - Update to v1.0.9 * Make 'stub' object callable * Build and doc enhancements - Remove superfluous devel dependency for noarch package - Switch to singlespec approach - Initial version for v1.0.8 OBS-URL: https://build.opensuse.org/request/show/674883 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pretend?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
86137c8483
commit
4c2ae5ab3e
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pretend
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,13 +18,15 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pretend
|
||||
Version: 1.0.8
|
||||
Version: 1.0.9
|
||||
Release: 0
|
||||
Summary: A library for stubbing in Python
|
||||
License: BSD-3-Clause
|
||||
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 pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -35,6 +37,7 @@ Pretend is a library to make stubbing with Python easier.
|
||||
|
||||
%prep
|
||||
%setup -q -n pretend-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -42,6 +45,9 @@ Pretend is a library to make stubbing with Python easier.
|
||||
%install
|
||||
%python_install
|
||||
|
||||
%check
|
||||
%python_exec -m pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.rst
|
||||
%doc README.rst
|
||||
|
||||
Reference in New Issue
Block a user