Hello community, here is the log from the commit of package python-httpretty for openSUSE:Factory checked in at 2013-10-04 07:26:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-httpretty (Old) and /work/SRC/openSUSE:Factory/.python-httpretty.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-httpretty" Changes: -------- --- /work/SRC/openSUSE:Factory/python-httpretty/python-httpretty.changes 2013-09-26 16:03:12.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-httpretty.new/python-httpretty.changes 2013-10-04 07:26:01.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Sep 26 13:30:37 UTC 2013 - [email protected] + +- update to 0.6.4: + * Add a way to match the querystrings + +------------------------------------------------------------------- Old: ---- httpretty-0.6.3.tar.gz New: ---- httpretty-0.6.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-httpretty.spec ++++++ --- /var/tmp/diff_new_pack.iVk04s/_old 2013-10-04 07:26:02.000000000 +0200 +++ /var/tmp/diff_new_pack.iVk04s/_new 2013-10-04 07:26:02.000000000 +0200 @@ -13,15 +13,16 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Name: python-httpretty -Version: 0.6.3 +Version: 0.6.4 Release: 0 -License: MIT Summary: HTTP client mock for Python -Url: http://github.com/gabrielfalcao/httpretty +License: MIT Group: Development/Languages/Python +Url: http://github.com/gabrielfalcao/httpretty Source: https://pypi.python.org/packages/source/h/httpretty/httpretty-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools ++++++ httpretty-0.6.3.tar.gz -> httpretty-0.6.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpretty-0.6.3/PKG-INFO new/httpretty-0.6.4/PKG-INFO --- old/httpretty-0.6.3/PKG-INFO 2013-07-08 04:37:36.000000000 +0200 +++ new/httpretty-0.6.4/PKG-INFO 2013-09-23 21:41:05.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: httpretty -Version: 0.6.3 +Version: 0.6.4 Summary: HTTP client mock for Python Home-page: http://github.com/gabrielfalcao/httpretty Author: Gabriel Falcao diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpretty-0.6.3/httpretty/__init__.py new/httpretty-0.6.4/httpretty/__init__.py --- old/httpretty-0.6.3/httpretty/__init__.py 2013-07-08 04:37:36.000000000 +0200 +++ new/httpretty-0.6.4/httpretty/__init__.py 2013-09-23 21:41:05.000000000 +0200 @@ -25,7 +25,7 @@ # OTHER DEALINGS IN THE SOFTWARE. from __future__ import unicode_literals -__version__ = version = '0.6.3' +__version__ = version = '0.6.4' import sys diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpretty-0.6.3/httpretty/core.py new/httpretty-0.6.4/httpretty/core.py --- old/httpretty-0.6.3/httpretty/core.py 2013-07-08 04:37:36.000000000 +0200 +++ new/httpretty-0.6.4/httpretty/core.py 2013-09-23 21:41:05.000000000 +0200 @@ -294,23 +294,41 @@ self._entry.info = info self._entry.request = request - def debug(*a, **kw): - frame = inspect.stack()[0][0] - lines = map(utf8, traceback.format_stack(frame)) - - message = [ - "HTTPretty intercepted and unexpected socket method call.", - ("Please open an issue at " - "'https://github.com/gabrielfalcao/HTTPretty/issues'"), - "And paste the following traceback:\n", - "".join(decode_utf8(lines)), - ] - raise RuntimeError("\n".join(message)) + def debug(self, func, *a, **kw): + if self.is_http: + frame = inspect.stack()[0][0] + lines = map(utf8, traceback.format_stack(frame)) + + message = [ + "HTTPretty intercepted and unexpected socket method call.", + ("Please open an issue at " + "'https://github.com/gabrielfalcao/HTTPretty/issues'"), + "And paste the following traceback:\n", + "".join(decode_utf8(lines)), + ] + raise RuntimeError("\n".join(message)) + return func(*a, **kw) def settimeout(self, new_timeout): self.timeout = new_timeout - sendto = send = recvfrom_into = recv_into = recvfrom = recv = debug + def send(self, *args, **kwargs): + return self.debug(self.truesock.send, *args, **kwargs) + + def sendto(self, *args, **kwargs): + return self.debug(self.truesock.sendto, *args, **kwargs) + + def recvfrom_into(self, *args, **kwargs): + return self.debug(self.truesock.recvfrom_into, *args, **kwargs) + + def recv_into(self, *args, **kwargs): + return self.debug(self.truesock.recv_into, *args, **kwargs) + + def recvfrom(self, *args, **kwargs): + return self.debug(self.truesock.recvfrom, *args, **kwargs) + + def recv(self, *args, **kwargs): + return self.debug(self.truesock.recv, *args, **kwargs) def __getattr__(self, name): return getattr(self.truesock, name) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpretty-0.6.3/httpretty.egg-info/PKG-INFO new/httpretty-0.6.4/httpretty.egg-info/PKG-INFO --- old/httpretty-0.6.3/httpretty.egg-info/PKG-INFO 2013-07-08 04:37:36.000000000 +0200 +++ new/httpretty-0.6.4/httpretty.egg-info/PKG-INFO 2013-09-23 21:41:05.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: httpretty -Version: 0.6.3 +Version: 0.6.4 Summary: HTTP client mock for Python Home-page: http://github.com/gabrielfalcao/httpretty Author: Gabriel Falcao diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/httpretty-0.6.3/setup.py new/httpretty-0.6.4/setup.py --- old/httpretty-0.6.3/setup.py 2013-07-08 04:37:36.000000000 +0200 +++ new/httpretty-0.6.4/setup.py 2013-09-23 21:41:05.000000000 +0200 @@ -32,19 +32,22 @@ HTTPretty.disable() +HTTPRETTY_PATH = os.path.abspath(os.path.join(__file__, os.pardir)) + def get_packages(): # setuptools can't do the job :( packages = [] - for root, dirnames, filenames in os.walk('httpretty'): + for root, dirnames, filenames in os.walk(os.path.join(HTTPRETTY_PATH, 'httpretty')): + path = root.replace(HTTPRETTY_PATH, '').strip('/') if '__init__.py' in filenames: - packages.append(".".join(os.path.split(root)).strip(".")) + packages.append(".".join(os.path.split(path)).strip(".")) return packages def test_packages(): - test_reqs = os.path.join(os.getcwd(), 'requirements.pip') + test_reqs = os.path.join(HTTPRETTY_PATH, 'requirements.pip') tests_require = [ line.strip() for line in open(test_reqs).readlines() if not line.startswith("#") -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
