From e23390254ca4c4cb4bd2878ceec6d0827f7a17a0f729b303f2f90e416274e809 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 16 May 2018 17:36:42 +0000 Subject: [PATCH] Accepting request 609874 from devel:languages:python:misc Should style asserts OBS-URL: https://build.opensuse.org/request/show/609874 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyshould?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + pyshould-0.7.1.tar.gz | 3 ++ python-pyshould.changes | 19 +++++++++++ python-pyshould.spec | 72 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 118 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pyshould-0.7.1.tar.gz create mode 100644 python-pyshould.changes create mode 100644 python-pyshould.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/pyshould-0.7.1.tar.gz b/pyshould-0.7.1.tar.gz new file mode 100644 index 0000000..1e51975 --- /dev/null +++ b/pyshould-0.7.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fccc7a6cc9d54f475fc345890c25810f6a0d32da7b893c7d858b3a012bdcf6d3 +size 22665 diff --git a/python-pyshould.changes b/python-pyshould.changes new file mode 100644 index 0000000..41415a6 --- /dev/null +++ b/python-pyshould.changes @@ -0,0 +1,19 @@ +------------------------------------------------------------------- +Wed May 16 15:38:06 UTC 2018 - toddrme2178@gmail.com + +- Update to 0.7.1 + * Be a date: matcher for providing datetime type check + * Add 'contain_sparse' and 'have_sparse' shortcuts. +- Implement single-spec version + +------------------------------------------------------------------- +Fri Jun 3 15:39:18 UTC 2016 - toddrme2178@gmail.com + +- Update to version 0.6.2 + * No upstream changelog + +------------------------------------------------------------------- +Fri Aug 8 02:54:10 UTC 2014 - lowks@lowkster.com + +- Initial version of python-pyshould + diff --git a/python-pyshould.spec b/python-pyshould.spec new file mode 100644 index 0000000..1924184 --- /dev/null +++ b/python-pyshould.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-pyshould +# +# Copyright (c) 2018 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-pyshould +Version: 0.7.1 +Release: 0 +License: MIT +Summary: Should style asserts +Url: https://github.com/drslump/pyshould +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/pyshould/pyshould-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module hamcrest} +BuildRequires: %{python_module nose} +# /SECTION +Requires: python-hamcrest +BuildArch: noarch + +%python_subpackages + +%description +PyShould is a Python DSL allowing to write expectations or assertions +in almost natural language. The goal is to offer an expressive yet +readable syntax to define the expectations in detail. + +Under the hood it uses the PyHamcrest library of matchers to build +complex matching predicates and great explanations when there is a +mismatch. + +Its primary use case is in unit testing, replacing the need for +Python's native assertX methods. Its use is completely transparent +to the unit testing runner used, since mismatches are reported using +the standard AssertionError. + +%prep +%setup -q -n pyshould-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py test + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog