Changeset 336
- Timestamp:
- 12/30/08 13:18:53 (4 years ago)
- Location:
- pyyaml/trunk
- Files:
-
- 7 edited
-
CHANGES (modified) (1 diff)
-
README (modified) (2 diffs)
-
announcement.msg (modified) (3 diffs)
-
lib/yaml/__init__.py (modified) (1 diff)
-
lib3/yaml/__init__.py (modified) (4 diffs)
-
setup.py (modified) (2 diffs)
-
tests/lib3/test_input_output.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pyyaml/trunk/CHANGES
r326 r336 1 1 2 2 For a complete Subversion changelog, see 'http://pyyaml.org/log/pyyaml'. 3 4 5 3.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. 3 11 4 12 -
pyyaml/trunk/README
r326 r336 22 22 'http://pyyaml.org/wiki/PyYAML'. 23 23 24 Documentation (rough and incomplete though):24 For PyYAML tutorial and reference, see: 25 25 'http://pyyaml.org/wiki/PyYAMLDocumentation'. 26 26 … … 33 33 PyYAML is written by Kirill Simonov <xi@resolvent.net>. It is released 34 34 under the MIT license. See the file LICENSE for more details. 35 -
pyyaml/trunk/announcement.msg
r326 r336 1 1 From: 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.0 7: YAML parser and emitter for Python2 To: python-list@python.org, python-announce@python.org, yaml-core@lists.sourceforge.net, python-porting@python.org 3 Subject: [ANN] PyYAML-3.08: Now with Python 3 support 4 4 5 5 ======================== 6 Announcing PyYAML-3.0 76 Announcing PyYAML-3.08 7 7 ======================== 8 8 … … 11 11 http://pyyaml.org/wiki/PyYAML 12 12 13 This release features a complete support for Python 3. For 14 compatibility notes between Python 2 and Python 3 versions, 15 please see 16 17 http://pyyaml.org/wiki/PyYAMLDocumentation#Python3support 18 13 19 14 20 Changes 15 21 ======= 16 22 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. 33 29 34 30 … … 39 35 PyYAML documentation: http://pyyaml.org/wiki/PyYAMLDocumentation 40 36 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 37 TAR.GZ package: http://pyyaml.org/download/pyyaml/PyYAML-3.08.tar.gz 38 ZIP package: http://pyyaml.org/download/pyyaml/PyYAML-3.08.zip 39 Windows 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 48 45 49 46 PyYAML SVN repository: http://svn.pyyaml.org/pyyaml -
pyyaml/trunk/lib/yaml/__init__.py
r333 r336 9 9 from dumper import * 10 10 11 __version__ = '3.0 7'11 __version__ = '3.08' 12 12 13 13 try: -
pyyaml/trunk/lib3/yaml/__init__.py
r331 r336 105 105 canonical=None, indent=None, width=None, 106 106 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, 108 108 version=None, tags=None): 109 109 """ … … 113 113 getvalue = None 114 114 if stream is None: 115 stream = io.StringIO() 115 if encoding is None: 116 stream = io.StringIO() 117 else: 118 stream = io.BytesIO() 116 119 getvalue = stream.getvalue 117 120 dumper = Dumper(stream, canonical=canonical, indent=indent, width=width, … … 137 140 canonical=None, indent=None, width=None, 138 141 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, 140 143 version=None, tags=None): 141 144 """ … … 145 148 getvalue = None 146 149 if stream is None: 147 stream = io.StringIO() 150 if encoding is None: 151 stream = io.StringIO() 152 else: 153 stream = io.BytesIO() 148 154 getvalue = stream.getvalue 149 155 dumper = Dumper(stream, default_style=default_style, -
pyyaml/trunk/setup.py
r331 r336 1 1 2 2 NAME = 'PyYAML' 3 VERSION = '3.0 7'3 VERSION = '3.08' 4 4 DESCRIPTION = "YAML parser and emitter for Python" 5 5 LONG_DESCRIPTION = """\ … … 82 82 except ImportError: 83 83 try: 84 # Pyrex cannot build _yaml.c at the moment, 85 # but it may get fixed eventually. 84 86 from Pyrex.Distutils import Extension as _Extension 85 87 from Pyrex.Distutils import build_ext as _build_ext -
pyyaml/trunk/tests/lib3/test_input_output.py
r334 r336 57 57 data2 = stream.getvalue() 58 58 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) 59 62 stream = io.BytesIO() 60 63 if encoding is None:
Note: See TracChangeset
for help on using the changeset viewer.
