* delete or text files to hacking/ directory.

* split license file into authors and license file, minor fixes.
* minor unicode fixes

--HG--
branch : trunk
This commit is contained in:
holger krekel 2009-09-05 16:09:44 +02:00
parent bde56a8246
commit 7ab98c1b25
10 changed files with 42 additions and 84 deletions

10
AUTHORS Normal file
View File

@ -0,0 +1,10 @@
Holger Krekel, holger at merlinux eu
Guido Wesdorp, johnny at johnnydebris net
Samuele Pedroni, pedronis at openend se
Carl Friedrich Bolz, cfbolz at gmx de
Benjamin Peterson, benjamin@python.org
Armin Rigo, arigo at tunes org
Maciek Fijalkowski, fijal at genesilico.pl
Brian Dorsey, briandorsey at gmail com
merlinux GmbH, Germany, office at merlinux eu

View File

@ -1 +0,0 @@
py/LICENSE

20
LICENSE Normal file
View File

@ -0,0 +1,20 @@
All files in the 'py' directory are licensed under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,3 +1,5 @@
Execnet / Path combination
I think the nice code in this directory I think the nice code in this directory
should be refactored so that you can use should be refactored so that you can use
it like this: it like this:

View File

@ -1,31 +0,0 @@
Goal: "remote" tracebacks have file/lineno references to local source code
Current Problem:
tracebacks have file/lineno references that point to one
large file (consisting of all source code of all modules that
we sent as a bootstrap). Makes debugging execnet harder.
solution variant 0: minimal change to source code
at master side: send name/source pairs
at slave side: put each module into own file, re-using basename of source file
solution variant 1: aimed at simplicity
pack and send zip of py lib containing py.__.execnet, py.__.thread, etc
put this into some file-location at the other side, add it to sys.path
(or experiment with zipfile-imports over RAM and sys.meta_hooks/path_hooks)
solution variant 2: aimed at minimizing bandwidth usage
initiating side receiving side
-------------------------------------------------------------
loop:
send [dottedname1: hash1]
serve_hash_requests
if not lookup(hash1):
send(dottedname1: hash1)
content = receive(hash1)
else:
content = get(hash1)

View File

@ -1,49 +0,0 @@
py lib Copyright holders, 2003-2009
=======================================
The files in the 'py' directory are copyrighted by one or more
of the following people and organizations:
Holger Krekel, holger at merlinux eu
Guido Wesdorp, johnny at johnnydebris net
Samuele Pedroni, pedronis at openend se
Carl Friedrich Bolz, cfbolz at gmx de
Armin Rigo, arigo at tunes org
Maciek Fijalkowski, fijal at genesilico.pl
Brian Dorsey, briandorsey at gmail com
merlinux GmbH, Germany, office at merlinux eu
Contributors include::
Chris Lamb
Harald Armin Massa
Ralf Schmitt
Martijn Faassen
Ian Bicking
Jan Balster
Grig Gheorghiu
Bob Ippolito
Christian Tismer
Except when otherwise stated (look for LICENSE files or information at
the beginning of each file) all files in the 'py' directory are
licensed under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -16,6 +16,7 @@ For questions please check out http://pylib.org/contact.html
.. _`py.path`: http://pylib.org/path.html .. _`py.path`: http://pylib.org/path.html
.. _`py.code`: http://pylib.org/code.html .. _`py.code`: http://pylib.org/code.html
(c) Holger Krekel and others, 2009
""" """
from py.initpkg import initpkg from py.initpkg import initpkg
trunk = "trunk" trunk = "trunk"

View File

@ -53,7 +53,7 @@ def process(txtpath, encoding='latin1'):
stylesheet = None stylesheet = None
content = unicode(txtpath.read(), encoding) content = unicode(txtpath.read(), encoding)
doc = convert_rest_html(content, txtpath, stylesheet=stylesheet, encoding=encoding) doc = convert_rest_html(content, txtpath, stylesheet=stylesheet, encoding=encoding)
htmlpath.write(doc) htmlpath.open('wb').write(doc)
#log("wrote %r" % htmlpath) #log("wrote %r" % htmlpath)
#if txtpath.check(svnwc=1, versioned=1): #if txtpath.check(svnwc=1, versioned=1):
# info = txtpath.info() # info = txtpath.info()

View File

@ -14,7 +14,7 @@
import py import py
from py.__.execnet.gateway_base import Channel from py.__.execnet.gateway_base import Channel
import sys, os import sys, os, struct
#debug = open("log-mypickle-%d" % os.getpid(), 'w') #debug = open("log-mypickle-%d" % os.getpid(), 'w')
if sys.version_info >= (3,0): if sys.version_info >= (3,0):
@ -49,6 +49,12 @@ class MyPickler(Pickler):
self.write(self.put(key)) self.write(self.put(key))
self.memo[id(obj)] = key, obj self.memo[id(obj)] = key, obj
#if sys.version_info < (3,0):
# def save_string(self, obj, pack=struct.pack):
# obj = unicode(obj)
# self.save_unicode(obj, pack=pack)
# Pickler.dispatch[str] = save_string
class ImmutablePickler: class ImmutablePickler:
def __init__(self, uneven, protocol=0): def __init__(self, uneven, protocol=0):
""" ImmutablePicklers are instantiated in Pairs. """ ImmutablePicklers are instantiated in Pairs.