forked from pool/python-pyshould
Accepting request 613123 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/613123 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyshould?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 30 20:33:58 UTC 2018 - mcepl@suse.com
|
||||
|
||||
- Do not package tests/ directory
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 16 15:38:06 UTC 2018 - toddrme2178@gmail.com
|
||||
|
||||
|
@@ -13,28 +13,29 @@
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define modname pyshould
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pyshould
|
||||
Name: python-%{modname}
|
||||
Version: 0.7.1
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Should style asserts
|
||||
Url: https://github.com/drslump/pyshould
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyshould/pyshould-%{version}.tar.gz
|
||||
URL: https://github.com/drslump/%{modname}
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyshould/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-hamcrest
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module hamcrest}
|
||||
BuildRequires: %{python_module nose}
|
||||
# /SECTION
|
||||
Requires: python-hamcrest
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -52,21 +53,24 @@ to the unit testing runner used, since mismatches are reported using
|
||||
the standard AssertionError.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyshould-%{version}
|
||||
%setup -q -n %{modname}-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
# We shouldn't install tests
|
||||
%python_expand rm -rvf %{buildroot}%{$python_sitelib}/tests
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%python_exec setup.py test -v
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/%{modname}*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user