[Python-modules-commits] [python-mockupdb] 02/07: Import python-mockupdb_1.2.1.orig.tar.gz

Ondrej Novy onovy at debian.org
Tue Jan 16 13:34:27 UTC 2018


This is an automated email from the git hooks/post-receive script.

onovy pushed a commit to branch master
in repository python-mockupdb.

commit d6f07f2f2fdbefd39786177726b936c44e53d050
Author: Ondřej Nový <onovy at debian.org>
Date:   Tue Jan 16 13:38:35 2018 +0100

    Import python-mockupdb_1.2.1.orig.tar.gz
---
 .gitignore                             |  13 ---
 CHANGELOG.rst                          |  30 +++++
 Makefile                               |  70 ------------
 PKG-INFO                               |  98 +++++++++++++++++
 docs/_static/mask.jpg                  | Bin 56791 -> 0 bytes
 docs/_static/sidebar.js                | 193 ---------------------------------
 docs/installation.rst                  |  14 +--
 docs/pydoctheme/static/pydoctheme.css  | 178 ------------------------------
 docs/pydoctheme/theme.conf             |  23 ----
 mockupdb.egg-info/PKG-INFO             |  98 +++++++++++++++++
 mockupdb.egg-info/SOURCES.txt          |  45 ++++++++
 mockupdb.egg-info/dependency_links.txt |   1 +
 mockupdb.egg-info/not-zip-safe         |   1 +
 mockupdb.egg-info/top_level.txt        |   1 +
 mockupdb/__init__.py                   |  52 +++++----
 setup.cfg                              |   5 +
 setup.py                               |   2 +-
 tests/test_mockupdb.py                 |  54 +++++----
 tox.ini                                |  18 ---
 19 files changed, 338 insertions(+), 558 deletions(-)

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index f262100..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,13 +0,0 @@
-*~
-*#*
-.DS*
-*.class
-*.pyc
-*.pyd
-build/
-dist/
-.tox
-*.egg
-*.egg-info
-.eggs
-docs/_build
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index c8353dd..48b9f5e 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,6 +3,36 @@
 Changelog
 =========
 
+1.2.1 (2017-12-06)
+------------------
+
+Set minWireVersion to 0, not to 2. I had been wrong about MongoDB 3.6's wire
+version range: it's actually 0 to 6. MockupDB now reports the same wire version
+range as MongoDB 3.6 by default.
+
+1.2.0 (2017-09-22)
+------------------
+
+Update for MongoDB 3.6: report minWireVersion 2 and maxWireVersion 6 by default.
+
+1.1.3 (2017-04-23)
+------------------
+
+Avoid rare RuntimeError in close(), if a client thread shuts down a socket as
+MockupDB iterates its list of sockets.
+
+1.1.2 (2016-08-23)
+------------------
+
+Properly detect closed sockets so ``MockupDB.stop()`` doesn't take 10 seconds
+per connection. Thanks to Sean Purcell.
+
+1.1.1 (2016-08-01)
+------------------
+
+Don't use "client" as a keyword arg for ``Request``, it conflicts with the
+actual "client" field in drivers' new handshake protocol.
+
 1.1.0 (2016-02-11)
 ------------------
 
diff --git a/Makefile b/Makefile
deleted file mode 100644
index de135cb..0000000
--- a/Makefile
+++ /dev/null
@@ -1,70 +0,0 @@
-.PHONY: clean-pyc clean-build docs clean
-
-help:
-	@echo "clean - remove all build, test, coverage and Python artifacts"
-	@echo "clean-build - remove build artifacts"
-	@echo "clean-pyc - remove Python file artifacts"
-	@echo "clean-test - remove test and coverage artifacts"
-	@echo "lint - check style with flake8"
-	@echo "test - run tests quickly with the default Python"
-	@echo "test-all - run tests on every Python version with tox"
-	@echo "coverage - check code coverage quickly with the default Python"
-	@echo "docs - generate Sphinx HTML documentation, including API docs"
-	@echo "release - package and upload a release"
-	@echo "dist - package"
-	@echo "install - install the package to the active Python's site-packages"
-
-clean: clean-build clean-pyc clean-test
-
-clean-build:
-	rm -fr build/
-	rm -fr dist/
-	rm -fr .eggs/
-	find . -name '*.egg-info' -exec rm -fr {} +
-	find . -name '*.egg' -exec rm -f {} +
-
-clean-pyc:
-	find . -name '*.pyc' -exec rm -f {} +
-	find . -name '*.pyo' -exec rm -f {} +
-	find . -name '*~' -exec rm -f {} +
-	find . -name '__pycache__' -exec rm -fr {} +
-
-clean-test:
-	rm -fr .tox/
-	rm -f .coverage
-	rm -fr htmlcov/
-
-lint:
-	flake8 mockupdb tests
-
-test:
-	python setup.py test
-
-test-all:
-	tox
-
-coverage:
-	coverage run --source mockupdb setup.py test
-	coverage report -m
-	coverage html
-	open htmlcov/index.html
-
-docs:
-	rm -f docs/mockupdb.rst
-	rm -f docs/modules.rst
-	sphinx-apidoc -o docs/ mockupdb
-	$(MAKE) -C docs clean
-	$(MAKE) -C docs html
-	open docs/_build/html/index.html
-
-release: clean
-	python setup.py sdist upload
-	python setup.py bdist_wheel upload
-
-dist: clean
-	python setup.py sdist
-	python setup.py bdist_wheel
-	ls -l dist
-
-install: clean
-	python setup.py install
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..1384618
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,98 @@
+Metadata-Version: 1.1
+Name: mockupdb
+Version: 1.2.1
+Summary: MongoDB Wire Protocol server library
+Home-page: https://github.com/ajdavis/mongo-mockup-db
+Author: A. Jesse Jiryu Davis
+Author-email: jesse at mongodb.com
+License: Apache License, Version 2.0
+Description-Content-Type: UNKNOWN
+Description: ========
+        MockupDB
+        ========
+        
+        Mock server for testing MongoDB clients and creating MongoDB Wire Protocol
+        servers.
+        
+        * Documentation: http://mockupdb.readthedocs.org/
+        
+        
+        
+        
+        Changelog
+        =========
+        
+        1.2.1 (2017-12-06)
+        ------------------
+        
+        Set minWireVersion to 0, not to 2. I had been wrong about MongoDB 3.6's wire
+        version range: it's actually 0 to 6. MockupDB now reports the same wire version
+        range as MongoDB 3.6 by default.
+        
+        1.2.0 (2017-09-22)
+        ------------------
+        
+        Update for MongoDB 3.6: report minWireVersion 2 and maxWireVersion 6 by default.
+        
+        1.1.3 (2017-04-23)
+        ------------------
+        
+        Avoid rare RuntimeError in close(), if a client thread shuts down a socket as
+        MockupDB iterates its list of sockets.
+        
+        1.1.2 (2016-08-23)
+        ------------------
+        
+        Properly detect closed sockets so ``MockupDB.stop()`` doesn't take 10 seconds
+        per connection. Thanks to Sean Purcell.
+        
+        1.1.1 (2016-08-01)
+        ------------------
+        
+        Don't use "client" as a keyword arg for ``Request``, it conflicts with the
+        actual "client" field in drivers' new handshake protocol.
+        
+        1.1.0 (2016-02-11)
+        ------------------
+        
+        Add cursor_id property to OpGetMore, and ssl parameter to interactive_server.
+        
+        1.0.3 (2015-09-12)
+        ------------------
+        
+        ``MockupDB(auto_ismaster=True)`` had just responded ``{"ok": 1}``, but this
+        isn't enough to convince PyMongo 3 it's talking to a valid standalone,
+        so auto-respond ``{"ok": 1, "ismaster": True}``.
+        
+        1.0.2 (2015-09-11)
+        ------------------
+        
+        Restore Request.assert_matches method, used in pymongo-mockup-tests.
+        
+        1.0.1 (2015-09-11)
+        ------------------
+        
+        Allow co-installation with PyMongo.
+        
+        1.0.0 (2015-09-10)
+        ------------------
+        
+        First release.
+        
+        0.1.0 (2015-02-25)
+        ------------------
+        
+        Development begun.
+        
+Keywords: mongo,mongodb,wire protocol,mockupdb,mock
+Platform: UNKNOWN
+Classifier: Development Status :: 2 - Pre-Alpha
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Natural Language :: English
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
diff --git a/docs/_static/mask.jpg b/docs/_static/mask.jpg
deleted file mode 100644
index cf8362a..0000000
Binary files a/docs/_static/mask.jpg and /dev/null differ
diff --git a/docs/_static/sidebar.js b/docs/_static/sidebar.js
deleted file mode 100644
index e8d58f4..0000000
--- a/docs/_static/sidebar.js
+++ /dev/null
@@ -1,193 +0,0 @@
-/*
- * sidebar.js
- * ~~~~~~~~~~
- *
- * This script makes the Sphinx sidebar collapsible and implements intelligent
- * scrolling.
- *
- * .sphinxsidebar contains .sphinxsidebarwrapper.  This script adds in
- * .sphixsidebar, after .sphinxsidebarwrapper, the #sidebarbutton used to
- * collapse and expand the sidebar.
- *
- * When the sidebar is collapsed the .sphinxsidebarwrapper is hidden and the
- * width of the sidebar and the margin-left of the document are decreased.
- * When the sidebar is expanded the opposite happens.  This script saves a
- * per-browser/per-session cookie used to remember the position of the sidebar
- * among the pages.  Once the browser is closed the cookie is deleted and the
- * position reset to the default (expanded).
- *
- * :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
- * :license: BSD, see LICENSE for details.
- *
- */
-
-$(function() {
-  // global elements used by the functions.
-  // the 'sidebarbutton' element is defined as global after its
-  // creation, in the add_sidebar_button function
-  var jwindow = $(window);
-  var jdocument = $(document);
-  var bodywrapper = $('.bodywrapper');
-  var sidebar = $('.sphinxsidebar');
-  var sidebarwrapper = $('.sphinxsidebarwrapper');
-
-  // original margin-left of the bodywrapper and width of the sidebar
-  // with the sidebar expanded
-  var bw_margin_expanded = bodywrapper.css('margin-left');
-  var ssb_width_expanded = sidebar.width();
-
-  // margin-left of the bodywrapper and width of the sidebar
-  // with the sidebar collapsed
-  var bw_margin_collapsed = '.8em';
-  var ssb_width_collapsed = '.8em';
-
-  // colors used by the current theme
-  var dark_color = '#AAAAAA';
-  var light_color = '#CCCCCC';
-
-  function get_viewport_height() {
-    if (window.innerHeight)
-      return window.innerHeight;
-    else
-      return jwindow.height();
-  }
-
-  function sidebar_is_collapsed() {
-    return sidebarwrapper.is(':not(:visible)');
-  }
-
-  function toggle_sidebar() {
-    if (sidebar_is_collapsed())
-      expand_sidebar();
-    else
-      collapse_sidebar();
-    // adjust the scrolling of the sidebar
-    scroll_sidebar();
-  }
-
-  function collapse_sidebar() {
-    sidebarwrapper.hide();
-    sidebar.css('width', ssb_width_collapsed);
-    bodywrapper.css('margin-left', bw_margin_collapsed);
-    sidebarbutton.css({
-        'margin-left': '0',
-        'height': bodywrapper.height(),
-        'border-radius': '5px'
-    });
-    sidebarbutton.find('span').text('»');
-    sidebarbutton.attr('title', _('Expand sidebar'));
-    document.cookie = 'sidebar=collapsed';
-  }
-
-  function expand_sidebar() {
-    bodywrapper.css('margin-left', bw_margin_expanded);
-    sidebar.css('width', ssb_width_expanded);
-    sidebarwrapper.show();
-    sidebarbutton.css({
-        'margin-left': ssb_width_expanded-12,
-        'height': bodywrapper.height(),
-        'border-radius': '0 5px 5px 0'
-    });
-    sidebarbutton.find('span').text('«');
-    sidebarbutton.attr('title', _('Collapse sidebar'));
-    //sidebarwrapper.css({'padding-top':
-    //  Math.max(window.pageYOffset - sidebarwrapper.offset().top, 10)});
-    document.cookie = 'sidebar=expanded';
-  }
-
-  function add_sidebar_button() {
-    sidebarwrapper.css({
-        'float': 'left',
-        'margin-right': '0',
-        'width': ssb_width_expanded - 28
-    });
-    // create the button
-    sidebar.append(
-      '<div id="sidebarbutton"><span>«</span></div>'
-    );
-    var sidebarbutton = $('#sidebarbutton');
-    // find the height of the viewport to center the '<<' in the page
-    var viewport_height = get_viewport_height();
-    var sidebar_offset = sidebar.offset().top;
-    var sidebar_height = Math.max(bodywrapper.height(), sidebar.height());
-    sidebarbutton.find('span').css({
-        'display': 'block',
-        'position': 'fixed',
-        'top': Math.min(viewport_height/2, sidebar_height/2 + sidebar_offset) - 10
-    });
-
-    sidebarbutton.click(toggle_sidebar);
-    sidebarbutton.attr('title', _('Collapse sidebar'));
-    sidebarbutton.css({
-        'border-radius': '0 5px 5px 0',
-        'color': '#444444',
-        'background-color': '#CCCCCC',
-        'font-size': '1.2em',
-        'cursor': 'pointer',
-        'height': sidebar_height,
-        'padding-top': '1px',
-        'padding-left': '1px',
-        'margin-left': ssb_width_expanded - 12
-    });
-
-    sidebarbutton.hover(
-      function () {
-          $(this).css('background-color', dark_color);
-      },
-      function () {
-          $(this).css('background-color', light_color);
-      }
-    );
-  }
-
-  function set_position_from_cookie() {
-    if (!document.cookie)
-      return;
-    var items = document.cookie.split(';');
-    for(var k=0; k<items.length; k++) {
-      var key_val = items[k].split('=');
-      var key = key_val[0];
-      if (key == 'sidebar') {
-        var value = key_val[1];
-        if ((value == 'collapsed') && (!sidebar_is_collapsed()))
-          collapse_sidebar();
-        else if ((value == 'expanded') && (sidebar_is_collapsed()))
-          expand_sidebar();
-      }
-    }
-  }
-
-  add_sidebar_button();
-  var sidebarbutton = $('#sidebarbutton');
-  set_position_from_cookie();
-
-
-  /* intelligent scrolling */
-  function scroll_sidebar() {
-    var sidebar_height = sidebarwrapper.height();
-    var viewport_height = get_viewport_height();
-    var offset = sidebar.position()['top'];
-    var wintop = jwindow.scrollTop();
-    var winbot = wintop + viewport_height;
-    var curtop = sidebarwrapper.position()['top'];
-    var curbot = curtop + sidebar_height;
-    // does sidebar fit in window?
-    if (sidebar_height < viewport_height) {
-      // yes: easy case -- always keep at the top
-      sidebarwrapper.css('top', $u.min([$u.max([0, wintop - offset - 10]),
-                            jdocument.height() - sidebar_height - 200]));
-    }
-    else {
-      // no: only scroll if top/bottom edge of sidebar is at
-      // top/bottom edge of window
-      if (curtop > wintop && curbot > winbot) {
-        sidebarwrapper.css('top', $u.max([wintop - offset - 10, 0]));
-      }
-      else if (curtop < wintop && curbot < winbot) {
-        sidebarwrapper.css('top', $u.min([winbot - sidebar_height - offset - 20,
-                              jdocument.height() - sidebar_height - 200]));
-      }
-    }
-  }
-  jwindow.scroll(scroll_sidebar);
-});
diff --git a/docs/installation.rst b/docs/installation.rst
index d5dd9ca..1a37135 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -2,16 +2,6 @@
 Installation
 ============
 
-MockMongoDB requires PyMongo_. It uses PyMongo's ``bson`` package to encode
-and decode MongoDB Wire Protocol message bodies.
+Install MockupDB with pip:
 
-At the command line::
-
-    $ easy_install mongo-mockup-db
-
-Or, if you have virtualenvwrapper installed::
-
-    $ mkvirtualenv mongo-mockup-db
-    $ pip install mongo-mockup-db
-
-.. _PyMongo: https://pypi.python.org/pypi/pymongo/
+    $ python -m pip install mongo-mockup-db
diff --git a/docs/pydoctheme/static/pydoctheme.css b/docs/pydoctheme/static/pydoctheme.css
deleted file mode 100644
index 50835bb..0000000
--- a/docs/pydoctheme/static/pydoctheme.css
+++ /dev/null
@@ -1,178 +0,0 @@
- at import url("default.css");
-
-body {
-    background-color: white;
-    margin-left: 1em;
-    margin-right: 1em;
-}
-
-div.related {
-    margin-bottom: 1.2em;
-    padding: 0.5em 0;
-    border-top: 1px solid #ccc;
-    margin-top: 0.5em;
-}
-
-div.related a:hover {
-    color: #0095C4;
-}
-
-div.related:first-child {
-    border-top: 0;
-    border-bottom: 1px solid #ccc;
-}
-
-div.sphinxsidebar {
-    background-color: #eeeeee;
-    border-radius: 5px;
-    line-height: 130%;
-    font-size: smaller;
-}
-
-div.sphinxsidebar h3, div.sphinxsidebar h4 {
-    margin-top: 1.5em;
-}
-
-div.sphinxsidebarwrapper > h3:first-child {
-    margin-top: 0.2em;
-}
-
-div.sphinxsidebarwrapper > ul > li > ul > li {
-    margin-bottom: 0.4em;
-}
-
-div.sphinxsidebar a:hover {
-    color: #0095C4;
-}
-
-div.sphinxsidebar input {
-    font-family: 'Lucida Grande',Arial,sans-serif;
-    border: 1px solid #999999;
-    font-size: smaller;
-    border-radius: 3px;
-}
-
-div.sphinxsidebar input[type=text] {
-    max-width: 150px;
-}
-
-div.body {
-    padding: 0 0 0 1.2em;
-}
-
-div.body p {
-    line-height: 140%;
-}
-
-div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6 {
-    margin: 0;
-    border: 0;
-    padding: 0.3em 0;
-}
-
-div.body hr {
-    border: 0;
-    background-color: #ccc;
-    height: 1px;
-}
-
-div.body pre {
-    border-radius: 3px;
-    border: 1px solid #ac9;
-}
-
-div.body div.admonition, div.body div.impl-detail {
-    border-radius: 3px;
-}
-
-div.body div.impl-detail > p {
-    margin: 0;
-}
-
-div.body div.seealso {
-    border: 1px solid #dddd66;
-}
-
-div.body a {
-    color: #0072aa;
-}
-
-div.body a:visited {
-    color: #6363bb;
-}
-
-div.body a:hover {
-    color: #00B0E4;
-}
-
-tt, code, pre {
-    font-family: monospace, sans-serif;
-    font-size: 96.5%;
-}
-
-div.body tt, div.body code {
-    border-radius: 3px;
-}
-
-div.body tt.descname, div.body code.descname {
-    font-size: 120%;
-}
-
-div.body tt.xref, div.body a tt, div.body code.xref, div.body a code {
-    font-weight: normal;
-}
-
-.deprecated {
-    border-radius: 3px;
-}
-
-table.docutils {
-    border: 1px solid #ddd;
-    min-width: 20%;
-    border-radius: 3px;
-    margin-top: 10px;
-    margin-bottom: 10px;
-}
-
-table.docutils td, table.docutils th {
-    border: 1px solid #ddd !important;
-    border-radius: 3px;
-}
-
-table p, table li {
-    text-align: left !important;
-}
-
-table.docutils th {
-    background-color: #eee;
-    padding: 0.3em 0.5em;
-}
-
-table.docutils td {
-    background-color: white;
-    padding: 0.3em 0.5em;
-}
-
-table.footnote, table.footnote td {
-    border: 0 !important;
-}
-
-div.footer {
-    line-height: 150%;
-    margin-top: -2em;
-    text-align: right;
-    width: auto;
-    margin-right: 10px;
-}
-
-div.footer a:hover {
-    color: #0095C4;
-}
-
-.refcount {
-    color: #060;
-}
-
-.stableabi {
-    color: #229;
-}
diff --git a/docs/pydoctheme/theme.conf b/docs/pydoctheme/theme.conf
deleted file mode 100644
index 0c43881..0000000
--- a/docs/pydoctheme/theme.conf
+++ /dev/null
@@ -1,23 +0,0 @@
-[theme]
-inherit = default
-stylesheet = pydoctheme.css
-pygments_style = sphinx
-
-[options]
-bodyfont = 'Lucida Grande', Arial, sans-serif
-headfont = 'Lucida Grande', Arial, sans-serif
-footerbgcolor = white
-footertextcolor = #555555
-relbarbgcolor = white
-relbartextcolor = #666666
-relbarlinkcolor = #444444
-sidebarbgcolor = white
-sidebartextcolor = #444444
-sidebarlinkcolor = #444444
-bgcolor = white
-textcolor = #222222
-linkcolor = #0090c0
-visitedlinkcolor = #00608f
-headtextcolor = #1a1a1a
-headbgcolor = white
-headlinkcolor = #aaaaaa
diff --git a/mockupdb.egg-info/PKG-INFO b/mockupdb.egg-info/PKG-INFO
new file mode 100644
index 0000000..1384618
--- /dev/null
+++ b/mockupdb.egg-info/PKG-INFO
@@ -0,0 +1,98 @@
+Metadata-Version: 1.1
+Name: mockupdb
+Version: 1.2.1
+Summary: MongoDB Wire Protocol server library
+Home-page: https://github.com/ajdavis/mongo-mockup-db
+Author: A. Jesse Jiryu Davis
+Author-email: jesse at mongodb.com
+License: Apache License, Version 2.0
+Description-Content-Type: UNKNOWN
+Description: ========
+        MockupDB
+        ========
+        
+        Mock server for testing MongoDB clients and creating MongoDB Wire Protocol
+        servers.
+        
+        * Documentation: http://mockupdb.readthedocs.org/
+        
+        
+        
+        
+        Changelog
+        =========
+        
+        1.2.1 (2017-12-06)
+        ------------------
+        
+        Set minWireVersion to 0, not to 2. I had been wrong about MongoDB 3.6's wire
+        version range: it's actually 0 to 6. MockupDB now reports the same wire version
+        range as MongoDB 3.6 by default.
+        
+        1.2.0 (2017-09-22)
+        ------------------
+        
+        Update for MongoDB 3.6: report minWireVersion 2 and maxWireVersion 6 by default.
+        
+        1.1.3 (2017-04-23)
+        ------------------
+        
+        Avoid rare RuntimeError in close(), if a client thread shuts down a socket as
+        MockupDB iterates its list of sockets.
+        
+        1.1.2 (2016-08-23)
+        ------------------
+        
+        Properly detect closed sockets so ``MockupDB.stop()`` doesn't take 10 seconds
+        per connection. Thanks to Sean Purcell.
+        
+        1.1.1 (2016-08-01)
+        ------------------
+        
+        Don't use "client" as a keyword arg for ``Request``, it conflicts with the
+        actual "client" field in drivers' new handshake protocol.
+        
+        1.1.0 (2016-02-11)
+        ------------------
+        
+        Add cursor_id property to OpGetMore, and ssl parameter to interactive_server.
+        
+        1.0.3 (2015-09-12)
+        ------------------
+        
+        ``MockupDB(auto_ismaster=True)`` had just responded ``{"ok": 1}``, but this
+        isn't enough to convince PyMongo 3 it's talking to a valid standalone,
+        so auto-respond ``{"ok": 1, "ismaster": True}``.
+        
+        1.0.2 (2015-09-11)
+        ------------------
+        
+        Restore Request.assert_matches method, used in pymongo-mockup-tests.
+        
+        1.0.1 (2015-09-11)
+        ------------------
+        
+        Allow co-installation with PyMongo.
+        
+        1.0.0 (2015-09-10)
+        ------------------
+        
+        First release.
+        
+        0.1.0 (2015-02-25)
+        ------------------
+        
+        Development begun.
+        
+Keywords: mongo,mongodb,wire protocol,mockupdb,mock
+Platform: UNKNOWN
+Classifier: Development Status :: 2 - Pre-Alpha
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Natural Language :: English
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
diff --git a/mockupdb.egg-info/SOURCES.txt b/mockupdb.egg-info/SOURCES.txt
new file mode 100644
index 0000000..db41d24
--- /dev/null
+++ b/mockupdb.egg-info/SOURCES.txt
@@ -0,0 +1,45 @@
+AUTHORS.rst
+CHANGELOG.rst
+CONTRIBUTING.rst
+LICENSE
+MANIFEST.in
+README.rst
+setup.cfg
+setup.py
+docs/Makefile
+docs/authors.rst
+docs/changelog.rst
+docs/conf.py
+docs/contributing.rst
+docs/index.rst
+docs/installation.rst
+docs/make.bat
+docs/readme.rst
+docs/reference.rst
+docs/tutorial.rst
+mockupdb/__init__.py
+mockupdb/__main__.py
+mockupdb/server.pem
+mockupdb.egg-info/PKG-INFO
+mockupdb.egg-info/SOURCES.txt
+mockupdb.egg-info/dependency_links.txt
+mockupdb.egg-info/not-zip-safe
+mockupdb.egg-info/top_level.txt
+mockupdb/_bson/__init__.py
+mockupdb/_bson/binary.py
+mockupdb/_bson/code.py
+mockupdb/_bson/codec_options.py
+mockupdb/_bson/dbref.py
+mockupdb/_bson/errors.py
+mockupdb/_bson/int64.py
+mockupdb/_bson/json_util.py
+mockupdb/_bson/max_key.py
+mockupdb/_bson/min_key.py
+mockupdb/_bson/objectid.py
+mockupdb/_bson/py3compat.py
+mockupdb/_bson/regex.py
+mockupdb/_bson/son.py
+mockupdb/_bson/timestamp.py
+mockupdb/_bson/tz_util.py
+tests/__init__.py
+tests/test_mockupdb.py
\ No newline at end of file
diff --git a/mockupdb.egg-info/dependency_links.txt b/mockupdb.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/mockupdb.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/mockupdb.egg-info/not-zip-safe b/mockupdb.egg-info/not-zip-safe
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/mockupdb.egg-info/not-zip-safe
@@ -0,0 +1 @@
+
diff --git a/mockupdb.egg-info/top_level.txt b/mockupdb.egg-info/top_level.txt
new file mode 100644
index 0000000..97eff77
--- /dev/null
+++ b/mockupdb.egg-info/top_level.txt
@@ -0,0 +1 @@
+mockupdb
diff --git a/mockupdb/__init__.py b/mockupdb/__init__.py
index fa71867..b902890 100755
--- a/mockupdb/__init__.py
+++ b/mockupdb/__init__.py
@@ -36,7 +36,7 @@ from __future__ import print_function
 
 __author__ = 'A. Jesse Jiryu Davis'
 __email__ = 'jesse at mongodb.com'
-__version__ = '1.1'
+__version__ = '1.2.1'
 
 import collections
 import contextlib
@@ -343,9 +343,9 @@ class Request(object):
     def __init__(self, *args, **kwargs):
         self._flags = kwargs.pop('flags', None)
         self._namespace = kwargs.pop('namespace', None)
-        self._client = kwargs.pop('client', None)
+        self._client = kwargs.pop('_client', None)
         self._request_id = kwargs.pop('request_id', None)
-        self._server = kwargs.pop('server', None)
+        self._server = kwargs.pop('_server', None)
         self._verbose = self._server and self._server.verbose
         self._server_port = kwargs.pop('server_port', None)
         self._docs = make_docs(*args, **kwargs)
@@ -553,7 +553,8 @@ class OpQuery(Request):
             assert len(docs) == 1
             command_ns = namespace[:-len('.$cmd')]
             return Command(docs, namespace=command_ns, flags=flags,
-                           client=client, request_id=request_id, server=server)
+                           _client=client, request_id=request_id,
+                           _server=server)
         else:
             if len(docs) == 1:
                 fields = None
@@ -562,8 +563,8 @@ class OpQuery(Request):
                 fields = docs[1]
             return OpQuery(docs[0], fields=fields, namespace=namespace,
                            flags=flags, num_to_skip=num_to_skip,
-                           num_to_return=num_to_return, client=client,
-                           request_id=request_id, server=server)
+                           num_to_return=num_to_return, _client=client,
+                           request_id=request_id, _server=server)
 
     def __init__(self, *args, **kwargs):
         fields = kwargs.pop('fields', None)
@@ -677,9 +678,9 @@ class OpGetMore(Request):
         num_to_return, = _UNPACK_INT(msg[pos:pos + 4])
         pos += 4
         cursor_id, = _UNPACK_LONG(msg[pos:pos + 8])
-        return OpGetMore(namespace=namespace, flags=flags, client=client,
+        return OpGetMore(namespace=namespace, flags=flags, _client=client,
                          num_to_return=num_to_return, cursor_id=cursor_id,
-                         request_id=request_id, server=server)
+                         request_id=request_id, _server=server)
 
     def __init__(self, **kwargs):
         self._num_to_return = kwargs.pop('num_to_return', None)
@@ -713,8 +714,8 @@ class OpKillCursors(Request):
         for _ in range(num_of_cursor_ids):
             cursor_ids.append(_UNPACK_INT(msg[pos:pos+4])[0])
             pos += 4
-        return OpKillCursors(client=client, cursor_ids=cursor_ids,
-                             server=server)
+        return OpKillCursors(_client=client, cursor_ids=cursor_ids,
+                             _server=server)
 
     def __init__(self, **kwargs):
         self._cursor_ids = kwargs.pop('cursor_ids', None)
@@ -748,8 +749,8 @@ class OpInsert(_LegacyWrite):
         flags, = _UNPACK_INT(msg[:4])
         namespace, pos = _get_c_string(msg, 4)
         docs = _bson.decode_all(msg[pos:], CODEC_OPTIONS)
-        return cls(*docs, namespace=namespace, flags=flags, client=client,
-                   request_id=request_id, server=server)
+        return cls(*docs, namespace=namespace, flags=flags, _client=client,
+                   request_id=request_id, _server=server)
 
 
 class OpUpdate(_LegacyWrite):
@@ -767,9 +768,9 @@ class OpUpdate(_LegacyWrite):
         # First 4 bytes of OP_UPDATE are "reserved".
         namespace, pos = _get_c_string(msg, 4)
         flags, = _UNPACK_INT(msg[pos:pos + 4])
-        docs = _bson.decode_all(msg[pos+4:], CODEC_OPTIONS)
-        return cls(*docs, namespace=namespace, flags=flags, client=client,
-                   request_id=request_id, server=server)
+        docs = _bson.decode_all(msg[pos + 4:], CODEC_OPTIONS)
+        return cls(*docs, namespace=namespace, flags=flags, _client=client,
+                   request_id=request_id, _server=server)
 
 
 class OpDelete(_LegacyWrite):
@@ -787,9 +788,9 @@ class OpDelete(_LegacyWrite):
         # First 4 bytes of OP_DELETE are "reserved".
         namespace, pos = _get_c_string(msg, 4)
         flags, = _UNPACK_INT(msg[pos:pos + 4])
-        docs = _bson.decode_all(msg[pos+4:], CODEC_OPTIONS)
-        return cls(*docs, namespace=namespace, flags=flags, client=client,
-                   request_id=request_id, server=server)
+        docs = _bson.decode_all(msg[pos + 4:], CODEC_OPTIONS)
+        return cls(*docs, namespace=namespace, flags=flags, _client=client,
+                   request_id=request_id, _server=server)
 
 
 class OpReply(object):
@@ -1097,10 +1098,14 @@ class MockupDB(object):
       - `auto_ismaster`: pass ``True`` to autorespond ``{'ok': 1}`` to
         ismaster requests, or pass a dict or `OpReply`.
       - `ssl`: pass ``True`` to require SSL.
+      - `min_wire_version`: the minWireVersion to include in ismaster responses
+        if `auto_ismaster` is True, default 0.
+      - `max_wire_version`: the maxWireVersion to include in ismaster responses
+        if `auto_ismaster` is True, default 6.
     """
     def __init__(self, port=None, verbose=False,
                  request_timeout=10, auto_ismaster=None,
... 184 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-mockupdb.git



More information about the Python-modules-commits mailing list