Commits

Jonathan Eunice committed 8ce86e8

docs tweaked; say.title now iterpolates strings

  • Participants
  • Parent commits b6e9887

Comments (0)

Files changed (3)

 Installation
 ============
 
-::
+To install the latest version::
 
-    pip install say
+    pip install -U say
 
 To ``easy_install`` under a specific Python version (3.3 in this example)::
 
-    python3.3 -m easy_install say
+    python3.3 -m easy_install --upgrade say
     
 (You may need to prefix these with "sudo " to authorize installation.)
         Print a horizontal line with an embedded title. 
         """
         opts = self.options.push(kwargs)
+        if not opts._callframe:
+            opts._callframe = inspect.currentframe().f_back
+        
+        formatted = _sprintf(name, opts._callframe) if is_string(name) else str(name)
 
         self.blank_lines(vsep, **opts)
         line = sep * width
-        self._output([ ' '.join([line, name, line]) ], opts)
+        self._output([ ' '.join([line, formatted, line]) ], opts)
         self.blank_lines(vsep, **opts)
     
     def blank_lines(self, n, **kwargs):
 
 setup(
     name='say',
-    version=verno("0.833"),
+    version=verno("0.838"),
     author='Jonathan Eunice',
     author_email='jonathan.eunice@gmail.com',
     description='Super-simple templated printing. E.g.: say("Hello, {whoever}!", indent=1)',
     install_requires=['six', 'options>=0.426', 'stuf>=0.9.10'],
     tests_require = ['tox', 'pytest', 'six'],
     zip_safe = True,
-    keywords='print format template interpolate say show',
+    keywords='print format template interpolate say',
     classifiers=linelist("""
         Development Status :: 4 - Beta
         Operating System :: OS Independent