commit python-django-webtest for openSUSE:Factory

2019-09-27 Thread root
Hello community,

here is the log from the commit of package python-django-webtest for 
openSUSE:Factory checked in at 2019-09-27 14:48:28

Comparing /work/SRC/openSUSE:Factory/python-django-webtest (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-webtest.new.2352 (New)


Package is "python-django-webtest"

Fri Sep 27 14:48:28 2019 rev:5 rq:731203 version:1.9.7

Changes:

--- 
/work/SRC/openSUSE:Factory/python-django-webtest/python-django-webtest.changes  
2019-06-17 21:35:15.938998202 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-webtest.new.2352/python-django-webtest.changes
2019-09-27 14:48:31.356753189 +0200
@@ -1,0 +2,6 @@
+Mon Sep 16 08:47:21 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.9.7:
+  * allow overriding HTTP_HOST with DjangoTestApp.__init__. Fixed #102
+
+---

Old:

  django-webtest-1.9.6.tar.gz

New:

  django-webtest-1.9.7.tar.gz



Other differences:
--
++ python-django-webtest.spec ++
--- /var/tmp/diff_new_pack.YVy3ef/_old  2019-09-27 14:48:31.916751734 +0200
+++ /var/tmp/diff_new_pack.YVy3ef/_new  2019-09-27 14:48:31.916751734 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-django-webtest
-Version:1.9.6
+Version:1.9.7
 Release:0
 Summary:Django integration for WebTest
 License:MIT

++ django-webtest-1.9.6.tar.gz -> django-webtest-1.9.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.6/CHANGES.rst 
new/django-webtest-1.9.7/CHANGES.rst
--- old/django-webtest-1.9.6/CHANGES.rst2019-06-07 11:29:28.0 
+0200
+++ new/django-webtest-1.9.7/CHANGES.rst2019-07-05 17:51:39.0 
+0200
@@ -2,6 +2,12 @@
 CHANGES
 ===
 
+1.9.7 (2019-07-05)
+--
+
+- allow overriding HTTP_HOST with DjangoTestApp.__init__. Fixed #102
+
+
 1.9.6 (2019-06-07)
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.6/PKG-INFO 
new/django-webtest-1.9.7/PKG-INFO
--- old/django-webtest-1.9.6/PKG-INFO   2019-06-07 11:29:28.0 +0200
+++ new/django-webtest-1.9.7/PKG-INFO   2019-07-05 17:51:39.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: django-webtest
-Version: 1.9.6
+Version: 1.9.7
 Summary: Instant integration of Ian Bicking's WebTest 
(http://docs.pylonsproject.org/projects/webtest/) with django's testing 
framework.
 Home-page: https://github.com/django-webtest/django-webtest
 Author: Mikhail Korobov
@@ -194,6 +194,12 @@
 CHANGES
 ===
 
+1.9.7 (2019-07-05)
+--
+
+- allow overriding HTTP_HOST with DjangoTestApp.__init__. Fixed #102
+
+
 1.9.6 (2019-06-07)
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.6/django_webtest/__init__.py 
new/django-webtest-1.9.7/django_webtest/__init__.py
--- old/django-webtest-1.9.6/django_webtest/__init__.py 2019-06-07 
11:29:28.0 +0200
+++ new/django-webtest-1.9.7/django_webtest/__init__.py 2019-07-05 
17:51:39.0 +0200
@@ -44,6 +44,9 @@
 response_class = DjangoWebtestResponse
 
 def __init__(self, *args, **kwargs):
+extra_environ = kwargs.get('extra_environ', {}).copy()
+extra_environ.setdefault('HTTP_HOST', 'testserver')
+kwargs['extra_environ'] = extra_environ
 super(DjangoTestApp, self).__init__(self.get_wsgi_handler(), *args, 
**kwargs)
 
 def get_wsgi_handler(self):
@@ -58,7 +61,6 @@
 
 def _update_environ(self, environ, user=_notgiven):
 environ = environ or {}
-environ.setdefault('HTTP_HOST', 'testserver')
 
 if user is not _notgiven:
 if user is None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/django-webtest-1.9.6/django_webtest.egg-info/PKG-INFO 
new/django-webtest-1.9.7/django_webtest.egg-info/PKG-INFO
--- old/django-webtest-1.9.6/django_webtest.egg-info/PKG-INFO   2019-06-07 
11:29:28.0 +0200
+++ new/django-webtest-1.9.7/django_webtest.egg-info/PKG-INFO   2019-07-05 
17:51:39.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: django-webtest
-Version: 1.9.6
+Version: 1.9.7
 Summary: Instant integration of Ian Bicking's WebTest 
(http://docs.pylonsproject.org/projects/webtest/) with django's testing 
framework.
 Home-page: https://github.com/django-webtest/django-webtest
 Author: Mikhail Korobov
@@ -194,6 +194,12 @@
 CHANGES
 

commit python-django-webtest for openSUSE:Factory

2019-06-17 Thread root
Hello community,

here is the log from the commit of package python-django-webtest for 
openSUSE:Factory checked in at 2019-06-17 21:34:39

Comparing /work/SRC/openSUSE:Factory/python-django-webtest (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-webtest.new.4811 (New)


Package is "python-django-webtest"

Mon Jun 17 21:34:39 2019 rev:4 rq:710342 version:1.9.6

Changes:

--- 
/work/SRC/openSUSE:Factory/python-django-webtest/python-django-webtest.changes  
2019-06-03 18:57:46.216375445 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-django-webtest.new.4811/python-django-webtest.changes
2019-06-17 21:35:15.938998202 +0200
@@ -1,0 +2,6 @@
+Mon Jun 17 12:03:44 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.9.6:
+  * rest_framework auth class. Fixed #98 #100
+
+---

Old:

  django-webtest-1.9.5.tar.gz

New:

  django-webtest-1.9.6.tar.gz



Other differences:
--
++ python-django-webtest.spec ++
--- /var/tmp/diff_new_pack.POFZQV/_old  2019-06-17 21:35:16.386998100 +0200
+++ /var/tmp/diff_new_pack.POFZQV/_new  2019-06-17 21:35:16.390998099 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-django-webtest
-Version:1.9.5
+Version:1.9.6
 Release:0
 Summary:Django integration for WebTest
 License:MIT

++ django-webtest-1.9.5.tar.gz -> django-webtest-1.9.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.5/CHANGES.rst 
new/django-webtest-1.9.6/CHANGES.rst
--- old/django-webtest-1.9.5/CHANGES.rst2019-05-31 13:37:54.0 
+0200
+++ new/django-webtest-1.9.6/CHANGES.rst2019-06-07 11:29:28.0 
+0200
@@ -2,6 +2,12 @@
 CHANGES
 ===
 
+1.9.6 (2019-06-07)
+--
+
+- rest_framework auth class. Fixed #98 #100
+
+
 1.9.5 (2019-05-31)
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.5/PKG-INFO 
new/django-webtest-1.9.6/PKG-INFO
--- old/django-webtest-1.9.5/PKG-INFO   2019-05-31 13:37:54.0 +0200
+++ new/django-webtest-1.9.6/PKG-INFO   2019-06-07 11:29:28.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: django-webtest
-Version: 1.9.5
+Version: 1.9.6
 Summary: Instant integration of Ian Bicking's WebTest 
(http://docs.pylonsproject.org/projects/webtest/) with django's testing 
framework.
 Home-page: https://github.com/django-webtest/django-webtest
 Author: Mikhail Korobov
@@ -194,6 +194,12 @@
 CHANGES
 ===
 
+1.9.6 (2019-06-07)
+--
+
+- rest_framework auth class. Fixed #98 #100
+
+
 1.9.5 (2019-05-31)
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.5/django_webtest/__init__.py 
new/django-webtest-1.9.6/django_webtest/__init__.py
--- old/django-webtest-1.9.5/django_webtest/__init__.py 2019-05-31 
13:37:54.0 +0200
+++ new/django-webtest-1.9.6/django_webtest/__init__.py 2019-06-07 
11:29:28.0 +0200
@@ -288,9 +288,17 @@
 settings.AUTHENTICATION_BACKENDS.insert(0, backend_name)
 
 def _setup_auth_class(self):
-class_name = 'django_webtest.rest_framework.WebtestAuthentication'
-auth_classes = 
settings.REST_FRAMEWORK['DEFAULT_AUTHENTICATION_CLASSES']
-auth_classes.insert(0, class_name)
+class_name = 'django_webtest.rest_framework_auth.WebtestAuthentication'
+drf_settings = settings.REST_FRAMEWORK
+try:
+classes = drf_settings['DEFAULT_AUTHENTICATION_CLASSES']
+except KeyError:
+classes = []
+if class_name not in classes:
+if isinstance(classes, tuple):
+classes = list(classes)
+classes.insert(0, class_name)
+drf_settings['DEFAULT_AUTHENTICATION_CLASSES'] = classes
 
 @property
 def middleware_setting_name(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/django-webtest-1.9.5/django_webtest/rest_framework.py 
new/django-webtest-1.9.6/django_webtest/rest_framework.py
--- old/django-webtest-1.9.5/django_webtest/rest_framework.py   2019-05-31 
13:37:54.0 +0200
+++ new/django-webtest-1.9.6/django_webtest/rest_framework.py   1970-01-01 
01:00:00.0 +0100
@@ -1,16 +0,0 @@
-from django.contrib.auth import authenticate
-
-from rest_framework import authentication
-
-
-class WebtestAuthentication(authentication.BaseAuthentication):
-"""Bridge 

commit python-django-webtest for openSUSE:Factory

2019-06-03 Thread root
Hello community,

here is the log from the commit of package python-django-webtest for 
openSUSE:Factory checked in at 2019-06-03 18:57:41

Comparing /work/SRC/openSUSE:Factory/python-django-webtest (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-webtest.new.5148 (New)


Package is "python-django-webtest"

Mon Jun  3 18:57:41 2019 rev:3 rq:707112 version:1.9.5

Changes:

--- 
/work/SRC/openSUSE:Factory/python-django-webtest/python-django-webtest.changes  
2018-12-11 15:49:48.334075762 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-webtest.new.5148/python-django-webtest.changes
2019-06-03 18:57:46.216375445 +0200
@@ -1,0 +2,8 @@
+Mon Jun  3 10:01:30 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.9.5:
+  * Fix compatibility with django 3. See #96
+  * Add integration with django-rest-framework auth
+  * Add missing args to DjangoTestApp. Fixed #86
+
+---

Old:

  django-webtest-1.9.4.tar.gz

New:

  django-webtest-1.9.5.tar.gz



Other differences:
--
++ python-django-webtest.spec ++
--- /var/tmp/diff_new_pack.kPTXVR/_old  2019-06-03 18:57:47.384375012 +0200
+++ /var/tmp/diff_new_pack.kPTXVR/_new  2019-06-03 18:57:47.384375012 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-webtest
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-django-webtest
-Version:1.9.4
+Version:1.9.5
 Release:0
 Summary:Django integration for WebTest
 License:MIT

++ django-webtest-1.9.4.tar.gz -> django-webtest-1.9.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.4/CHANGES.rst 
new/django-webtest-1.9.5/CHANGES.rst
--- old/django-webtest-1.9.4/CHANGES.rst2018-10-27 10:58:09.0 
+0200
+++ new/django-webtest-1.9.5/CHANGES.rst2019-05-31 13:37:54.0 
+0200
@@ -2,6 +2,15 @@
 CHANGES
 ===
 
+1.9.5 (2019-05-31)
+--
+
+- Fix compatibility with django 3. See #96
+
+- Add integration with django-rest-framework auth
+
+- Add missing args to DjangoTestApp. Fixed #86
+
 1.9.4 (2018-10-27)
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.4/PKG-INFO 
new/django-webtest-1.9.5/PKG-INFO
--- old/django-webtest-1.9.4/PKG-INFO   2018-10-27 10:58:09.0 +0200
+++ new/django-webtest-1.9.5/PKG-INFO   2019-05-31 13:37:54.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: django-webtest
-Version: 1.9.4
+Version: 1.9.5
 Summary: Instant integration of Ian Bicking's WebTest 
(http://docs.pylonsproject.org/projects/webtest/) with django's testing 
framework.
 Home-page: https://github.com/django-webtest/django-webtest
 Author: Mikhail Korobov
@@ -123,6 +123,16 @@
 follow links, submit forms, parse html, xml and json responses with 
different
 parsing libraries, upload files and more.
 
+Integration with django-rest-framework
+==
+
+If your project uses django-rest-framework__, the setting
+``REST_FRAMEWORK['AUTHENTICATION_CLASSES']`` will be patched
+automatically to include a class that links the rest-framework
+authentication system with ``app.get(user=user)``.
+
+.. __: https://www.django-rest-framework.org/
+
 Usage with pytest
 =
 
@@ -184,6 +194,15 @@
 CHANGES
 ===
 
+1.9.5 (2019-05-31)
+--
+
+- Fix compatibility with django 3. See #96
+
+- Add integration with django-rest-framework auth
+
+- Add missing args to DjangoTestApp. Fixed #86
+
 1.9.4 (2018-10-27)
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.4/README.rst 
new/django-webtest-1.9.5/README.rst
--- old/django-webtest-1.9.4/README.rst 2018-10-27 10:58:09.0 +0200
+++ new/django-webtest-1.9.5/README.rst 2019-05-31 13:37:54.0 +0200
@@ -115,6 +115,16 @@
 follow links, submit forms, parse html, xml and json responses with different
 parsing libraries, upload files and more.
 
+Integration with django-rest-framework

commit python-django-webtest for openSUSE:Factory

2018-12-11 Thread root
Hello community,

here is the log from the commit of package python-django-webtest for 
openSUSE:Factory checked in at 2018-12-11 15:49:44

Comparing /work/SRC/openSUSE:Factory/python-django-webtest (Old)
 and  /work/SRC/openSUSE:Factory/.python-django-webtest.new.19453 (New)


Package is "python-django-webtest"

Tue Dec 11 15:49:44 2018 rev:2 rq:657149 version:1.9.4

Changes:

--- 
/work/SRC/openSUSE:Factory/python-django-webtest/python-django-webtest.changes  
2017-12-23 12:19:57.350209902 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-django-webtest.new.19453/python-django-webtest.changes
   2018-12-11 15:49:48.334075762 +0100
@@ -1,0 +2,13 @@
+Tue Dec 11 11:36:29 UTC 2018 - Tomáš Chvátal 
+
+- Version update to 1.9.4:
+  * allow to use positionnal args; fixed #89
+  * remove deprecated pytest.yield_fixture functions. use pytest.fixture 
instead; fixed #88
+  * Don't add duplicate WebtestUserMiddleware to the list of middlewares in 
WebTestMixin. fixed #87
+  * restore MIDDLEWARE_CLASSES support; fixed #84
+  * Passing user=None to get/post/etc. methods will clear a user previously 
set with set_user instead of doing nothing.
+  * Avoid sharing settings between tests in pytest plugin
+  * Fix middleware settings name used
+- Enable tests
+
+---

Old:

  django-webtest-1.9.2.tar.gz

New:

  django-webtest-1.9.4.tar.gz



Other differences:
--
++ python-django-webtest.spec ++
--- /var/tmp/diff_new_pack.8f7j4r/_old  2018-12-11 15:49:49.770074176 +0100
+++ /var/tmp/diff_new_pack.8f7j4r/_new  2018-12-11 15:49:49.774074171 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-django-webtest
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,21 +12,27 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-django-webtest
-Version:1.9.2
+Version:1.9.4
 Release:0
 Summary:Django integration for WebTest
 License:MIT
 Group:  Development/Languages/Python
-Url:https://github.com/django-webtest/django-webtest
+URL:https://github.com/django-webtest/django-webtest
 Source: 
https://files.pythonhosted.org/packages/source/d/django-webtest/django-webtest-%{version}.tar.gz
+BuildRequires:  %{python_module Django}
+BuildRequires:  %{python_module WebTest >= 1.3.3}
+BuildRequires:  %{python_module pytest-django}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:   python-Django
 Requires:   python-WebTest >= 1.3.3
 %python_subpackages
 
@@ -41,9 +47,16 @@
 
 %install
 %python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%check
+pushd django_webtest_tests
+%python_exec runtests.py
+popd
 
 %files %{python_files}
-%doc AUTHORS.txt CHANGES.rst LICENSE.txt README.rst
+%license LICENSE.txt
+%doc AUTHORS.txt CHANGES.rst README.rst
 %{python_sitelib}/*
 
 %changelog

++ django-webtest-1.9.2.tar.gz -> django-webtest-1.9.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/django-webtest-1.9.2/CHANGES.rst 
new/django-webtest-1.9.4/CHANGES.rst
--- old/django-webtest-1.9.2/CHANGES.rst2017-05-17 10:52:10.0 
+0200
+++ new/django-webtest-1.9.4/CHANGES.rst2018-10-27 10:58:09.0 
+0200
@@ -2,6 +2,32 @@
 CHANGES
 ===
 
+1.9.4 (2018-10-27)
+--
+
+- py34 and Django 1.8 are no longer tested (but may works)
+
+- allow to use positionnal args; fixed #89
+
+- remove deprecated pytest.yield_fixture functions. use pytest.fixture instead;
+  fixed #88
+
+- Don't add duplicate WebtestUserMiddleware to the list of middlewares in
+  WebTestMixin. fixed #87
+
+- restore MIDDLEWARE_CLASSES support; fixed #84
+
+1.9.3 (2018-05-03)
+--
+
+- Passing `user=None` to get/post/etc. methods will clear a user
+  previously set with `set_user` instead of doing nothing.
+
+- Avoid sharing settings between tests in pytest plugin
+
+- Fix middleware settings name used
+
+
 1.9.2 (2017-05-17)
 --
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'