Accepting request 940343 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/940343 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sure?expand=0&rev=8
This commit is contained in:
commit
76f2bd3afc
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 12 16:15:50 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 2.0.0
|
||||||
|
* No longer patch the builtin dir() function, which fixes pytest
|
||||||
|
in some cases such as projects using gevent.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jun 12 07:59:31 UTC 2020 - pgajdos@suse.com
|
Fri Jun 12 07:59:31 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-sure
|
# spec file for package python-sure
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-sure
|
Name: python-sure
|
||||||
Version: 1.4.11
|
Version: 2.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Utility belt for automated testing in python for python
|
Summary: Utility belt for automated testing in python for python
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
@ -31,8 +31,11 @@ BuildRequires: %{python_module setuptools}
|
|||||||
BuildRequires: %{python_module six >= 1.10.0}
|
BuildRequires: %{python_module six >= 1.10.0}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
# regarding mock: https://github.com/gabrielfalcao/sure/pull/161
|
||||||
Requires: python-mock >= 2.0.0
|
Requires: python-mock >= 2.0.0
|
||||||
Requires: python-six >= 1.10.0
|
Requires: python-six >= 1.10.0
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -43,12 +46,14 @@ heavily inspired by should.js
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n sure-%{version}
|
%setup -q -n sure-%{version}
|
||||||
sed -i '/^#!/d' sure/*.py
|
sed -i '/^#!/d' sure/*.py
|
||||||
|
sed -i 's/--cov=sure//' setup.cfg
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/sure
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -56,9 +61,17 @@ sed -i '/^#!/d' sure/*.py
|
|||||||
rm tests/test_old_api.py
|
rm tests/test_old_api.py
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative sure
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative sure
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%python_alternative %{_bindir}/sure
|
||||||
|
%{python_sitelib}/sure
|
||||||
|
%{python_sitelib}/sure-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3c8d5271fb18e2c69e2613af1ad400d8df090f1456081635bd3171847303cdaa
|
|
||||||
size 45933
|
|
BIN
sure-2.0.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
sure-2.0.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user