From 52691b77a8bbb8d26f18d690a64911ffddb0c832163dfb35d541bb32cd75a9b5 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 8 Sep 2017 18:59:37 +0000 Subject: [PATCH] Accepting request 522418 from home:TheBlackCat:branches:devel:languages:python Needed by the latest version of python3-raven OBS-URL: https://build.opensuse.org/request/show/522418 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exam?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + exam-0.10.6.tar.gz | 3 ++ python-exam.changes | 4 +++ python-exam.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 exam-0.10.6.tar.gz create mode 100644 python-exam.changes create mode 100644 python-exam.spec 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/exam-0.10.6.tar.gz b/exam-0.10.6.tar.gz new file mode 100644 index 0000000..6debf5e --- /dev/null +++ b/exam-0.10.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c2da07ebc1c7b292721b0585bd43b282c7bb3287d33805e9934166f73e11789 +size 15028 diff --git a/python-exam.changes b/python-exam.changes new file mode 100644 index 0000000..0870747 --- /dev/null +++ b/python-exam.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Sep 8 18:45:26 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-exam.spec b/python-exam.spec new file mode 100644 index 0000000..d8cde32 --- /dev/null +++ b/python-exam.spec @@ -0,0 +1,71 @@ +# +# spec file for package python-exam +# +# Copyright (c) 2017 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 +# 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/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-exam +Version: 0.10.6 +Release: 0 +License: MIT +Summary: Helpers for better testing +Url: https://github.com/fluxx/exam +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/e/exam/exam-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose} +%endif +BuildRequires: fdupes +%ifpython2 +Requires: python-mock +%endif +Recommends: python-pep8 +Recommends: python-pyflakes +BuildArch: noarch + +%python_subpackages + +%description +Exam is a Python toolkit for writing better tests. +It aims to remove a lot of the boiler plate testing +code one often writes, while still following Python +conventions and adhering to the unit testing interface. + +%prep +%setup -q -n exam-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +%python_exec setup.py nosetests +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.rst +%{python_sitelib}/* + +%changelog