diff --git a/python-sure.changes b/python-sure.changes index caf304d..fce1926 100644 --- a/python-sure.changes +++ b/python-sure.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Apr 22 11:35:20 UTC 2015 - mcihar@suse.cz + +- Update to 1.2.10 + * No upstream changelog available +- Remove only shebang by sed +- Run testsuite directly from setup.py +- Remove not needed patches (runTestsOnly.patch, sure_hideDeps.patch) + ------------------------------------------------------------------- Fri Feb 6 16:36:59 UTC 2015 - rjschwei@suse.com diff --git a/python-sure.spec b/python-sure.spec index 98c07e9..7b30f17 100644 --- a/python-sure.spec +++ b/python-sure.spec @@ -1,7 +1,7 @@ # # spec file for package python-sure # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -17,19 +17,21 @@ Name: python-sure -Version: 1.2.5 +Version: 1.2.10 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: sure_hideDeps.patch -Patch1: runTestsOnly.patch BuildRequires: python-devel +BuildRequires: python-mock BuildRequires: python-nose BuildRequires: python-rednose BuildRequires: python-setuptools +BuildRequires: python-six +Requires: python-mock +Requires: python-six %py_requires BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 @@ -44,9 +46,7 @@ heavily inspired by should.js %prep %setup -q -n sure-%{version} -%patch0 -%patch1 -sed -i 1d sure/*.py +sed -i '/^#!/d' sure/*.py %build python setup.py build @@ -55,11 +55,11 @@ python setup.py build python setup.py install --prefix=%{_prefix} --root=%{buildroot} %check -make test +python setup.py test %files %defattr(-,root,root,-) -%doc COPYING README.md +%doc README.md %{python_sitelib}/* %changelog diff --git a/runTestsOnly.patch b/runTestsOnly.patch deleted file mode 100644 index bbac2fe..0000000 --- a/runTestsOnly.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- 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.10.tar.gz b/sure-1.2.10.tar.gz new file mode 100644 index 0000000..3581ed9 --- /dev/null +++ b/sure-1.2.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1d16d8b662a8ae2e6f92ba08ca6ddd10643edb8538abc8d693cb1cc12565093 +size 27867 diff --git a/sure-1.2.5.tar.gz b/sure-1.2.5.tar.gz deleted file mode 100644 index 93d6822..0000000 --- a/sure-1.2.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8a77c1372f3bf9784310b3cf0ab66e86190b531a2b68e47616bce0e4e4983fbe -size 52128 diff --git a/sure_hideDeps.patch b/sure_hideDeps.patch deleted file mode 100644 index 897a9b1..0000000 --- a/sure_hideDeps.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- 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, - )