debian/0000755000000000000000000000000012247600600007163 5ustar debian/python-mockldap-doc.doc-base0000644000000000000000000000036412247334250014446 0ustar Document: python-mockldap-doc Title: Python mockldap Documentation Author: Peter Sagerson Section: Programming/Python Format: HTML Index: /usr/share/doc/python-mockldap-doc/html/index.html Files: /usr/share/doc/python-mockldap-doc/html/*.html debian/patches/0000755000000000000000000000000012247556176010634 5ustar debian/patches/series0000644000000000000000000000005112247334250012030 0ustar docs-use_local_intersphinx_mapping.patch debian/patches/docs-use_local_intersphinx_mapping.patch0000644000000000000000000000336412247334250020710 0ustar Description: use local objects.inv where possible Upstream uses intersphinx mappings that fetch the objects.inv for python and python-mock by HTTP from a remote host. Using the local objects.inv from python and python-mock enables the package to build without network connection. Author: Michael Fladischer Last-Update: 2013-12-03 Forwarded: not-needed --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -32,11 +32,23 @@ 'sphinx.ext.viewcode', ] -intersphinx_mapping = { - 'python': ('http://docs.python.org/2/', 'http://docs.python.org/2/objects.inv'), - 'ldap': ('http://python-ldap.org/doc/html/', None), - 'mock': ('http://www.voidspace.org.uk/python/mock/', None), -} +def check_object_path(key, url, path): + if os.path.isfile(path): + return {key: (url, path)} + return {} + +intersphinx_mapping = {} +intersphinx_mapping.update(check_object_path('python', + 'http://docs.python.org/', + '/usr/share/doc/python' + + '.'.join([str(x) for x in sys.version_info[0:2]]) + + '/html/objects.inv')) +intersphinx_mapping.update(check_object_path('ldap', + 'http://python-ldap.org/doc/html/', + '')) +intersphinx_mapping.update(check_object_path('mock', + 'http://www.voidspace.org.uk/python/mock/', + '/usr/share/doc/python-mock-doc/html/objects.inv')) # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] debian/control0000644000000000000000000000575112247334250010603 0ustar Source: mockldap Section: python Priority: extra Maintainer: Debian Python Modules Team Uploaders: Michael Fladischer Build-Depends: debhelper (>= 9), python-all, python-doc, python-funcparserlib, python-ldap, python-mock, python-mock-doc, python-setuptools, python-sphinx (>= 1.0.7+dfsg), python-unittest2 Standards-Version: 3.9.5 X-Python-Version: >= 2.5 Homepage: http://bitbucket.org/psagers/mockldap/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/mockldap/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/mockldap/trunk/ Package: python-mockldap Architecture: all Depends: ${misc:Depends}, ${python:Depends} Suggests: python-mockldap-doc Description: simple mock implementation of python-ldap This project provides a mock replacement for python-ldap. It’s useful for any project that would like to write unit tests against LDAP code without relying on a running LDAP server. . The goal of mockldap is to provide a mock instance of LDAPObject in response to any call to ldap.initialize. In the general case, you would register return values for all LDAPObject calls that you expect the code under test to make. Your assertions would then verify that the tested code behaved correctly given this set of return values from the LDAP APIs. . As a convenience, the mock LDAPObject isn’t just a dumb mock object. The typical way to use mockldap is to provide some static directory content and then let LDAPObject generate real return values. This will only work for simple LDAP operations–this obviously isn’t a complete Python LDAP server implementation–but those simple operations tend to cover a lot of cases. Package: python-mockldap-doc Section: doc Architecture: all Depends: ${misc:Depends}, ${sphinxdoc:Depends} Description: simple mock implementation of python-ldap (Documentation) This project provides a mock replacement for python-ldap. It’s useful for any project that would like to write unit tests against LDAP code without relying on a running LDAP server. . The goal of mockldap is to provide a mock instance of LDAPObject in response to any call to ldap.initialize. In the general case, you would register return values for all LDAPObject calls that you expect the code under test to make. Your assertions would then verify that the tested code behaved correctly given this set of return values from the LDAP APIs. . As a convenience, the mock LDAPObject isn’t just a dumb mock object. The typical way to use mockldap is to provide some static directory content and then let LDAPObject generate real return values. This will only work for simple LDAP operations–this obviously isn’t a complete Python LDAP server implementation–but those simple operations tend to cover a lot of cases. . This package contains the documentation. debian/changelog0000644000000000000000000000024612247556162011054 0ustar mockldap (0.1.4-1) unstable; urgency=low * Initial release (Closes: #730530) -- Michael Fladischer Tue, 03 Dec 2013 11:54:20 +0100 debian/python-mockldap.docs0000644000000000000000000000000712247334250013150 0ustar README debian/watch0000644000000000000000000000013112247334250010214 0ustar version=3 https://pypi.python.org/packages/source/m/mockldap/mockldap-([\d\.]+)\.tar\.gz debian/source/0000755000000000000000000000000012247556176010505 5ustar debian/source/format0000644000000000000000000000001412247334250011676 0ustar 3.0 (quilt) debian/python-mockldap.install0000644000000000000000000000000512247334250013664 0ustar /usr debian/rules0000755000000000000000000000107312247334250010251 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with python2,sphinxdoc .PHONY: override_dh_auto_build override_dh_auto_build: PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs/source docs/.build/html dh_auto_build .PHONY: override_dh_auto_test override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -e; \ for python in $(shell pyversions -r); do \ $$python setup.py test ; \ done endif .PHONY: override_dh_auto_clean override_dh_auto_clean: dh_auto_clean rm -rf docs/.build debian/python-mockldap-doc.docs0000644000000000000000000000002112247334250013707 0ustar docs/.build/html debian/compat0000644000000000000000000000000212247334250010366 0ustar 9 debian/copyright0000644000000000000000000000323112247334250011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: mockldap Upstream-Contact: Peter Sagerson Source: http://bitbucket.org/psagers/mockldap/ Files: * Copyright: 2013, Peter Sagerson License: BSD-2-clause Files: debian/* Copyright: 2013, Michael Fladischer License: BSD-2-clause License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/python-mockldap-doc.links0000644000000000000000000000012612247334250014105 0ustar usr/share/doc/python-mockldap-doc/html/_sources usr/share/doc/python-mockldap-doc/rst debian/clean0000644000000000000000000000010112247334250010165 0ustar src/mockldap.egg-info/PKG-INFO src/mockldap.egg-info/SOURCES.txt