forked from pool/python-first
Accepting request 682705 from home:jayvdb:coala:python3-bears
- Use tests from upstream sdist - Update to v2.0.2 * Package tests as part of the dist. * Update docs. OBS-URL: https://build.opensuse.org/request/show/682705 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-first?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
f1c58f05d0
commit
e61f1c6a56
@@ -18,14 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-first
|
||||
Version: 2.0.1
|
||||
Version: 2.0.2
|
||||
Release: 0
|
||||
Summary: Return the first true value of an iterable
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/hynek/first/
|
||||
Source: https://files.pythonhosted.org/packages/source/f/first/first-%{version}.tar.gz
|
||||
Source1: https://raw.githubusercontent.com/hynek/first/master/test_first.py
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -37,7 +36,6 @@ Return the first true value of an iterable.
|
||||
|
||||
%prep
|
||||
%setup -q -n first-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -47,7 +45,7 @@ cp %{SOURCE1} .
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=. $python test_first.py
|
||||
%python_expand PYTHONPATH=. $python setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS.rst README.rst
|
||||
|
||||
Reference in New Issue
Block a user