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
|
Wed May 16 15:38:06 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@@ -13,28 +13,29 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define modname pyshould
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pyshould
|
Name: python-%{modname}
|
||||||
Version: 0.7.1
|
Version: 0.7.1
|
||||||
Release: 0
|
Release: 0
|
||||||
License: MIT
|
|
||||||
Summary: Should style asserts
|
Summary: Should style asserts
|
||||||
Url: https://github.com/drslump/pyshould
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
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 devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-hamcrest
|
||||||
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module hamcrest}
|
BuildRequires: %{python_module hamcrest}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires: python-hamcrest
|
|
||||||
BuildArch: noarch
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -52,21 +53,24 @@ to the unit testing runner used, since mismatches are reported using
|
|||||||
the standard AssertionError.
|
the standard AssertionError.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pyshould-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
# We shouldn't install tests
|
||||||
|
%python_expand rm -rvf %{buildroot}%{$python_sitelib}/tests
|
||||||
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
%python_exec setup.py test -v
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/%{modname}*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user