From 99db819aeebb1efe0e32cb9d7d39ae0760e6ddee85dcaefcd2867c4ca009024a Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Mon, 9 Feb 2015 15:24:33 +0000 Subject: [PATCH] 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 --- Remove-shebang-line.patch | 82 --------------------------------------- python-sure.changes | 10 +++++ python-sure.spec | 17 ++++++-- runTestsOnly.patch | 15 +++++++ sure-1.2.2.tar.gz | 3 -- sure-1.2.5.tar.gz | 3 ++ sure_hideDeps.patch | 22 +++++++++++ 7 files changed, 63 insertions(+), 89 deletions(-) delete mode 100644 Remove-shebang-line.patch create mode 100644 runTestsOnly.patch delete mode 100644 sure-1.2.2.tar.gz create mode 100644 sure-1.2.5.tar.gz create mode 100644 sure_hideDeps.patch diff --git a/Remove-shebang-line.patch b/Remove-shebang-line.patch deleted file mode 100644 index a43d5f0..0000000 --- a/Remove-shebang-line.patch +++ /dev/null @@ -1,82 +0,0 @@ -From 7ef4e162b217d455ac8fc6dd43616926e1d06e01 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= -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 -*- - # - # Copyright (C) <2010-2013> Gabriel Falcão -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 -*- - # - # Copyright (C) <2010-2013> Gabriel Falcão -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 -*- - # - # Copyright (C) <2010-2013> Gabriel Falcão -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 -*- - # - # Copyright (C) <2012> Gabriel Falcão -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 -*- - # - # Copyright (C) <2010-2013> Gabriel Falcão -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 -*- - # - # Copyright (C) <2012> Gabriel Falcão -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 -*- - # - # Copyright (C) <2010-2013> Gabriel Falcão --- -1.7.10.4 - diff --git a/python-sure.changes b/python-sure.changes index 2a44df1..53b2cd0 100644 --- a/python-sure.changes +++ b/python-sure.changes @@ -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 diff --git a/python-sure.spec b/python-sure.spec index 40203bb..98c07e9 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -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 diff --git a/runTestsOnly.patch b/runTestsOnly.patch new file mode 100644 index 0000000..bbac2fe --- /dev/null +++ b/runTestsOnly.patch @@ -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... " diff --git a/sure-1.2.2.tar.gz b/sure-1.2.2.tar.gz deleted file mode 100644 index 2154398..0000000 --- a/sure-1.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7ba85cd68676722a8a7b45a548ce9c139d093a8009660e4b4e4ed638b43ab3ad -size 16702 diff --git a/sure-1.2.5.tar.gz b/sure-1.2.5.tar.gz new file mode 100644 index 0000000..93d6822 --- /dev/null +++ b/sure-1.2.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a77c1372f3bf9784310b3cf0ab66e86190b531a2b68e47616bce0e4e4983fbe +size 52128 diff --git a/sure_hideDeps.patch b/sure_hideDeps.patch new file mode 100644 index 0000000..897a9b1 --- /dev/null +++ b/sure_hideDeps.patch @@ -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, + )