14
0
forked from pool/python-sure

Accepting request 284524 from home:rjschwei:branches:devel:languages:python

- Update to version 1.2.5
  + remove Remove-shebang-line.patch, replaced by sed expression
  + add sure_hideDeps.patch, hides implicit Python dependencies
  + add runTestsOnly.patch only run the tests with make test
  + run the package tests as part of the package build
  + No upstream changelog available

OBS-URL: https://build.opensuse.org/request/show/284524
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sure?expand=0&rev=2
This commit is contained in:
Denisart Benjamin
2015-02-09 15:24:33 +00:00
committed by Git OBS Bridge
parent 5236cfcdd6
commit 99db819aee
7 changed files with 63 additions and 89 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-sure
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,18 @@
Name: python-sure
Version: 1.2.2
Version: 1.2.5
Release: 0
Summary: Utility belt for automated testing in python for python
License: GPL-3.0+
Group: Development/Languages/Python
Url: https://github.com/requests/sure
Source: https://pypi.python.org/packages/source/s/sure/sure-%{version}.tar.gz
Patch0: Remove-shebang-line.patch
Patch0: sure_hideDeps.patch
Patch1: runTestsOnly.patch
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-rednose
BuildRequires: python-setuptools
%py_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -41,7 +44,9 @@ heavily inspired by should.js
%prep
%setup -q -n sure-%{version}
%patch0 -p1
%patch0
%patch1
sed -i 1d sure/*.py
%build
python setup.py build
@@ -49,8 +54,12 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
make test
%files
%defattr(-,root,root,-)
%doc COPYING README.md
%{python_sitelib}/*
%changelog