[Checkins] SVN: zc.iso8601/branches/dev/ clean up the long description to not be so testy

Fred L. Drake, Jr. fdrake at gmail.com
Mon May 12 18:32:50 EDT 2008


Log message for revision 86670:
  clean up the long description to not be so testy

Changed:
  A   zc.iso8601/branches/dev/README.txt
  U   zc.iso8601/branches/dev/setup.py
  U   zc.iso8601/branches/dev/src/zc/iso8601/README.txt

-=-
Added: zc.iso8601/branches/dev/README.txt
===================================================================
--- zc.iso8601/branches/dev/README.txt	                        (rev 0)
+++ zc.iso8601/branches/dev/README.txt	2008-05-12 22:32:49 UTC (rev 86670)
@@ -0,0 +1,16 @@
+==========================
+ISO 8601 utility functions
+==========================
+
+This package collects together functions supporting the data formats described
+in ISO 8601.  Time zone support is provided by the ``pytz`` package.
+
+The following functions are provided in the ``zc.iso8601.parse`` module:
+
+``datetime(s)``
+  Parse a date-time value that does not include time-zone information.
+  Returns a Python datetime value.
+
+``datetimetz(s)``
+  Parse a date-time value that includes time-zone information.  Returns a
+  Python datetime value in the UTC timezone.


Property changes on: zc.iso8601/branches/dev/README.txt
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Modified: zc.iso8601/branches/dev/setup.py
===================================================================
--- zc.iso8601/branches/dev/setup.py	2008-05-12 22:23:20 UTC (rev 86669)
+++ zc.iso8601/branches/dev/setup.py	2008-05-12 22:32:49 UTC (rev 86670)
@@ -4,15 +4,14 @@
 import setuptools
 
 
+here = os.path.dirname(os.path.abspath(__file__))
+
 def read(path):
-    return open(path).read()
+    return open(os.path.join(here, path)).read()
 
-
 def long_description():
-    here = os.path.dirname(os.path.abspath(__file__))
-    paths = [os.path.join(here, "src/zc/iso8601", fn)
-             for fn in "README.txt", "CHANGES.txt"]
-    return "\n\n".join([open(path).read() for path in paths])
+    return "\n\n".join([read("README.txt"),
+                        read("src/zc/iso8601/CHANGES.txt")])
 
 
 setuptools.setup(

Modified: zc.iso8601/branches/dev/src/zc/iso8601/README.txt
===================================================================
--- zc.iso8601/branches/dev/src/zc/iso8601/README.txt	2008-05-12 22:23:20 UTC (rev 86669)
+++ zc.iso8601/branches/dev/src/zc/iso8601/README.txt	2008-05-12 22:32:49 UTC (rev 86670)
@@ -14,7 +14,7 @@
 
 
 Parsing date/time values
----------------------------------------------------
+------------------------
 
 There is a function that parses text and returns date/time values:
 



More information about the Checkins mailing list