Hello community,

here is the log from the commit of package python-pytest-httpbin for 
openSUSE:Factory checked in at 2017-11-17 10:36:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-httpbin (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-httpbin.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-httpbin"

Fri Nov 17 10:36:42 2017 rev:4 rq:541759 version:0.3.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-httpbin/python-pytest-httpbin.changes  
    2017-08-14 12:37:34.180646666 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-httpbin.new/python-pytest-httpbin.changes
 2017-11-17 10:36:44.979790842 +0100
@@ -1,0 +2,12 @@
+Mon Nov 13 18:23:24 UTC 2017 - [email protected]
+
+- removed 0001-Remove-Flask-and-decorator-from-install_requires.patch
+  (included upstream)
+
+- update to version 0.3.0:
+  * Allow to run httpbin on fixed port using environment variables
+    (thanks @hroncok)
+  * Allow server to be thread.join()ed (thanks @graingert)
+  * Add support for Python 3.6 (thanks @graingert)
+
+-------------------------------------------------------------------

Old:
----
  0001-Remove-Flask-and-decorator-from-install_requires.patch
  pytest-httpbin-0.2.3.tar.gz

New:
----
  pytest-httpbin-0.3.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-httpbin.spec ++++++
--- /var/tmp/diff_new_pack.WMuDKZ/_old  2017-11-17 10:36:46.735726572 +0100
+++ /var/tmp/diff_new_pack.WMuDKZ/_new  2017-11-17 10:36:46.735726572 +0100
@@ -18,15 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pytest-httpbin
-Version:        0.2.3
+Version:        0.3.0
 Release:        0
 Summary:        Test your HTTP library against a local copy of httpbin
 License:        MIT
 Group:          Development/Languages/Python
 Url:            https://github.com/kevin1024/pytest-httpbin
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest-httpbin-%{version}.tar.gz
-# PATCH-FEATURE-UPSTREAM 
0001-Remove-Flask-and-decorator-from-install_requires.patch -- 
https://github.com/kevin1024/pytest-httpbin/pull/40
-Patch1:         0001-Remove-Flask-and-decorator-from-install_requires.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  python-rpm-macros
 Requires:       python-httpbin
@@ -48,7 +46,6 @@
 
 %prep
 %setup -q -n pytest-httpbin-%{version}
-%patch1 -p1
 
 %build
 

++++++ pytest-httpbin-0.2.3.tar.gz -> pytest-httpbin-0.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-httpbin-0.2.3/PKG-INFO 
new/pytest-httpbin-0.3.0/PKG-INFO
--- old/pytest-httpbin-0.2.3/PKG-INFO   2016-03-02 08:39:02.000000000 +0100
+++ new/pytest-httpbin-0.3.0/PKG-INFO   2017-10-28 23:38:07.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pytest-httpbin
-Version: 0.2.3
+Version: 0.3.0
 Summary: Easily test your HTTP library against a local copy of httpbin
 Home-page: https://github.com/kevin1024/pytest-httpbin
 Author: Kevin McCarthy
@@ -49,3 +49,5 @@
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-httpbin-0.2.3/pytest_httpbin/serve.py 
new/pytest-httpbin-0.3.0/pytest_httpbin/serve.py
--- old/pytest-httpbin-0.2.3/pytest_httpbin/serve.py    2016-03-02 
08:36:18.000000000 +0100
+++ new/pytest-httpbin-0.3.0/pytest_httpbin/serve.py    2017-10-28 
23:17:30.000000000 +0200
@@ -77,13 +77,17 @@
         # Thanks, WSGIRequestHandler!!
 
 
-class Server(threading.Thread):
+class Server(object):
     """
     HTTP server running a WSGI application in its own thread.
     """
 
+    port_envvar = 'HTTPBIN_HTTP_PORT'
+
     def __init__(self, host='127.0.0.1', port=0, application=None, **kwargs):
         self.app = application
+        if self.port_envvar in os.environ:
+            port = int(os.environ[self.port_envvar])
         self._server = make_server(
             host,
             port,
@@ -95,13 +99,17 @@
         self.port = self._server.server_address[1]
         self.protocol = 'http'
 
-        super(Server, self).__init__(
+        self._thread = threading.Thread(
             name=self.__class__,
             target=self._server.serve_forever,
         )
 
     def __del__(self):
-        self.stop()
+        if hasattr(self, '_server'):
+            self.stop()
+
+    def start(self):
+        self._thread.start()
 
     def __add__(self, other):
         return self.url + other
@@ -118,6 +126,8 @@
 
 
 class SecureServer(Server):
+    port_envvar = 'HTTPBIN_HTTPS_PORT'
+
     def __init__(self, host='127.0.0.1', port=0, application=None, **kwargs):
         kwargs['server_class'] = SecureWSGIServer
         super(SecureServer, self).__init__(host, port, application, **kwargs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-httpbin-0.2.3/pytest_httpbin/version.py 
new/pytest-httpbin-0.3.0/pytest_httpbin/version.py
--- old/pytest-httpbin-0.2.3/pytest_httpbin/version.py  2016-03-02 
08:37:55.000000000 +0100
+++ new/pytest-httpbin-0.3.0/pytest_httpbin/version.py  2017-10-28 
23:36:23.000000000 +0200
@@ -1 +1 @@
-__version__ = '0.2.3'
+__version__ = '0.3.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-httpbin-0.2.3/pytest_httpbin.egg-info/PKG-INFO 
new/pytest-httpbin-0.3.0/pytest_httpbin.egg-info/PKG-INFO
--- old/pytest-httpbin-0.2.3/pytest_httpbin.egg-info/PKG-INFO   2016-03-02 
08:39:02.000000000 +0100
+++ new/pytest-httpbin-0.3.0/pytest_httpbin.egg-info/PKG-INFO   2017-10-28 
23:38:07.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pytest-httpbin
-Version: 0.2.3
+Version: 0.3.0
 Summary: Easily test your HTTP library against a local copy of httpbin
 Home-page: https://github.com/kevin1024/pytest-httpbin
 Author: Kevin McCarthy
@@ -49,3 +49,5 @@
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Programming Language :: Python :: 3.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-httpbin-0.2.3/pytest_httpbin.egg-info/requires.txt 
new/pytest-httpbin-0.3.0/pytest_httpbin.egg-info/requires.txt
--- old/pytest-httpbin-0.2.3/pytest_httpbin.egg-info/requires.txt       
2016-03-02 08:39:02.000000000 +0100
+++ new/pytest-httpbin-0.3.0/pytest_httpbin.egg-info/requires.txt       
2017-10-28 23:38:07.000000000 +0200
@@ -1,4 +1,2 @@
-Flask
-decorator
 httpbin
 six
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-httpbin-0.2.3/setup.cfg 
new/pytest-httpbin-0.3.0/setup.cfg
--- old/pytest-httpbin-0.2.3/setup.cfg  2016-03-02 08:39:02.000000000 +0100
+++ new/pytest-httpbin-0.3.0/setup.cfg  2017-10-28 23:38:07.000000000 +0200
@@ -4,5 +4,4 @@
 [egg_info]
 tag_build = 
 tag_date = 0
-tag_svn_revision = 0
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-httpbin-0.2.3/setup.py 
new/pytest-httpbin-0.3.0/setup.py
--- old/pytest-httpbin-0.2.3/setup.py   2015-10-24 23:03:47.000000000 +0200
+++ new/pytest-httpbin-0.3.0/setup.py   2017-10-28 23:17:30.000000000 +0200
@@ -44,13 +44,15 @@
         'Programming Language :: Python :: 2.7',
         'Programming Language :: Python :: 3',
         'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
+        'Programming Language :: Python :: 3.6',
     ],
 
     # What does your project relate to?
     keywords='pytest-httpbin testing pytest httpbin',
     packages=find_packages(exclude=["contrib", "docs", "tests*"]),
     include_package_data = True, # include files listed in MANIFEST.in
-    install_requires = ['Flask','decorator','httpbin','six'],
+    install_requires = ['httpbin','six'],
 
     # the following makes a plugin available to pytest
     entry_points = {


Reply via email to