forked from pool/python-pyshould
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
pyshould-0.7.1.tar.gz
Normal file
3
pyshould-0.7.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:fccc7a6cc9d54f475fc345890c25810f6a0d32da7b893c7d858b3a012bdcf6d3
|
||||||
|
size 22665
|
19
python-pyshould.changes
Normal file
19
python-pyshould.changes
Normal file
@@ -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
|
||||||
|
|
72
python-pyshould.spec
Normal file
72
python-pyshould.spec
Normal file
@@ -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
|
Reference in New Issue
Block a user