Commit 5ba98b3d by Chris Jerdonek

Merge branch 'master' into 'development': v0.4.1 changes

Conflicts:
	HISTORY.rst
	README.rst
	examples/nested_context.py
	pystache/template.py
	setup.py
parents e4c083f6 a06fd423
...@@ -39,6 +39,10 @@ Misc: ...@@ -39,6 +39,10 @@ Misc:
* Added some docstrings. [kennethreitz] * Added some docstrings. [kennethreitz]
0.4.1 (2012-03-25)
------------------
* Added support for Python 2.4. [wangtz, jvantuyl]
0.4.0 (2011-01-12) 0.4.0 (2011-01-12)
------------------ ------------------
* Add support for nested contexts (within template and view) * Add support for nested contexts (within template and view)
......
...@@ -19,10 +19,17 @@ tests in `version 1.0.3`_ of the spec. ...@@ -19,10 +19,17 @@ tests in `version 1.0.3`_ of the spec.
Logo: `David Phillips`_ Logo: `David Phillips`_
Requirements Requirements
============ ============
Pystache is currently tested under Python 2.6. Pystache currently works using the following versions of Python:
* Python 2.4
* Python 2.5
* Python 2.6
* Python 2.7
Install It Install It
========== ==========
...@@ -75,6 +82,11 @@ nose_ works great! :: ...@@ -75,6 +82,11 @@ nose_ works great! ::
cd pystache cd pystache
nosetests nosetests
Depending on your Python version and nose installation, you may need
to type, for example ::
nosetests-2.4
To include tests from the Mustache spec in your test runs: :: To include tests from the Mustache spec in your test runs: ::
git submodule init git submodule init
...@@ -92,8 +104,9 @@ To run a subset of the tests, you can use this pattern, for example: :: ...@@ -92,8 +104,9 @@ To run a subset of the tests, you can use this pattern, for example: ::
nosetests --tests tests/test_context.py:GetValueTests.test_dictionary__key_present nosetests --tests tests/test_context.py:GetValueTests.test_dictionary__key_present
Mailing List Mailing List
================== ============
As of November 2011, there's a mailing list, pystache@librelist.com. As of November 2011, there's a mailing list, pystache@librelist.com.
...@@ -102,6 +115,7 @@ Archive: http://librelist.com/browser/pystache/ ...@@ -102,6 +115,7 @@ Archive: http://librelist.com/browser/pystache/
Note: There's a bit of a delay in seeing the latest emails appear Note: There's a bit of a delay in seeing the latest emails appear
in the archive. in the archive.
Author Author
====== ======
......
...@@ -16,4 +16,6 @@ class NestedContext(pystache.View): ...@@ -16,4 +16,6 @@ class NestedContext(pystache.View):
return [{'outer': 'car'}] return [{'outer': 'car'}]
def nested_context_in_view(self): def nested_context_in_view(self):
return 'it works!' if self.context.get('outer') == self.context.get('inner') else '' if self.context.get('outer') == self.context.get('inner'):
\ No newline at end of file return 'it works!'
return ''
...@@ -70,7 +70,7 @@ if sys.argv[-1] == 'publish': ...@@ -70,7 +70,7 @@ if sys.argv[-1] == 'publish':
long_description = make_long_description() long_description = make_long_description()
setup(name='pystache', setup(name='pystache',
version='0.4.0', version='0.4.1',
description='Mustache for Python', description='Mustache for Python',
long_description=long_description, long_description=long_description,
author='Chris Wanstrath', author='Chris Wanstrath',
...@@ -85,8 +85,9 @@ setup(name='pystache', ...@@ -85,8 +85,9 @@ setup(name='pystache',
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License', 'License :: OSI Approved :: MIT License',
'Programming Language :: Python', 'Programming Language :: Python',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
) )
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment