commit 29a941686ead271e464bf7119170fc2956db58711ee8353bbcbd3b83bf5d59ef Author: Dominique Leuenberger Date: Wed Apr 19 16:09:15 2017 +0000 Accepting request 486551 from devel:languages:python requirement of python-html5lib OBS-URL: https://build.opensuse.org/request/show/486551 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-expect?expand=0&rev=1 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/pytest-expect-1.1.0.tar.gz b/pytest-expect-1.1.0.tar.gz new file mode 100644 index 0000000..29be072 --- /dev/null +++ b/pytest-expect-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36b4462704450798197d090809a05f4e13649d9cba9acdc557ce9517da1fd847 +size 3595 diff --git a/python-pytest-expect.changes b/python-pytest-expect.changes new file mode 100644 index 0000000..6b9b5f7 --- /dev/null +++ b/python-pytest-expect.changes @@ -0,0 +1,18 @@ +------------------------------------------------------------------- +Fri Mar 31 18:00:44 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Added tests + +------------------------------------------------------------------- +Sun Mar 12 17:39:44 UTC 2017 - arun@gmx.de + +- specfile: + * install requires pytest and u-msgpack-python + (fixes and error with e.g. html5lib) + +------------------------------------------------------------------- +Sun Jul 17 21:51:19 UTC 2016 - arun@gmx.de + +- initial version + diff --git a/python-pytest-expect.spec b/python-pytest-expect.spec new file mode 100644 index 0000000..b2bc1b0 --- /dev/null +++ b/python-pytest-expect.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pytest-expect +# +# 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-%{**}} +Name: python-pytest-expect +Version: 1.1.0 +Release: 0 +Summary: Py.test plugin to store test expectations and mark tests based on them +License: MIT +Group: Development/Languages/Python +Url: https://github.com/gsnedders/pytest-expect +Source: https://pypi.io/packages/source/p/pytest-expect/pytest-expect-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module u-msgpack-python} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pytest +Requires: python-u-msgpack-python +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +A py.test plugin that stores test expectations by saving the set of +failing tests, allowing them to be marked as xfail when running them +in future. The tests expectations are stored such that they can be +distributed alongside the tests. However, note that test expectations +can only be reliably shared between Python 2 and Python 3 if they only +use ASCII characters in their node ids: this likely isn’t a limitation +if tests are using the normal Python format, as Python 2 only allows +ASCII characters in identifiers. + + +%prep +%setup -q -n pytest-expect-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py test + +%files %{python_files} +%defattr(-,root,root,-) +%doc README.rst +%{python_sitelib}/pytest_expect +%{python_sitelib}/pytest_expect-%{version}-py%{python_version}.egg-info + +%changelog