commit python-mocket for openSUSE:Factory

2020-10-29 Thread root
Hello community,

here is the log from the commit of package python-mocket for openSUSE:Factory 
checked in at 2020-10-29 09:48:24

Comparing /work/SRC/openSUSE:Factory/python-mocket (Old)
 and  /work/SRC/openSUSE:Factory/.python-mocket.new.3463 (New)


Package is "python-mocket"

Thu Oct 29 09:48:24 2020 rev:6 rq:842363 version:3.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-mocket/python-mocket.changes  
2020-08-12 10:36:44.508298543 +0200
+++ /work/SRC/openSUSE:Factory/.python-mocket.new.3463/python-mocket.changes
2020-10-29 09:48:32.480179445 +0100
@@ -1,0 +2,19 @@
+Sun Oct 11 07:03:02 UTC 2020 - Sebastian Wagner 
+
+- Update to version 3.9.1:
+ - Multiple HTTP writes (#125)
+ - Fix for #111.
+
+---
+Sat Sep 26 07:39:57 UTC 2020 - Sebastian Wagner 
+
+- Update to version 3.9.0:
+ - MockHTTP uses `http-parser` as parser
+   Fix for second sendall used for delivering request's body.
+- Update to version 3.8.9:
+ - Small refactor for HTTPretty plugin
+   Now the import line can be written as from mocket.plugins.httpretty import 
httpretty, httprettified.
+- Update to version 3.8.8:
+ - Small fix applied to `setup.py`
+
+---

Old:

  mocket-3.8.7.tar.gz

New:

  mocket-3.9.1.tar.gz



Other differences:
--
++ python-mocket.spec ++
--- /var/tmp/diff_new_pack.1r90CA/_old  2020-10-29 09:48:33.980180725 +0100
+++ /var/tmp/diff_new_pack.1r90CA/_new  2020-10-29 09:48:33.984180729 +0100
@@ -26,7 +26,7 @@
 %bcond_with test
 %endif
 Name:   python-mocket%{psuffix}
-Version:3.8.7
+Version:3.9.1
 Release:0
 Summary:Python socket mock framework
 License:BSD-3-Clause
@@ -36,6 +36,7 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-decorator
+Requires:   python-http-parser >= 0.9.0
 Requires:   python-python-magic
 Requires:   python-six
 Requires:   python-urllib3
@@ -50,6 +51,7 @@
 BuildRequires:  %{python_module cryptography}
 BuildRequires:  %{python_module decorator}
 BuildRequires:  %{python_module gevent}
+BuildRequires:  %{python_module http-parser >= 0.9.0}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pook}
 BuildRequires:  %{python_module pyOpenSSL}

++ mocket-3.8.7.tar.gz -> mocket-3.9.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.8.7/PKG-INFO new/mocket-3.9.1/PKG-INFO
--- old/mocket-3.8.7/PKG-INFO   2020-07-27 19:01:18.508651700 +0200
+++ new/mocket-3.9.1/PKG-INFO   2020-10-09 20:32:55.048277000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mocket
-Version: 3.8.7
+Version: 3.9.1
 Summary: Socket Mock Framework - for all kinds of socket animals, web-clients 
included - with gevent/asyncio/SSL support
 Home-page: https://github.com/mindflayer/python-mocket
 Author: Giorgio Salluzzo
@@ -28,6 +28,9 @@
 -
 for all kinds of socket *animals*, web-clients included - with 
gevent/asyncio/SSL support
 
+...and then MicroPython's *urequest* (*mocket >= 3.9.1*)
+
+
 Versioning
 ==
 Starting from *3.7.0*, Mocket major version will follow the same 
numbering pattern as Python's and therefore indicate the most recent Python 
version that is supported.
@@ -82,8 +85,8 @@
 
 When opening an **Issue**, please add few lines of code as failing 
test, or -better- open its relative **Pull request** adding this test to our 
test suite.
 
-Quick example of its HTTP mock
-==
+Example of how to mock an HTTP[S] call
+==
 Let's create a new virtualenv with all we need::
 
 $ virtualenv example
@@ -148,6 +151,30 @@
 
 $ py.test example.py
 
+Example of how to record real socket traffic
+
+
+You probably know what *VCRpy* is capable of, that's the `mocket`'s 
way of achieving it:
+
+.. code-block:: python
+
+@mocketize(truesocket_recording_dir=tempfile.mkdtemp())
+def test_truesendall_with_recording_https():
+url = 'https://httpbin.org/ip'
+
+requests.get(url, headers={"Accept": "application/json"})
+resp = requests.get(url, headers={"Accept": 
"application/json"})
+assert resp.status_code == 200
+
+dump_filename = 

commit python-mocket for openSUSE:Factory

2020-08-12 Thread root
Hello community,

here is the log from the commit of package python-mocket for openSUSE:Factory 
checked in at 2020-08-12 10:30:57

Comparing /work/SRC/openSUSE:Factory/python-mocket (Old)
 and  /work/SRC/openSUSE:Factory/.python-mocket.new.3399 (New)


Package is "python-mocket"

Wed Aug 12 10:30:57 2020 rev:5 rq:825737 version:3.8.7

Changes:

--- /work/SRC/openSUSE:Factory/python-mocket/python-mocket.changes  
2020-08-10 14:59:40.512053615 +0200
+++ /work/SRC/openSUSE:Factory/.python-mocket.new.3399/python-mocket.changes
2020-08-12 10:36:44.508298543 +0200
@@ -1,0 +2,12 @@
+Tue Aug 11 07:17:16 UTC 2020 - Benjamin Greiner 
+
+- Update to version 3.8.7
+  * This version ships the change to support the libmagic wrapper
+distributed with file's command.
+
+--- 
+Tue Aug 11 07:08:04 UTC 2020 - Tomáš Chvátal 
+
+- Switch to multibuild as we create cycle with python-pook otherwise
+
+---

Old:

  mocket-3.8.6.tar.gz

New:

  _multibuild
  mocket-3.8.7.tar.gz



Other differences:
--
++ python-mocket.spec ++
--- /var/tmp/diff_new_pack.fSbZpf/_old  2020-08-12 10:36:45.964299266 +0200
+++ /var/tmp/diff_new_pack.fSbZpf/_new  2020-08-12 10:36:45.968299268 +0200
@@ -17,12 +17,19 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name:   python-mocket
-Version:3.8.6
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name:   python-mocket%{psuffix}
+Version:3.8.7
 Release:0
 Summary:Python socket mock framework
 License:BSD-3-Clause
-Group:  Development/Languages/Python
 URL:https://github.com/mindflayer/python-mocket
 Source0:
https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
@@ -38,7 +45,7 @@
 Suggests:   python-requests
 Suggests:   python-xxhash
 BuildArch:  noarch
-# SECTION test requirements
+%if %{with test}
 BuildRequires:  %{python_module PySocks}
 BuildRequires:  %{python_module cryptography}
 BuildRequires:  %{python_module decorator}
@@ -57,7 +64,7 @@
 BuildRequires:  ca-certificates-mozilla
 BuildRequires:  python3-aiohttp
 BuildRequires:  python3-async_timeout
-# /SECTION
+%endif
 %python_subpackages
 
 %description
@@ -66,35 +73,37 @@
 
 %prep
 %setup -q -n mocket-%{version}
-rm -f setup.cfg pytest.ini tox.ini
-sed -i '/pipenv/d' setup.py
+sed -i '/cov/ d' setup.cfg
+sed -i '/pipenv/ d' setup.py
 sed -i 's/==/>=/' requirements.txt
-touch conftest.py
 
 %build
+%if !%{with test}
 export LANG=en_US.UTF-8
 %python_build
+%endif
 
 %install
+%if !%{with test}
 export LANG=en_US.UTF-8
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
 %check
+%if %{with test}
 export LANG=en_US.UTF-8
-export PYTHONPATH=${PWD}
 export SKIP_TRUE_HTTP=1
-%{python_expand  #
-if [ $python = python2 ]; then
-  $python -m pytest tests/main mocket -vv -k 'not RedisTestCase'
-else
-  $python -m pytest tests/main mocket tests/tests35/ -vv -k 'not RedisTestCase'
-fi
-}
+%define pytest_ignore_python2 --ignore tests/tests35 --ignore tests/tests38
+%pytest -k 'not RedisTestCase' %{?pytest_ignore%{$python_version}}
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/mocket
+%{python_sitelib}/mocket-%{version}-py*.egg-info
+%endif
 
 %changelog

++ _multibuild ++

  test

++ mocket-3.8.6.tar.gz -> mocket-3.8.7.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mocket-3.8.6/PKG-INFO new/mocket-3.8.7/PKG-INFO
--- old/mocket-3.8.6/PKG-INFO   2020-06-18 20:32:40.840286000 +0200
+++ new/mocket-3.8.7/PKG-INFO   2020-07-27 19:01:18.508651700 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: mocket
-Version: 3.8.6
+Version: 3.8.7
 Summary: Socket Mock Framework - for all kinds of socket animals, web-clients 
included - with gevent/asyncio/SSL support
 Home-page: https://github.com/mindflayer/python-mocket
 Author: Giorgio Salluzzo
@@ -34,7 +34,12 @@
 
 Support it
 ==
-*Star* the project on GitHub, Buy Me a Coffee or, even better, 
contribute with patches or documentation.
+*Star* the project on GitHub, *Buy Me a Coffee* clicking the button 
below or, even better, contribute with patches or documentation.
+
+Thanks to `@felixonmars`_ Mocket is available in the `Arch Linux 
repository`_.
+
+

commit python-mocket for openSUSE:Factory

2020-08-10 Thread root
Hello community,

here is the log from the commit of package python-mocket for openSUSE:Factory 
checked in at 2020-08-10 14:59:06

Comparing /work/SRC/openSUSE:Factory/python-mocket (Old)
 and  /work/SRC/openSUSE:Factory/.python-mocket.new.3399 (New)


Package is "python-mocket"

Mon Aug 10 14:59:06 2020 rev:4 rq:824997 version:3.8.6

Changes:

--- /work/SRC/openSUSE:Factory/python-mocket/python-mocket.changes  
2020-07-24 12:09:47.617828898 +0200
+++ /work/SRC/openSUSE:Factory/.python-mocket.new.3399/python-mocket.changes
2020-08-10 14:59:40.512053615 +0200
@@ -1,0 +2,5 @@
+Sat Aug  8 13:00:29 UTC 2020 - Sebastian Wagner 
+
+- Change requirements version specifier from == to >=.
+
+---



Other differences:
--
++ python-mocket.spec ++
--- /var/tmp/diff_new_pack.kaPWco/_old  2020-08-10 14:59:42.548054690 +0200
+++ /var/tmp/diff_new_pack.kaPWco/_new  2020-08-10 14:59:42.552054693 +0200
@@ -68,6 +68,7 @@
 %setup -q -n mocket-%{version}
 rm -f setup.cfg pytest.ini tox.ini
 sed -i '/pipenv/d' setup.py
+sed -i 's/==/>=/' requirements.txt
 touch conftest.py
 
 %build




commit python-mocket for openSUSE:Factory

2020-07-24 Thread root
Hello community,

here is the log from the commit of package python-mocket for openSUSE:Factory 
checked in at 2020-07-24 12:09:33

Comparing /work/SRC/openSUSE:Factory/python-mocket (Old)
 and  /work/SRC/openSUSE:Factory/.python-mocket.new.3592 (New)


Package is "python-mocket"

Fri Jul 24 12:09:33 2020 rev:3 rq:822514 version:3.8.6

Changes:

--- /work/SRC/openSUSE:Factory/python-mocket/python-mocket.changes  
2020-04-01 19:20:03.603577594 +0200
+++ /work/SRC/openSUSE:Factory/.python-mocket.new.3592/python-mocket.changes
2020-07-24 12:09:47.617828898 +0200
@@ -1,0 +2,7 @@
+Thu Jul 23 18:54:20 UTC 2020 - Sebastian Wagner 
+
+- Update to version 3.8.6:
+ - No upstream changelog available
+- Use source tarball from pypi instead of GitHub.
+
+---

Old:

  mocket-3.8.4.tar.gz

New:

  mocket-3.8.6.tar.gz



Other differences:
--
++ python-mocket.spec ++
--- /var/tmp/diff_new_pack.u6rT6H/_old  2020-07-24 12:09:48.945830233 +0200
+++ /var/tmp/diff_new_pack.u6rT6H/_new  2020-07-24 12:09:48.949830238 +0200
@@ -18,13 +18,13 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-mocket
-Version:3.8.4
+Version:3.8.6
 Release:0
 Summary:Python socket mock framework
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 URL:https://github.com/mindflayer/python-mocket
-Source: 
https://github.com/mindflayer/python-mocket/archive/%{version}.tar.gz#/mocket-%{version}.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -44,6 +44,7 @@
 BuildRequires:  %{python_module decorator}
 BuildRequires:  %{python_module gevent}
 BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module pook}
 BuildRequires:  %{python_module pyOpenSSL}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module python-magic}
@@ -64,10 +65,10 @@
 included, with gevent/asyncio/SSL support.
 
 %prep
-%setup -q -n python-mocket-%{version}
+%setup -q -n mocket-%{version}
 rm -f setup.cfg pytest.ini tox.ini
+sed -i '/pipenv/d' setup.py
 touch conftest.py
-rm tests/tests27/test_pook.py
 
 %build
 export LANG=en_US.UTF-8
@@ -84,9 +85,9 @@
 export SKIP_TRUE_HTTP=1
 %{python_expand  #
 if [ $python = python2 ]; then
-  $python -m pytest tests/main mocket tests/tests27/ -vv -k 'not RedisTestCase'
+  $python -m pytest tests/main mocket -vv -k 'not RedisTestCase'
 else
-  $python -m pytest tests/main mocket tests/tests27/ tests/tests35/ -vv -k 
'not RedisTestCase'
+  $python -m pytest tests/main mocket tests/tests35/ -vv -k 'not RedisTestCase'
 fi
 }
 

++ mocket-3.8.4.tar.gz -> mocket-3.8.6.tar.gz ++
 1971 lines of diff (skipped)




commit python-mocket for openSUSE:Factory

2020-04-01 Thread root
Hello community,

here is the log from the commit of package python-mocket for openSUSE:Factory 
checked in at 2020-04-01 19:19:48

Comparing /work/SRC/openSUSE:Factory/python-mocket (Old)
 and  /work/SRC/openSUSE:Factory/.python-mocket.new.3248 (New)


Package is "python-mocket"

Wed Apr  1 19:19:48 2020 rev:2 rq:790553 version:3.8.4

Changes:

--- /work/SRC/openSUSE:Factory/python-mocket/python-mocket.changes  
2019-09-23 12:36:09.389622408 +0200
+++ /work/SRC/openSUSE:Factory/.python-mocket.new.3248/python-mocket.changes
2020-04-01 19:20:03.603577594 +0200
@@ -1,0 +2,10 @@
+Wed Apr  1 07:38:18 UTC 2020 - pgaj...@suse.com
+
+- version update to 3.8.4
+  * Adding missing `load_verify_locations` method
+  * Removing `hexdump` dependency
+  * Fix for removing DeprecationWarning (#105)
+  * Py3.8 classifier
+  * Fix for Redis module
+
+---

Old:

  mocket-3.7.3.tar.gz

New:

  mocket-3.8.4.tar.gz



Other differences:
--
++ python-mocket.spec ++
--- /var/tmp/diff_new_pack.3cvGaP/_old  2020-04-01 19:20:04.291577904 +0200
+++ /var/tmp/diff_new_pack.3cvGaP/_new  2020-04-01 19:20:04.295577906 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-mocket
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # 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-mocket
-Version:3.7.3
+Version:3.8.4
 Release:0
 Summary:Python socket mock framework
 License:BSD-3-Clause
@@ -29,7 +29,6 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-decorator
-Requires:   python-hexdump
 Requires:   python-python-magic
 Requires:   python-six
 Requires:   python-urllib3
@@ -44,7 +43,6 @@
 BuildRequires:  %{python_module cryptography}
 BuildRequires:  %{python_module decorator}
 BuildRequires:  %{python_module gevent}
-BuildRequires:  %{python_module hexdump}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pyOpenSSL}
 BuildRequires:  %{python_module pytest}
@@ -78,9 +76,7 @@
 %install
 export LANG=en_US.UTF-8
 %python_install
-%{python_expand rm -r %{buildroot}%{$python_sitelib}/tests
-%fdupes %{buildroot}%{$python_sitelib}
-}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 export LANG=en_US.UTF-8

++ mocket-3.7.3.tar.gz -> mocket-3.8.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mocket-3.7.3/.travis.yml 
new/python-mocket-3.8.4/.travis.yml
--- old/python-mocket-3.7.3/.travis.yml 2019-09-18 09:15:32.0 +0200
+++ new/python-mocket-3.8.4/.travis.yml 2020-02-24 12:32:41.0 +0100
@@ -8,7 +8,7 @@
   - "3.5"
   - "3.6"
   - "3.7"
-  - "3.8-dev"
+  - "3.8"
   - "pypy"
   - "pypy3.5-6.0"
 install:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mocket-3.7.3/MANIFEST.in 
new/python-mocket-3.8.4/MANIFEST.in
--- old/python-mocket-3.7.3/MANIFEST.in 2019-09-18 09:15:32.0 +0200
+++ new/python-mocket-3.8.4/MANIFEST.in 2020-02-24 12:32:41.0 +0100
@@ -1 +1,5 @@
-include README.rst LICENSE *.txt
\ No newline at end of file
+include README.rst LICENSE *.txt
+recursive-include tests *.json
+recursive-include tests *.png
+recursive-include tests *.py
+recursive-include tests *.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mocket-3.7.3/Makefile 
new/python-mocket-3.8.4/Makefile
--- old/python-mocket-3.7.3/Makefile2019-09-18 09:15:32.0 +0200
+++ new/python-mocket-3.8.4/Makefile2020-02-24 12:32:41.0 +0100
@@ -14,7 +14,7 @@
 
 lint-python:
@echo "Linting Python files"
-   flake8 --ignore=E501,E731 --exclude=.git,compat.py mocket
+   flake8 --ignore=E501,E731,W503 --exclude=.git,compat.py mocket
@echo ""
 
 develop: install-test-requirements install-dev-requirements
@@ -31,7 +31,7 @@
export SKIP_TRUE_REDIS=1; export SKIP_TRUE_HTTP=1; make test
 
 publish:
-   python setup.py sdist bdist_wheel
+   python setup.py sdist
pip install -U twine
twine upload dist/mocket-$(shell python -c 'import mocket; 
print(mocket.__version__)')*.*
pip install -U anaconda-client
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mocket-3.7.3/mocket/__init__.py 
new/python-mocket-3.8.4/mocket/__init__.py
---