diff --git a/python-responses.changes b/python-responses.changes index 9cf5758..d6feae8 100644 --- a/python-responses.changes +++ b/python-responses.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue May 14 14:13:30 UTC 2019 - Ondřej Súkup + +- 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 diff --git a/python-responses.spec b/python-responses.spec index c9644f3..f1bb7a0 100644 --- a/python-responses.spec +++ b/python-responses.spec @@ -18,14 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-responses -Version: 0.10.5 +Version: 0.10.6 Release: 0 Summary: A utility library for mocking out the `requests` Python library License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/getsentry/responses Source: https://files.pythonhosted.org/packages/source/r/responses/responses-%{version}.tar.gz -Patch: tidy-py_modules.patch BuildRequires: %{python_module setuptools} # test requirements BuildRequires: %{python_module cookies} @@ -35,13 +34,13 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.0} BuildRequires: %{python_module six} BuildRequires: python-rpm-macros -Requires: python-cookies Requires: python-requests >= 2.0 Requires: python-six Suggests: python-pytest BuildArch: noarch %ifpython2 -Requires: python-mock +Requires: python2-cookies +Requires: python2-mock %endif %python_subpackages @@ -52,9 +51,6 @@ about the library. %prep %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 %python_build @@ -63,8 +59,7 @@ about the library. %python_install %check -# `setup.py test` requires additional unnecessary packages -%python_exec -m pytest +%pytest %files %{python_files} %doc CHANGES README.rst diff --git a/responses-0.10.5.tar.gz b/responses-0.10.5.tar.gz deleted file mode 100644 index 3f1e9d7..0000000 --- a/responses-0.10.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c85882d2dc608ce6b5713a4e1534120f4a0dc6ec79d1366570d2b0c909a50c87 -size 19314 diff --git a/responses-0.10.6.tar.gz b/responses-0.10.6.tar.gz new file mode 100644 index 0000000..559fc65 --- /dev/null +++ b/responses-0.10.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:502d9c0c8008439cfcdef7e251f507fcfdd503b56e8c0c87c3c3e3393953f790 +size 22102 diff --git a/tidy-py_modules.patch b/tidy-py_modules.patch deleted file mode 100644 index 77ffb65..0000000 --- a/tidy-py_modules.patch +++ /dev/null @@ -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,