Accepting request 497352 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/497352 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sure?expand=0&rev=3
This commit is contained in:
commit
23745c9155
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 22 16:52:16 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version.
|
||||
- Fix source URL.
|
||||
- Update to version 1.4.6
|
||||
* Enormous number of changes. Please see full changelog here:
|
||||
https://github.com/gabrielfalcao/sure/blob/v1.4.6/CHANGELOG.md
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 9 11:16:30 UTC 2016 - dvaleev@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-sure
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@ -16,29 +16,31 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without test
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-sure
|
||||
Version: 1.2.24
|
||||
Version: 1.4.6
|
||||
Release: 0
|
||||
Summary: Utility belt for automated testing in python for python
|
||||
License: GPL-3.0+
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/requests/sure
|
||||
Source: https://pypi.python.org/packages/source/s/sure/sure-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-rednose
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six
|
||||
Requires: python-mock
|
||||
Requires: python-six
|
||||
%py_requires
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
Source: https://files.pythonhosted.org/packages/source/s/sure/sure-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module mock >= 2.0.0}
|
||||
BuildRequires: %{python_module six >= 1.10.0}
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
Requires: python-mock >= 2.0.0
|
||||
Requires: python-six >= 1.10.0
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A testing library for python with powerful and flexible assertions. Sure is
|
||||
@ -49,17 +51,20 @@ heavily inspired by should.js
|
||||
sed -i '/^#!/d' sure/*.py
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
python setup.py test
|
||||
%python_expand nosetests-%{$python_bin_suffix}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.md
|
||||
%doc COPYING README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5c0456a0bfec40ffe57bf9f1f1d4f6cfd4b92848b8c97b5b4165afb933c0d2d3
|
||||
size 28089
|
3
sure-1.4.6.tar.gz
Normal file
3
sure-1.4.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3ff4f1a221b193e57194e58d75598169ace2e3a7c0e1f0108a4d65d384d7d8c7
|
||||
size 45608
|
Loading…
Reference in New Issue
Block a user