[Distutils] New metadata patch

Harry Henry Gebel hgebel@inet.net
Tue, 25 Apr 2000 05:53:49 -0400


--mR8QP4gmHujQHb1c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Here is a patch to add a new item to class DistributionMetadata ,
long_description. Most of the info for RPMs I am putting in a separate
file, but this seemed appropriate for inclusion in setup.py, it would be
useful, for example, for adding an option to create .lsm files.

-- 
Harry Henry Gebel, Senior Developer, Landon House SBS
West Dover Hundred, Delaware

"Why do you look for the living among the dead?
He is not here, but has risen." 
Luke 24:5 (NRSV)

--mR8QP4gmHujQHb1c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="long_description.patch"

Index: distutils/dist.py
===================================================================
RCS file: /projects/cvsroot/distutils/distutils/dist.py,v
retrieving revision 1.7
diff -u -r1.7 dist.py
--- dist.py	2000/04/22 02:52:44	1.7
+++ dist.py	2000/04/25 09:48:47
@@ -89,6 +89,8 @@
          "alias for --licence"),
         ('description', None,
          "print the package description"),
+        ('long-description', None,
+         "print the long package description"),
         ]
     display_option_names = map(lambda x: string.translate(x[0], longopt_xlate),
                            display_options)
@@ -638,6 +640,7 @@
         self.url = None
         self.licence = None
         self.description = None
+        self.long_description = None
         
     # -- Metadata query methods ----------------------------------------
 
@@ -680,7 +683,10 @@
 
     def get_description(self):
         return self.description or "UNKNOWN"
-    
+
+    def get_long_description(self):
+        return self.long_description or "UNKNOWN"
+
 # class DistributionMetadata
 
 if __name__ == "__main__":

--mR8QP4gmHujQHb1c--