Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:42:Factory-Candidates-Check
python-pyshould
python-pyshould.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pyshould.spec of Package python-pyshould
# # spec file for package python-pyshould # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define modname pyshould Name: python-%{modname} Version: 0.7.1 Release: 0 Summary: Should style asserts License: MIT URL: https://github.com/drslump/%{modname} Source: https://files.pythonhosted.org/packages/source/p/pyshould/%{modname}-%{version}.tar.gz Patch0: fix-assertion-method.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-hamcrest BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module hamcrest} # /SECTION %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 %autosetup -p1 -n %{modname}-%{version} sed -i '/nose/d' setup.py %build %pyproject_wheel %install %pyproject_install # We shouldn't install tests %{python_expand rm -rvf %{buildroot}%{$python_sitelib}/tests %fdupes %{buildroot}%{$python_sitelib} } %check %pyunittest %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/%{modname} %{python_sitelib}/%{modname}-%{version}.dist-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor