- update to 0.10.6
- drop tidy-py_modules.patch - use %pytest macro * ConnectionError's raised by responses now indicate which request path/method failed to match a mock. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=16
This commit is contained in:
parent
fb4314f1b7
commit
afa48d07a4
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 14 14:13:30 UTC 2019 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
|
||||||
|
- update to 0.10.6
|
||||||
|
- drop tidy-py_modules.patch
|
||||||
|
- use %pytest macro
|
||||||
|
* ConnectionError's raised by responses now indicate which request
|
||||||
|
path/method failed to match a mock.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Feb 10 05:10:22 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
Sun Feb 10 05:10:22 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@ -18,14 +18,13 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-responses
|
Name: python-responses
|
||||||
Version: 0.10.5
|
Version: 0.10.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A utility library for mocking out the `requests` Python library
|
Summary: A utility library for mocking out the `requests` Python library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/getsentry/responses
|
Url: https://github.com/getsentry/responses
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz
|
||||||
Patch: tidy-py_modules.patch
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
# test requirements
|
# test requirements
|
||||||
BuildRequires: %{python_module cookies}
|
BuildRequires: %{python_module cookies}
|
||||||
@ -35,13 +34,13 @@ BuildRequires: %{python_module pytest}
|
|||||||
BuildRequires: %{python_module requests >= 2.0}
|
BuildRequires: %{python_module requests >= 2.0}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-cookies
|
|
||||||
Requires: python-requests >= 2.0
|
Requires: python-requests >= 2.0
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
Suggests: python-pytest
|
Suggests: python-pytest
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: python-mock
|
Requires: python2-cookies
|
||||||
|
Requires: python2-mock
|
||||||
%endif
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -52,9 +51,6 @@ about the library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n responses-%{version}
|
%setup -q -n responses-%{version}
|
||||||
# Remove test module from distribution before a .pyc is created
|
|
||||||
# https://github.com/getsentry/responses/issues/256
|
|
||||||
%patch -p0
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -63,8 +59,7 @@ about the library.
|
|||||||
%python_install
|
%python_install
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# `setup.py test` requires additional unnecessary packages
|
%pytest
|
||||||
%python_exec -m pytest
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc CHANGES README.rst
|
%doc CHANGES README.rst
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c85882d2dc608ce6b5713a4e1534120f4a0dc6ec79d1366570d2b0c909a50c87
|
|
||||||
size 19314
|
|
3
responses-0.10.6.tar.gz
Normal file
3
responses-0.10.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:502d9c0c8008439cfcdef7e251f507fcfdd503b56e8c0c87c3c3e3393953f790
|
||||||
|
size 22102
|
@ -1,11 +0,0 @@
|
|||||||
--- setup.py 2018-12-18 02:42:05.000000000 +0700
|
|
||||||
+++ setup.py 2019-02-10 12:43:58.765722631 +0700
|
|
||||||
@@ -73,7 +73,7 @@
|
|
||||||
url="https://github.com/getsentry/responses",
|
|
||||||
license="Apache 2.0",
|
|
||||||
long_description=open("README.rst").read(),
|
|
||||||
- py_modules=["responses", "test_responses"],
|
|
||||||
+ py_modules=["responses", ],
|
|
||||||
zip_safe=False,
|
|
||||||
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
|
|
||||||
install_requires=install_requires,
|
|
Loading…
Reference in New Issue
Block a user