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,82 +0,0 @@
From 7ef4e162b217d455ac8fc6dd43616926e1d06e01 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= <mcihar@suse.cz>
Date: Tue, 19 Nov 2013 13:04:47 +0100
Subject: [PATCH] Remove shebang line
These are not executables, so the shebang does not make much sense.
---
sure/__init__.py | 1 -
sure/core.py | 1 -
sure/deprecated.py | 1 -
sure/magic.py | 1 -
sure/old.py | 1 -
sure/registry.py | 1 -
sure/terminal.py | 1 -
7 files changed, 7 deletions(-)
diff --git a/sure/__init__.py b/sure/__init__.py
index 3aa4ea8..1226daf 100644
--- a/sure/__init__.py
+++ b/sure/__init__.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <sure - utility belt for automated testing in python>
# Copyright (C) <2010-2013> Gabriel Falcão <gabriel@nacaolivre.org>
diff --git a/sure/core.py b/sure/core.py
index 6ec9e52..777e697 100644
--- a/sure/core.py
+++ b/sure/core.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <sure - utility belt for automated testing in python>
# Copyright (C) <2010-2013> Gabriel Falcão <gabriel@nacaolivre.org>
diff --git a/sure/deprecated.py b/sure/deprecated.py
index c48379a..242cef5 100644
--- a/sure/deprecated.py
+++ b/sure/deprecated.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <sure - utility belt for automated testing in python>
# Copyright (C) <2010-2013> Gabriel Falcão <gabriel@nacaolivre.org>
diff --git a/sure/magic.py b/sure/magic.py
index 1f2930a..d20c3d7 100644
--- a/sure/magic.py
+++ b/sure/magic.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <sure - utility belt for automated testing in python>
# Copyright (C) <2012> Gabriel Falcão <gabriel@nacaolivre.org>
diff --git a/sure/old.py b/sure/old.py
index 41c4849..f9052d8 100644
--- a/sure/old.py
+++ b/sure/old.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <sure - utility belt for automated testing in python>
# Copyright (C) <2010-2013> Gabriel Falcão <gabriel@nacaolivre.org>
diff --git a/sure/registry.py b/sure/registry.py
index 56e631a..ec3671c 100644
--- a/sure/registry.py
+++ b/sure/registry.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <sure - utility belt for automated testing in python>
# Copyright (C) <2012> Gabriel Falcão <gabriel@nacaolivre.org>
diff --git a/sure/terminal.py b/sure/terminal.py
index dfeeef4..90c95e5 100644
--- a/sure/terminal.py
+++ b/sure/terminal.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
# <sure - utility belt for automated testing in python>
# Copyright (C) <2010-2013> Gabriel Falcão <gabriel@nacaolivre.org>
--
1.7.10.4

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Feb 6 16:36:59 UTC 2015 - rjschwei@suse.com
- 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
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 19 12:14:54 UTC 2013 - mcihar@suse.cz Tue Nov 19 12:14:54 UTC 2013 - mcihar@suse.cz

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-sure # 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 # 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
@@ -17,15 +17,18 @@
Name: python-sure Name: python-sure
Version: 1.2.2 Version: 1.2.5
Release: 0 Release: 0
Summary: Utility belt for automated testing in python for python Summary: Utility belt for automated testing in python for python
License: GPL-3.0+ License: GPL-3.0+
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/requests/sure Url: https://github.com/requests/sure
Source: https://pypi.python.org/packages/source/s/sure/sure-%{version}.tar.gz 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-devel
BuildRequires: python-nose
BuildRequires: python-rednose
BuildRequires: python-setuptools BuildRequires: python-setuptools
%py_requires %py_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -41,7 +44,9 @@ heavily inspired by should.js
%prep %prep
%setup -q -n sure-%{version} %setup -q -n sure-%{version}
%patch0 -p1 %patch0
%patch1
sed -i 1d sure/*.py
%build %build
python setup.py build python setup.py build
@@ -49,8 +54,12 @@ python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
make test
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING README.md
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog

15
runTestsOnly.patch Normal file
View File

@@ -0,0 +1,15 @@
--- Makefile.orig
+++ Makefile
@@ -10,9 +10,9 @@ install_deps:
test:
@nosetests -s --verbosity=2 tests --rednose
- @steadymark OLD_API.md
- @steadymark README.md
- @pandoc -o readme.rst README.md
+ #@steadymark OLD_API.md
+ #@steadymark README.md
+ #@pandoc -o readme.rst README.md
clean:
@printf "Cleaning up files that are already in .gitignore... "

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ba85cd68676722a8a7b45a548ce9c139d093a8009660e4b4e4ed638b43ab3ad
size 16702

3
sure-1.2.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8a77c1372f3bf9784310b3cf0ab66e86190b531a2b68e47616bce0e4e4983fbe
size 52128

22
sure_hideDeps.patch Normal file
View File

@@ -0,0 +1,22 @@
--- setup.py.orig
+++ setup.py
@@ -73,8 +73,8 @@ local_file = lambda *f: \
open(os.path.join(os.path.dirname(__file__), *f)).read()
-install_requires, dependency_links = \
- parse_requirements('requirements.txt')
+#install_requires, dependency_links = \
+# parse_requirements('requirements.txt')
if __name__ == '__main__':
@@ -87,6 +87,6 @@ if __name__ == '__main__':
include_package_data=True,
url='http://github.com/gabrielfalcao/sure',
packages=find_packages(exclude=['*tests*']),
- install_requires=install_requires,
- dependency_links=dependency_links,
+# install_requires=install_requires,
+# dependency_links=dependency_links,
)