Changeset 336


Ignore:
Timestamp:
12/30/08 13:18:53 (6 years ago)
Author:
xi
Message:

Final touches before the release.

Location:
pyyaml/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • pyyaml/trunk/CHANGES

    r326 r336  
    11 
    22For a complete Subversion changelog, see 'http://pyyaml.org/log/pyyaml'. 
     3 
     4 
     53.08 (2008-12-31) 
     6----------------- 
     7 
     8* Python 3 support (Thank to Erick Tryzelaar). 
     9* Use Cython instead of Pyrex to build LibYAML bindings. 
     10* Refactored support for unicode and byte input/output streams. 
    311 
    412 
  • pyyaml/trunk/README

    r326 r336  
    2222'http://pyyaml.org/wiki/PyYAML'. 
    2323 
    24 Documentation (rough and incomplete though): 
     24For PyYAML tutorial and reference, see: 
    2525'http://pyyaml.org/wiki/PyYAMLDocumentation'. 
    2626 
     
    3333PyYAML is written by Kirill Simonov <xi@resolvent.net>.  It is released 
    3434under the MIT license. See the file LICENSE for more details. 
     35 
  • pyyaml/trunk/announcement.msg

    r326 r336  
    11From: Kirill Simonov <xi@gamma.dn.ua> 
    2 To: python-list@python.org, python-announce@python.org, yaml-core@lists.sourceforge.net 
    3 Subject: [ANN] PyYAML-3.07: YAML parser and emitter for Python 
     2To: python-list@python.org, python-announce@python.org, yaml-core@lists.sourceforge.net, python-porting@python.org 
     3Subject: [ANN] PyYAML-3.08: Now with Python 3 support 
    44 
    55======================== 
    6  Announcing PyYAML-3.07 
     6 Announcing PyYAML-3.08 
    77======================== 
    88 
     
    1111    http://pyyaml.org/wiki/PyYAML 
    1212 
     13This release features a complete support for Python 3.  For 
     14compatibility notes between Python 2 and Python 3 versions, 
     15please see 
     16 
     17    http://pyyaml.org/wiki/PyYAMLDocumentation#Python3support 
     18 
    1319 
    1420Changes 
    1521======= 
    1622 
    17 * The emitter learned to use an optional indentation indicator 
    18   for block scalar; thus scalars with leading whitespaces 
    19   could now be represented in a literal or folded style. 
    20 * The test suite is now included in the source distribution. 
    21   To run the tests, type 'python setup.py test'. 
    22 * Refactored the test suite: dropped unittest in favor of 
    23   a custom test appliance. 
    24 * Fixed the path resolver in the LibYAML-based dumper. 
    25 * Forced an explicit document end indicator when there is 
    26   a possibility of parsing ambiguity. 
    27 * More setup.py improvements: the package should be usable 
    28   when any combination of setuptools, Pyrex and LibYAML 
    29   is installed. 
    30 * Windows binary packages are built against LibYAML-0.1.2. 
    31 * Other minor fixes and improvements (Thank to Ingy dot Net 
    32   and Andrey Somov). 
     23* Python 3 support (Thank to Erick Tryzelaar). 
     24* Use Cython instead of Pyrex to build LibYAML bindings.  Note 
     25  that the source package is distributed with a pre-generated 
     26  '_yaml.c' file so you don't need Cython installed to build 
     27  LibYAML bindings. 
     28* Refactored support for unicode and byte input/output streams. 
    3329 
    3430 
     
    3935PyYAML documentation: http://pyyaml.org/wiki/PyYAMLDocumentation 
    4036 
    41 TAR.GZ package: http://pyyaml.org/download/pyyaml/PyYAML-3.07.tar.gz 
    42 ZIP package: http://pyyaml.org/download/pyyaml/PyYAML-3.07.zip 
    43 Windows installer: 
    44     http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.3.exe 
    45     http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.4.exe 
    46     http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.5.exe 
    47     http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.6.exe 
     37TAR.GZ package: http://pyyaml.org/download/pyyaml/PyYAML-3.08.tar.gz 
     38ZIP package: http://pyyaml.org/download/pyyaml/PyYAML-3.08.zip 
     39Windows installers: 
     40    http://pyyaml.org/download/pyyaml/PyYAML-3.08.win32-py2.3.exe 
     41    http://pyyaml.org/download/pyyaml/PyYAML-3.08.win32-py2.4.exe 
     42    http://pyyaml.org/download/pyyaml/PyYAML-3.08.win32-py2.5.exe 
     43    http://pyyaml.org/download/pyyaml/PyYAML-3.08.win32-py2.6.exe 
     44    http://pyyaml.org/download/pyyaml/PyYAML-3.08.win32-py3.0.exe 
    4845 
    4946PyYAML SVN repository: http://svn.pyyaml.org/pyyaml 
  • pyyaml/trunk/lib/yaml/__init__.py

    r333 r336  
    99from dumper import * 
    1010 
    11 __version__ = '3.07' 
     11__version__ = '3.08' 
    1212 
    1313try: 
  • pyyaml/trunk/lib3/yaml/__init__.py

    r331 r336  
    105105        canonical=None, indent=None, width=None, 
    106106        allow_unicode=None, line_break=None, 
    107         encoding='utf-8', explicit_start=None, explicit_end=None, 
     107        encoding=None, explicit_start=None, explicit_end=None, 
    108108        version=None, tags=None): 
    109109    """ 
     
    113113    getvalue = None 
    114114    if stream is None: 
    115         stream = io.StringIO() 
     115        if encoding is None: 
     116            stream = io.StringIO() 
     117        else: 
     118            stream = io.BytesIO() 
    116119        getvalue = stream.getvalue 
    117120    dumper = Dumper(stream, canonical=canonical, indent=indent, width=width, 
     
    137140        canonical=None, indent=None, width=None, 
    138141        allow_unicode=None, line_break=None, 
    139         encoding='utf-8', explicit_start=None, explicit_end=None, 
     142        encoding=None, explicit_start=None, explicit_end=None, 
    140143        version=None, tags=None): 
    141144    """ 
     
    145148    getvalue = None 
    146149    if stream is None: 
    147         stream = io.StringIO() 
     150        if encoding is None: 
     151            stream = io.StringIO() 
     152        else: 
     153            stream = io.BytesIO() 
    148154        getvalue = stream.getvalue 
    149155    dumper = Dumper(stream, default_style=default_style, 
  • pyyaml/trunk/setup.py

    r331 r336  
    11 
    22NAME = 'PyYAML' 
    3 VERSION = '3.07' 
     3VERSION = '3.08' 
    44DESCRIPTION = "YAML parser and emitter for Python" 
    55LONG_DESCRIPTION = """\ 
     
    8282    except ImportError: 
    8383        try: 
     84            # Pyrex cannot build _yaml.c at the moment, 
     85            # but it may get fixed eventually. 
    8486            from Pyrex.Distutils import Extension as _Extension 
    8587            from Pyrex.Distutils import build_ext as _build_ext 
  • pyyaml/trunk/tests/lib3/test_input_output.py

    r334 r336  
    5757            data2 = stream.getvalue() 
    5858            data3 = yaml.dump(value, encoding=encoding, allow_unicode=allow_unicode) 
     59            if encoding is not None: 
     60                assert isinstance(data3, bytes) 
     61                data3 = data3.decode(encoding) 
    5962            stream = io.BytesIO() 
    6063            if encoding is None: 
Note: See TracChangeset for help on using the changeset viewer.