commit 7ab86a3e43140ea6b480099df4e97b71dc1b225017c6abe942020bcd51dbd254 Author: Jan Matejek Date: Thu Oct 12 13:48:30 2017 +0000 Accepting request 533483 from home:Simmphonie:python - Initial release version 5.2.0 OBS-URL: https://build.opensuse.org/request/show/533483 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.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 +*.tar 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..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/python-testfixtures.changes b/python-testfixtures.changes new file mode 100644 index 0000000..ae16959 --- /dev/null +++ b/python-testfixtures.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Sep 26 18:47:13 UTC 2017 - t.gruner@katodev.de + +- Initial release version 5.2.0 diff --git a/python-testfixtures.spec b/python-testfixtures.spec new file mode 100644 index 0000000..1eee41f --- /dev/null +++ b/python-testfixtures.spec @@ -0,0 +1,89 @@ +# +# spec file for package python-testfixtures +# +# 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-%{**}} + +# Test is disabled. It fails. +%bcond_with test + +Name: python-testfixtures +Version: 5.2.0 +Release: 0 +License: MIT +Summary: A collection of helpers and mock objects for unit tests and doc tests +Url: https://github.com/Simplistix/testfixtures +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pkginfo} +BuildRequires: %{python_module setuptools-git} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module twine} +BuildRequires: fdupes +%if %{with test} +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module virtualenv} +BuildRequires: %{python_module pyOpenSSL} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module sybil} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module coveralls} +BuildRequires: %{python_module zope.component} +BuildRequires: %{python_module django} +BuildRequires: %{python_module django-core} +BuildRequires: %{python_module django-nose} +BuildRequires: %{python_module pytest-django} +%endif +BuildArch: noarch + +%python_subpackages + +%description +TestFixtures is a collection of helpers and mock objects that are +useful when writing unit tests or doc tests. + +If you're wondering why "yet another mock object library", testing is +often described as an art form and as such some styles of library will +suit some people while others will suit other styles. This library +contains common test fixtures the author found himself +repeating from package to package and so decided to extract them into +their own library and give them some tests of their own! + +%prep +%setup -q -n testfixtures-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc LICENSE.txt README.rst +%{python_sitelib}/* + +%changelog diff --git a/testfixtures-5.2.0.tar.gz b/testfixtures-5.2.0.tar.gz new file mode 100644 index 0000000..b7afd6e --- /dev/null +++ b/testfixtures-5.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7427d4b63861c1896865ea7be078fa1e2b219ce9b1a9a0895f823475a5f76c85 +size 96223