[Python-modules-commits] [pysvn] 01/11: Import pysvn_1.9.5.orig.tar.gz
Josué Ortega
josue at moszumanska.debian.org
Mon Jan 29 00:35:49 UTC 2018
This is an automated email from the git hooks/post-receive script.
josue pushed a commit to branch master
in repository pysvn.
commit 5ca41ef4cd78e7ea3c071ab810ed7205dd538783
Author: Josue Ortega <josue at debian.org>
Date: Sun Jan 28 17:19:40 2018 -0600
Import pysvn_1.9.5.orig.tar.gz
---
Builder/version.info | 2 +-
Docs/pysvn_prog_ref.html | 12 +-
Examples/Client/svn_cmd.py | 15 +-
Import/pycxx-6.2.8/CXX/Python2/Exception.hxx | 259 -------
Import/pycxx-6.2.8/CXX/Python3/Exception.hxx | 260 -------
Import/pycxx-6.2.8/SourceForge/index.html | 188 -----
Import/pycxx-6.2.8/build-all.cmd | 52 --
Import/{pycxx-6.2.8 => pycxx-7.0.3}/COPYRIGHT | 0
Import/{pycxx-6.2.8 => pycxx-7.0.3}/CXX/Config.hxx | 6 +
.../Config.hxx => pycxx-7.0.3/CXX/CxxDebug.hxx} | 6 +-
.../{pycxx-6.2.8 => pycxx-7.0.3}/CXX/Exception.hxx | 0
.../CXX/Extensions.hxx | 0
.../CXX/IndirectPythonInterface.hxx | 0
.../{pycxx-6.2.8 => pycxx-7.0.3}/CXX/Objects.hxx | 0
.../CXX/Python2/Config.hxx | 0
.../CXX/Python2/CxxDebug.hxx | 0
Import/pycxx-7.0.3/CXX/Python2/Exception.hxx | 166 +++++
.../CXX/Python2/ExtensionModule.hxx | 6 +-
.../CXX/Python2/ExtensionOldType.hxx | 8 +-
.../CXX/Python2/ExtensionType.hxx | 47 +-
.../CXX/Python2/ExtensionTypeBase.hxx | 10 +-
.../CXX/Python2/Extensions.hxx | 2 +-
.../CXX/Python2/IndirectPythonInterface.hxx | 49 +-
.../CXX/Python2/Objects.hxx | 485 ++++++++-----
.../CXX/Python2/PythonType.hxx | 104 ++-
.../CXX/Python2/cxx_standard_exceptions.hxx | 46 ++
.../CXX/Python3/Config.hxx | 0
.../CXX/Python3/CxxDebug.hxx | 0
Import/pycxx-7.0.3/CXX/Python3/Exception.hxx | 166 +++++
.../CXX/Python3/ExtensionModule.hxx | 6 +-
.../CXX/Python3/ExtensionOldType.hxx | 8 +-
.../CXX/Python3/ExtensionType.hxx | 47 +-
.../CXX/Python3/ExtensionTypeBase.hxx | 11 +-
.../CXX/Python3/Extensions.hxx | 2 +-
.../CXX/Python3/IndirectPythonInterface.hxx | 42 +-
.../CXX/Python3/Objects.hxx | 215 +++---
.../CXX/Python3/PythonType.hxx | 92 ++-
.../CXX/Python3/cxx_standard_exceptions.hxx | 68 ++
.../{pycxx-6.2.8 => pycxx-7.0.3}/CXX/Version.hxx | 6 +-
.../{pycxx-6.2.8 => pycxx-7.0.3}/CXX/WrapPython.h | 0
.../Demo/Python2/example.cxx | 63 +-
.../Demo/Python2/example.def | 0
.../Demo/Python2/pycxx_iter.cxx | 0
.../Demo/Python2/pycxx_iter.hxx | 0
.../Demo/Python2/python.cxx | 0
.../Demo/Python2/range.cxx | 11 +-
.../Demo/Python2/range.hxx | 8 +-
.../Demo/Python2/rangetest.cxx | 0
.../Demo/Python2/setup.py | 56 +-
.../Demo/Python2/simple.cxx | 47 +-
.../Demo/Python2/test_example.py | 0
.../Demo/Python2/test_pycxx_iter.py | 0
.../Demo/Python2/test_simple.py | 13 +-
.../Demo/Python3/example.cxx | 55 +-
.../Demo/Python3/example.def | 0
.../Demo/Python3/pycxx_iter.cxx | 2 +-
.../Demo/Python3/pycxx_iter.hxx | 2 +-
.../Demo/Python3/python.cxx | 0
.../Demo/Python3/range.cxx | 22 +-
.../Demo/Python3/range.hxx | 12 +-
.../Demo/Python3/rangetest.cxx | 0
.../Demo/Python3/setup.py | 58 +-
.../Demo/Python3/simple.cxx | 77 ++-
.../Demo/Python3/simple2.cxx | 0
.../Demo/Python3/test_assert.hxx | 26 +-
.../Demo/Python3/test_example.py | 0
.../Demo/Python3/test_pycxx_iter.py | 0
.../Demo/Python3/test_simple.py | 58 +-
.../Demo/Python3/test_simple2.py | 0
.../Doc/Python2/PyCXX.html | 4 +-
.../Doc/Python2/style.css | 0
.../Doc/Python3/PyCXX.html | 163 ++---
.../Doc/Python3/make_contents.py | 12 +-
.../Doc/Python3/style.css | 0
.../{pycxx-6.2.8 => pycxx-7.0.3}/Lib/__init__.py | 0
Import/pycxx-7.0.3/PyCXX-Release-Notes.txt | 3 +
Import/{pycxx-6.2.8 => pycxx-7.0.3}/README.html | 83 ++-
Import/pycxx-7.0.3/README.txt | 3 +
.../RegressionTests/mem-leak.py | 0
Import/pycxx-7.0.3/SourceForge/PyCXX-Python2.html | 1 +
Import/pycxx-7.0.3/SourceForge/PyCXX-Python3.html | 1 +
Import/pycxx-7.0.3/SourceForge/README.html | 1 +
.../SourceForge/deploy.sh | 0
Import/pycxx-7.0.3/SourceForge/index.html | 59 ++
Import/pycxx-7.0.3/SourceForge/style.css | 1 +
.../Src/IndirectPythonInterface.cxx | 127 +---
Import/pycxx-7.0.3/Src/Python2/cxx_exceptions.cxx | 72 ++
.../Src/Python2/cxx_extensions.cxx | 764 +++++++++++++--------
.../Src/Python2/cxxextensions.c | 0
.../Src/Python2/cxxsupport.cxx | 0
Import/pycxx-7.0.3/Src/Python3/cxx_exceptions.cxx | 72 ++
.../Src/Python3/cxx_extensions.cxx | 615 ++++++++++-------
.../Src/Python3/cxxextensions.c | 0
.../Src/Python3/cxxsupport.cxx | 20 +-
Import/pycxx-7.0.3/Src/cxx_exceptions.cxx | 7 +
.../Src/cxx_extensions.cxx | 0
.../Src/cxxextensions.c | 0
.../Src/cxxsupport.cxx | 0
Import/pycxx-7.0.3/build-all.cmd | 67 ++
Import/{pycxx-6.2.8 => pycxx-7.0.3}/build-all.sh | 1 -
.../how_to_release_pycxx.txt | 7 +-
.../{pycxx-6.2.8 => pycxx-7.0.3}/make_src_kit.py | 2 +-
Import/{pycxx-6.2.8 => pycxx-7.0.3}/run_tests.cmd | 0
Import/{pycxx-6.2.8 => pycxx-7.0.3}/setup.py | 0
.../{pycxx-6.2.8 => pycxx-7.0.3}/setup_makefile.py | 26 +-
Import/{pycxx-6.2.8 => pycxx-7.0.3}/tag_pycxx.py | 32 +-
Kit/MacOSX/make_pkg.py | 18 +-
Source/build.cmd | 2 +
Source/pysvn_client_cmd_diff.cpp | 4 +-
Source/pysvn_client_cmd_prop.cpp | 3 +-
Source/setup_configure.py | 2 +
Tests/test-09.cmd | 191 +++---
Tests/test-09.sh | 16 +-
Tests/test-09.unix.known_good-py2-svn1.8.log | 120 ++--
Tests/test-09.unix.known_good-py2-svn1.9.log | 128 ++--
Tests/test-09.unix.known_good-py3-svn1.8.log | 122 ++--
Tests/test-09.unix.known_good-py3-svn1.9.log | 128 ++--
Tests/test-09.win32.known_good-py2-svn1.8.log | 82 ++-
Tests/test-09.win32.known_good-py2-svn1.9.log | 87 ++-
Tests/test-09.win32.known_good-py3-svn1.8.log | 82 ++-
Tests/test-09.win32.known_good-py3-svn1.9.log | 83 ++-
121 files changed, 3623 insertions(+), 2484 deletions(-)
diff --git a/Builder/version.info b/Builder/version.info
index b6d4ac7..f38f31f 100644
--- a/Builder/version.info
+++ b/Builder/version.info
@@ -1,4 +1,4 @@
MAJOR=1
MINOR=9
-PATCH=4
+PATCH=5
BUILD=0
diff --git a/Docs/pysvn_prog_ref.html b/Docs/pysvn_prog_ref.html
index a5c43f7..6b3c3fd 100644
--- a/Docs/pysvn_prog_ref.html
+++ b/Docs/pysvn_prog_ref.html
@@ -926,10 +926,10 @@ pysvn.Revision( opt_revision_kind.working ).
working copy (WC) path or URL:
</p>
<ul>
-<li>WC -&rt; WC: copy and schedule for addition (with history)</li>
-<li>WC -&rt; URL: immediately commit a copy of WC to URL</li>
-<li>URL -&rt; WC: check out URL into WC, schedule for addition</li>
-<li>URL -&rt; URL: complete server-side copy; used to branch and tag</li>
+<li>WC -> WC: copy and schedule for addition (with history)</li>
+<li>WC -> URL: immediately commit a copy of WC to URL</li>
+<li>URL -> WC: check out URL into WC, schedule for addition</li>
+<li>URL -> URL: complete server-side copy; used to branch and tag</li>
</ul>
<p>If the destination is a URL the <a href="#pysvn_client_callback_get_log_message">client_get_log_message</a>
callback must be implemented to return a log message.
@@ -1504,7 +1504,7 @@ entries_list = \
list( url_or_path,
peg_revision=pysvn.Revision( opt_revision_kind.unspecified ) )
revision=pysvn.Revision( opt_revision_kind.head ),
- recurse=True,
+ recurse=False,
dirent_fields=pysvn.SVN_DIRENT_ALL,
fetch_locks=False<span class="svn_1005000">,
depth=depth</span> )
@@ -1521,7 +1521,7 @@ defaults to opt_revision_kind.head for URLs or
opt_revision_kind.working for WC targets.
</p>
<div class="svn_1005000">
-<p>The depth can be used as in place of recurse. depth is one of the pysvn.depth enums.
+<p>The depth can be used in place of recurse. depth is one of the pysvn.depth enums.
</p>
</div>
diff --git a/Examples/Client/svn_cmd.py b/Examples/Client/svn_cmd.py
index 5eff015..474c811 100644
--- a/Examples/Client/svn_cmd.py
+++ b/Examples/Client/svn_cmd.py
@@ -219,6 +219,7 @@ class SvnCommand:
self.notify_message_list = []
self.pysvn_testing = False
self.debug_enabled = False
+ self.next_log_message = None
def debug( self, msg, args=() ):
if self.debug_enabled:
@@ -309,10 +310,15 @@ class SvnCommand:
while save_password.lower() not in ['y','ye','yes','n', 'no','']:
sys.stdout.write( 'Save password? [y/n] ' )
save_password = sys.stdin.readline().strip()
-
+
return 1, username, password, save_password in ['y','ye','yes']
def getLogMessage( self ):
+ if self.next_log_message is not None:
+ message = self.next_log_message
+ self.next_log_message = None
+ return message
+
sys.stdout.write( 'Log message\n' )
sys.stdout.write( '--- -------\n' )
message = sys.stdin.read()
@@ -469,7 +475,7 @@ class SvnCommand:
positional_args.append( '.' )
if msg == '':
msg = self.getLogMessage()
-
+
commit_info = self.client.checkin( positional_args, msg, recurse=recurse )
rev = commit_info["revision"]
self.printNotifyMessages()
@@ -800,7 +806,6 @@ class SvnCommand:
path2, rev2 = self.parsePathWithRevision( positional_args[1] )
wcpath = positional_args[2]
-
self.client.merge( path1, revision1, path2, revision2, wcpath,
recurse=recurse, dry_run=dry_run, notice_ancestry=notice_ancestry )
@@ -952,6 +957,8 @@ class SvnCommand:
self.client.propdel_local( positional_args[0], positional_args[1] )
def cmd_propset_remote( self, args ):
+ self.next_log_message = args.getOptionalValue( '--message', None )
+
skip_checks = args.getBooleanOption( '--skip-checks', True )
revision = args.getOptionalRevision( '--revision', '0' )
positional_args = args.getPositionalArgs( 3, 3 )
@@ -963,6 +970,8 @@ class SvnCommand:
self.client.propset_remote( positional_args[0], positional_args[1], positional_args[2], skip_checks=skip_checks )
def cmd_propdel_remote( self, args ):
+ self.next_log_message = args.getOptionalValue( '--message', None )
+
revision = args.getOptionalRevision( '--revision', '0' )
positional_args = args.getPositionalArgs( 2, 2 )
diff --git a/Import/pycxx-6.2.8/CXX/Python2/Exception.hxx b/Import/pycxx-6.2.8/CXX/Python2/Exception.hxx
deleted file mode 100644
index 3acc0ae..0000000
--- a/Import/pycxx-6.2.8/CXX/Python2/Exception.hxx
+++ /dev/null
@@ -1,259 +0,0 @@
-//-----------------------------------------------------------------------------
-//
-// Copyright (c) 1998 - 2007, The Regents of the University of California
-// Produced at the Lawrence Livermore National Laboratory
-// All rights reserved.
-//
-// This file is part of PyCXX. For details,see http://cxx.sourceforge.net/. The
-// full copyright notice is contained in the file COPYRIGHT located at the root
-// of the PyCXX distribution.
-//
-// 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 disclaimer below.
-// - Redistributions in binary form must reproduce the above copyright notice,
-// this list of conditions and the disclaimer (as noted below) in the
-// documentation and/or materials provided with the distribution.
-// - Neither the name of the UC/LLNL nor the names of its contributors may be
-// used to endorse or promote products derived from this software without
-// specific prior written permission.
-//
-// 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 REGENTS OF THE UNIVERSITY OF
-// CALIFORNIA, THE U.S. DEPARTMENT OF ENERGY 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.
-//
-//-----------------------------------------------------------------------------
-
-#ifndef __CXX_Exception_h
-#define __CXX_Exception_h
-
-#include "CXX/WrapPython.h"
-#include "CXX/Version.hxx"
-#include "CXX/Config.hxx"
-#include "CXX/IndirectPythonInterface.hxx"
-
-#include <string>
-#include <iostream>
-
-// This mimics the Python structure, in order to minimize confusion
-namespace Py
-{
- class ExtensionExceptionType;
-
- class Object;
-
- class Exception
- {
- public:
- Exception( ExtensionExceptionType &exception, const std::string& reason );
- Exception( ExtensionExceptionType &exception, Object &reason );
-
- explicit Exception ()
- {}
-
- Exception (const std::string& reason)
- {
- PyErr_SetString (Py::_Exc_RuntimeError(), reason.c_str());
- }
-
- Exception (PyObject* exception, const std::string& reason)
- {
- PyErr_SetString (exception, reason.c_str());
- }
-
- Exception (PyObject* exception, Object &reason);
-
- void clear() // clear the error
- // technically but not philosophically const
- {
- PyErr_Clear();
- }
- };
-
-
- // Abstract
- class StandardError: public Exception
- {
- protected:
- explicit StandardError()
- {}
- };
-
- class LookupError: public StandardError
- {
- protected:
- explicit LookupError()
- {}
- };
-
- class ArithmeticError: public StandardError
- {
- protected:
- explicit ArithmeticError()
- {}
- };
-
- class EnvironmentError: public StandardError
- {
- protected:
- explicit EnvironmentError()
- {}
- };
-
- // Concrete
-
- class TypeError: public StandardError
- {
- public:
- TypeError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_TypeError(),reason.c_str());
- }
- };
-
- class IndexError: public LookupError
- {
- public:
- IndexError (const std::string& reason)
- : LookupError()
- {
- PyErr_SetString (Py::_Exc_IndexError(), reason.c_str());
- }
- };
-
- class AttributeError: public StandardError
- {
- public:
- AttributeError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_AttributeError(), reason.c_str());
- }
- };
-
- class NameError: public StandardError
- {
- public:
- NameError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_NameError(), reason.c_str());
- }
- };
-
- class RuntimeError: public StandardError
- {
- public:
- RuntimeError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_RuntimeError(), reason.c_str());
- }
- };
-
- class NotImplementedError: public StandardError
- {
- public:
- NotImplementedError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_NotImplementedError(), reason.c_str());
- }
- };
-
- class SystemError: public StandardError
- {
- public:
- SystemError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_SystemError(),reason.c_str());
- }
- };
-
- class KeyError: public LookupError
- {
- public:
- KeyError (const std::string& reason)
- : LookupError()
- {
- PyErr_SetString (Py::_Exc_KeyError(),reason.c_str());
- }
- };
-
-
- class ValueError: public StandardError
- {
- public:
- ValueError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_ValueError(), reason.c_str());
- }
- };
-
- class OverflowError: public ArithmeticError
- {
- public:
- OverflowError (const std::string& reason)
- : ArithmeticError()
- {
- PyErr_SetString (Py::_Exc_OverflowError(), reason.c_str());
- }
- };
-
- class ZeroDivisionError: public ArithmeticError
- {
- public:
- ZeroDivisionError (const std::string& reason)
- : ArithmeticError()
- {
- PyErr_SetString (Py::_Exc_ZeroDivisionError(), reason.c_str());
- }
- };
-
- class FloatingPointError: public ArithmeticError
- {
- public:
- FloatingPointError (const std::string& reason)
- : ArithmeticError()
- {
- PyErr_SetString (Py::_Exc_FloatingPointError(), reason.c_str());
- }
- };
-
- class MemoryError: public StandardError
- {
- public:
- MemoryError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_MemoryError(), reason.c_str());
- }
- };
-
- class SystemExit: public StandardError
- {
- public:
- SystemExit (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_SystemExit(),reason.c_str());
- }
- };
-
-}// Py
-
-#endif
diff --git a/Import/pycxx-6.2.8/CXX/Python3/Exception.hxx b/Import/pycxx-6.2.8/CXX/Python3/Exception.hxx
deleted file mode 100644
index 0bd052d..0000000
--- a/Import/pycxx-6.2.8/CXX/Python3/Exception.hxx
+++ /dev/null
@@ -1,260 +0,0 @@
-//-----------------------------------------------------------------------------
-//
-// Copyright (c) 1998 - 2007, The Regents of the University of California
-// Produced at the Lawrence Livermore National Laboratory
-// All rights reserved.
-//
-// This file is part of PyCXX. For details,see http://cxx.sourceforge.net/. The
-// full copyright notice is contained in the file COPYRIGHT located at the root
-// of the PyCXX distribution.
-//
-// 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 disclaimer below.
-// - Redistributions in binary form must reproduce the above copyright notice,
-// this list of conditions and the disclaimer (as noted below) in the
-// documentation and/or materials provided with the distribution.
-// - Neither the name of the UC/LLNL nor the names of its contributors may be
-// used to endorse or promote products derived from this software without
-// specific prior written permission.
-//
-// 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 REGENTS OF THE UNIVERSITY OF
-// CALIFORNIA, THE U.S. DEPARTMENT OF ENERGY 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.
-//
-//-----------------------------------------------------------------------------
-
-#ifndef __CXX_Exception_h
-#define __CXX_Exception_h
-
-#include "CXX/WrapPython.h"
-#include "CXX/Version.hxx"
-#include "CXX/Python3/Config.hxx"
-#include "CXX/Python3/CxxDebug.hxx"
-#include "CXX/Python3/IndirectPythonInterface.hxx"
-
-#include <string>
-#include <iostream>
-
-// This mimics the Python structure, in order to minimize confusion
-namespace Py
-{
- class ExtensionExceptionType;
-
- class Object;
-
- class Exception
- {
- public:
- Exception( ExtensionExceptionType &exception, const std::string &reason );
- Exception( ExtensionExceptionType &exception, Object &reason );
-
- explicit Exception ()
- {}
-
- Exception (const std::string &reason)
- {
- PyErr_SetString( Py::_Exc_RuntimeError(), reason.c_str() );
- }
-
- Exception( PyObject *exception, const std::string &reason )
- {
- PyErr_SetString( exception, reason.c_str() );
- }
-
- Exception( PyObject *exception, Object &reason );
-
- void clear() // clear the error
- // technically but not philosophically const
- {
- PyErr_Clear();
- }
- };
-
-
- // Abstract
- class StandardError: public Exception
- {
- protected:
- explicit StandardError()
- {}
- };
-
- class LookupError: public StandardError
- {
- protected:
- explicit LookupError()
- {}
- };
-
- class ArithmeticError: public StandardError
- {
- protected:
- explicit ArithmeticError()
- {}
- };
-
- class EnvironmentError: public StandardError
- {
- protected:
- explicit EnvironmentError()
- {}
- };
-
- // Concrete
-
- class TypeError: public StandardError
- {
- public:
- TypeError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString( Py::_Exc_TypeError(),reason.c_str() );
- }
- };
-
- class IndexError: public LookupError
- {
- public:
- IndexError (const std::string& reason)
- : LookupError()
- {
- PyErr_SetString( Py::_Exc_IndexError(), reason.c_str() );
- }
- };
-
- class AttributeError: public StandardError
- {
- public:
- AttributeError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString( Py::_Exc_AttributeError(), reason.c_str() );
- }
- };
-
- class NameError: public StandardError
- {
- public:
- NameError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString( Py::_Exc_NameError(), reason.c_str() );
- }
- };
-
- class RuntimeError: public StandardError
- {
- public:
- RuntimeError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString( Py::_Exc_RuntimeError(), reason.c_str() );
- }
- };
-
- class NotImplementedError: public StandardError
- {
- public:
- NotImplementedError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString (Py::_Exc_NotImplementedError(), reason.c_str());
- }
- };
-
- class SystemError: public StandardError
- {
- public:
- SystemError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString( Py::_Exc_SystemError(),reason.c_str() );
- }
- };
-
- class KeyError: public LookupError
- {
- public:
- KeyError (const std::string& reason)
- : LookupError()
- {
- PyErr_SetString( Py::_Exc_KeyError(),reason.c_str() );
- }
- };
-
-
- class ValueError: public StandardError
- {
- public:
- ValueError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString( Py::_Exc_ValueError(), reason.c_str() );
- }
- };
-
- class OverflowError: public ArithmeticError
- {
- public:
- OverflowError (const std::string& reason)
- : ArithmeticError()
- {
- PyErr_SetString( Py::_Exc_OverflowError(), reason.c_str() );
- }
- };
-
- class ZeroDivisionError: public ArithmeticError
- {
- public:
- ZeroDivisionError (const std::string& reason)
- : ArithmeticError()
- {
- PyErr_SetString( Py::_Exc_ZeroDivisionError(), reason.c_str() );
- }
- };
-
- class FloatingPointError: public ArithmeticError
- {
- public:
- FloatingPointError (const std::string& reason)
- : ArithmeticError()
- {
- PyErr_SetString( Py::_Exc_FloatingPointError(), reason.c_str() );
- }
- };
-
- class MemoryError: public StandardError
- {
- public:
- MemoryError (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString( Py::_Exc_MemoryError(), reason.c_str() );
- }
- };
-
- class SystemExit: public StandardError
- {
- public:
- SystemExit (const std::string& reason)
- : StandardError()
- {
- PyErr_SetString( Py::_Exc_SystemExit(),reason.c_str() );
- }
- };
-
-}// Py
-
-#endif
diff --git a/Import/pycxx-6.2.8/SourceForge/index.html b/Import/pycxx-6.2.8/SourceForge/index.html
deleted file mode 100644
index 88fb619..0000000
--- a/Import/pycxx-6.2.8/SourceForge/index.html
+++ /dev/null
@@ -1,188 +0,0 @@
-<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <title>PyCXX: Write Python Extensions in C++</title>
-</head>
-<body>
-
-<center><b>PyCXX: Write Python Extensions in C++</b>
-<p><b>Barry Scott, barry at barrys-emacs.org</b>
-</center>
-<p><b>The <a href="http://sourceforge.net/project/?group_id=3180">CXX
-Project Page</a> at <a href="http://sourceforge.net"><img SRC="http://sourceforge.net/sflogo.php?group_id=3180&type=1" alt="SourceForge Home" nosave height="31" width="88" align="abscenter"></a>
-gives you access to the releases, the Subversion repository, and more.</b>
-<p>
-
-<h1>PyCXX is designed to make it easier to extend Python with C++</h1>
-
-<p>
-CXX/Objects is a set of C++ facilities to make it easier
-to write Python extensions. The chief way in which PyCXX makes it easier
-to write Python extensions is that it greatly increases the probability
-that your program will not make a reference-counting error and will not
-have to continually check error returns from the Python C API. CXX/Objects
-integrates Python with C++ in these ways:
-<p>
-<ul>
-
-<li>
-C++ exception handling is relied on to detect errors
-and clean up. In a complicated function this is often a tremendous problem
-when writing in C. With PyCXX, we let the compiler keep track of what objects
-need to be dereferenced when an error occurs.</li>
-
-<li>
-
-The Standard Template Library (STL) and its many algorithms
-plug and play with Python containers such as lists and tuples.
-</li>
-
-<li>
-The optional CXX/Extensions facility allows you to replace the clumsy C tables with objects
-and method calls that define your modules and extension objects.
-</li>
-</ul>
-
-<hr />
-
-<p>PyCXX documentation is split into <a href="PyCXX-Python3.html">Python 3</a>
-and <a href="PyCXX-Python2.html">Python 2</a> versions. The Python 3 documentation is the most accurate.</p>
-
-<p>Latest PyCXX <a href="README.html">README</a> file.</p>
-
-<hr />
-
-<h3>Version 6.2.8 (10-May-2016)</h3>
-<p>Fix crash when a member function is called via callMemberFunction() and that function raises an expection.</p>
-<p>Found in comment on StackOverFlow. Fix memory size allocated for new objects. It used the wrong size calculation, but was big enough to avoid problems.</p>
-
-<h3>Version 6.2.7 (28-Apr-2016)</h3>
-<p>Fix missing ptr__Unicode_Type.</p>
-<p>Fixes from learn0more at gmail.com make python2 also remember the m_module and add accessor functions.</p>
-<p>Fix for indirection issues from Vivian De Smedt.</p>
-<p>Update to work with latest Microsoft Visual C++ for python 2.7. All test run in Win32 and Win64.</p>
-<p>PyCXX.html documention has been updated, especially with 2TO3 information.</p>
-<p>Use delete[] for objects allocated with new[].</p>
-
-<h3>Version 6.2.6 (4-Jan-2015)</h3>
-<p>Fix various compiler warning.</p>
-<p>Fix incorrect use of NULL.</p>
-<p>Fix conversion from (const char *) to (char *) is deprecated warning.</p>
-
-<h3>Version 6.2.5 (18-Aug-2013)</h3>
-<p>Fix build issue with GCC 4.2.1 on FreeBSD and Mac OS X (stop python defining isspace as a macro).</p>
-<p>Remove support for python 3.1 (API's are unstable).</p>
-<p>Add Python 3.3 support.</p>
-<p>Patch frm Michael Droettboom to fix compilation issues.</p>
-<p>Patch frm Michael Droettboom to add buffer interface for python3.</p>
-
-<h3>Version 6.2.4 (3-Mar-2012)</h3>
-<p>Fix memory leak in string encode and decode functions</p>
-<p>Fix indirect python loading on windows - Bool_type was missing</p>
-
-<h2>Version 6.2.3 (11-mar-2011)</h2>
-<p>Fix memory leak in string encode and decode functions</p>
-<p>Fix indirect python loading on windows - Bool_type was missing</p>
-
-<hr />
-<h2>Version 6.2.2 (26-Dec-2010)</h2>
-<p>Fix problem compiling against Python 3.1.3</p>
-
-<hr />
-<h2>Version 6.2.1 (15-Aug-2010)</h2>
-<p>Add support for NotImplementedError</p>
-<p>Remove String() and Byte() c'tors that are not allowed by ISO C++ and where ambigous</p>
-
-<hr />
-<h2>Version 6.2.0 (9-May-2010)</h2>
-
-<p>Fix problems with new style classes.</p>
-<p>Replace all example makefile and project files with setup_makefile.py script.</p>
-<p>Add APIs to make calling python functions easier. See TupleN(), callOnSelf(), self()</p>
-
-<hr />
-<h2>Version 6.1.1 (26-Sep-2009)</h2>
-<p>Supports Python 3 starting at Python 3.1 and Python 2</p>
-<p>Code clean up to fix compiler warnings reported by gcc 4.2.1 on Mac OS X when building for Python 3.</p>
-
-<hr />
-<h2>Version 6.1.0 (19-Jul-2009)</h2>
-<p>Supports Python 3 and Python 2</p>
-<p>This release replaces 5.5.0 and 6.0.0</p>
-<p>Speed of method calling has been improved.</p>
-
-<hr />
-<h2>Version 6.0.0 (31-Jan-2009)</h2>
-<p>Supports Python 3 only</p>
-
-<hr />
-<h2>Version 5.5.0 (31-Jan-2009)</h2>
-<p>Supports Python 2 only</p>
-
-<hr />
-<h2>Version 5.4.2 (11-Oct-2008)</h2>
-<p>Add support for rich compare.</p>
-<p>Add the simplest code for a module with a single function and a single class (Demo/simple.cxx)</p>
-<p>Fix long standing bugs with Dict::iterator</p>
-
-<hr />
-<h2>Version 5.4.1 (28-Jun-2008)</h2>
-<p>Add Boolean type from Vivian De Smedt.</p>
-<p>Patch from Dmitry Kostjuchenko to which improves PyCXX method's calling
-speed/performance by almost 2 times.</p>
-<p>More PY_LONG_LONG support.</p>
-<p>No longer allow creation of Py::Int from PY_LONG_LONG as long long cannot fit. Use Py::Long.</p>
-<p>Py:Dict can now be constructed from a Py::Object.</p>
-
-<hr />
-<h2>Version 5.4.0 (20-Jan-2007)</h2>
-<p>PyCXX has a new <a href="https://svn.sourceforge.net/svnroot/cxx/trunk/CXX/COPYRIGHT">BSD license</a>
-to make it open source compatible.
-Many thanks to Sebastian Sauer for bring this matter to our attention and
-to Paul Dubios for working with the LLNL people to get the license changed.</p>
-<p>Fix compilation issues with GCC 4.1 found on FC6.</p>
-<p>Fix compilation issues caused by problems in IRIX header files.</p>
-<p>Add PY_LONG_LONG support from patch contributed by Dmitry Kostjuchenko.</p>
-
-
-<h2>Version 5.3.6 (21-Oct-2006)</h2>
-<p>Add support for Python 2.5</p>
-<p>Add support for PY_LONG_LONG to Py::Int()</p>
-
-<h2>Version 5.3.5 (2-Oct-2005)</h2>
-<p>More changes to keep GCC 4.0 happy - no warning should be report</p>
-
-<h2>Version 5.3.4 (29-Aug-2005)</h2>
-<p>Add interator support - thanks to Helmut Jarausch - see pycxx_iter demo
-<p>Allow an extension to be part of a python package
-<p>Allow creation of Exception hierachies
-<p>Fix problem compiling with GCC 2.9X
-<p>Fix uninitialise memory problem
-<P>Work around compile problems with the example and GCC 4.0.
-
-<h2>Version 5.3.3 and 5.3.2</h2>
-<p>No details recorded</p>
-
-<h2> PyCXX V5.3.1 </h2>
-<p>Added fixes to support problems reported against GCC4 builds and .NET 2003 builds
-<p>Download PyCXX 5.3.1 from <a href="http://prdownloads.sourceforge.net/cxx/pycxx_5_3_1.tar.gz?download">SourceForge</a>.</p>
-
-<h2> PyCXX V5.3.0 </h2>
-<p>I've added Unicode string support to PyCXX and fixed a number of reported bugs.</p>
-<p>See the <a href="README.html">README</a> and <a href="PyCXX.html">documentation</a> for details.</p>
-
-<p>Download PyCXX 5.3.0 from <a href="http://prdownloads.sourceforge.net/cxx/pycxx_5_3_0.tar.gz?download">SourceForge</a>.</p>
-<p>-- BArry Scott, October 2004</p>
-<hr />
-<h2> PyCXX V5.2.0 </h2>
-<p>After a long gap I have updated PyCXX (the name I prefer for CXX) to
-fix a number of bugs and add a small number of features.</p>
-
-<p>I'm using the development of <a href="http://pysvn.tigris.org/">pysvn</a>
-to drive the need for fixes and features in PyCXX.</p>
-
-<p>-- Barry Scott, November 2003</p>
-
-</body>
-</html>
diff --git a/Import/pycxx-6.2.8/build-all.cmd b/Import/pycxx-6.2.8/build-all.cmd
deleted file mode 100644
index 93917b7..0000000
--- a/Import/pycxx-6.2.8/build-all.cmd
+++ /dev/null
@@ -1,52 +0,0 @@
-setlocal
-call "%LOCALAPPDATA%\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" x86
-if exist c:\python27.win32\python.exe (
- c:\python27.win32\python setup_makefile.py win32 win32.mak
- nmake -f win32.mak clean all 2>&1 | c:\unxutils\tee tmp-win32-python27-build.log
- nmake -f win32.mak test 2>&1 | c:\unxutils\tee tmp-win32-python27-test.log
-)
-endlocal
-
-setlocal
-call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
-if exist c:\python33.win32\python.exe (
- c:\python33.win32\python setup_makefile.py win32 win32.mak
- nmake -f win32.mak clean all 2>&1 | c:\unxutils\tee tmp-win32-python33-build.log
- nmake -f win32.mak test 2>&1 | c:\unxutils\tee tmp-win32-python33-test.log
-)
-
-if exist c:\python34.win32\python.exe (
- c:\python34.win32\python setup_makefile.py win32 win32.mak
- nmake -f win32.mak clean all 2>&1 | c:\unxutils\tee tmp-win32-python34-build.log
- nmake -f win32.mak test 2>&1 | c:\unxutils\tee tmp-win32-python34-test.log
-)
-endlocal
-
-setlocal
-call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
-if exist c:\python35.win32\python.exe (
- c:\python35.win32\python setup_makefile.py win32 win32.mak
- nmake -f win32.mak clean all 2>&1 | c:\unxutils\tee tmp-win32-python35-build.log
... 10308 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pysvn.git
More information about the Python-modules-commits
mailing list