From 5236cfcdd63c2d1ad51edc03feb717e30aa7710b27cfe6e4ddca8ffed7a6b7ba Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Thu, 21 Nov 2013 17:03:43 +0000 Subject: [PATCH] Accepting request 207568 from home:Nijel:weblate New python package OBS-URL: https://build.opensuse.org/request/show/207568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sure?expand=0&rev=1 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + Remove-shebang-line.patch | 82 +++++++++++++++++++++++++++++++++++++++ python-sure.changes | 15 +++++++ python-sure.spec | 56 ++++++++++++++++++++++++++ sure-1.2.2.tar.gz | 3 ++ 6 files changed, 180 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Remove-shebang-line.patch create mode 100644 python-sure.changes create mode 100644 python-sure.spec create mode 100644 sure-1.2.2.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Remove-shebang-line.patch b/Remove-shebang-line.patch new file mode 100644 index 0000000..a43d5f0 --- /dev/null +++ b/Remove-shebang-line.patch @@ -0,0 +1,82 @@ +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 new file mode 100644 index 0000000..2a44df1 --- /dev/null +++ b/python-sure.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Tue Nov 19 12:14:54 UTC 2013 - mcihar@suse.cz + +- remove shebang from module sources + +------------------------------------------------------------------- +Tue Nov 19 08:35:50 UTC 2013 - mcihar@suse.cz + +- various rpmlint fixes + +------------------------------------------------------------------- +Thu Nov 7 10:55:37 UTC 2013 - mcihar@suse.cz + +- Initial packaging + diff --git a/python-sure.spec b/python-sure.spec new file mode 100644 index 0000000..40203bb --- /dev/null +++ b/python-sure.spec @@ -0,0 +1,56 @@ +# +# spec file for package python-sure +# +# Copyright (c) 2013 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: python-sure +Version: 1.2.2 +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 +BuildRequires: python-devel +BuildRequires: python-setuptools +%py_requires +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif + +%description +A testing library for python with powerful and flexible assertions. Sure is +heavily inspired by should.js + +%prep +%setup -q -n sure-%{version} +%patch0 -p1 + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +%files +%defattr(-,root,root,-) +%{python_sitelib}/* + +%changelog diff --git a/sure-1.2.2.tar.gz b/sure-1.2.2.tar.gz new file mode 100644 index 0000000..2154398 --- /dev/null +++ b/sure-1.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ba85cd68676722a8a7b45a548ce9c139d093a8009660e4b4e4ed638b43ab3ad +size 16702