diff options
| author | jlg <devnull@localhost> | 2006-07-07 08:45:41 +0000 |
|---|---|---|
| committer | jlg <devnull@localhost> | 2006-07-07 08:45:41 +0000 |
| commit | aa58beaf98f2965ef3ce59775e8e664659fa5973 (patch) | |
| tree | 85bd7b405e8d7988ece8545450c06da20c3adf35 /doc/dist.py.patch | |
| parent | c3671fce06e0cb3b4205eafa37b461a943965486 (diff) | |
| download | decorator-aa58beaf98f2965ef3ce59775e8e664659fa5973.tar.gz | |
Mega-patch from the first day of the Cheese Shop sprinting.
* update to new pydotorg template (johannes)
* Bugger off search bots. (richard)
* "handle" strange charsets in PKG-INFO file uploads (richard)
* fix strange xml-rpc search() implementation (richard)
* add sidebar links in new template (richard)
* remove search, index and search_form actions. Index is useless now
that Cheese Shop is so large. Search form has been replaced by a
Google search. (johannes)
* remove random banner function, not necessary in the new design.
(johannes)
* prevent date-field from wrapping around (bjorn stabell)
* better naming for xml-rpc functions (richard/andrew dalke)
* Add a radio button to switch between searching cheeseshop.python.org
and python.org. (johannes)
* refactor query_info from returning text to template to returning a
structure the template can work on (bjorn stabell)
* trim leading whitespace from rest docs (felix wiemann)
* move documentation into 'doc' directory (johannes)
* remove old flamenco implementation (johannes)
Diffstat (limited to 'doc/dist.py.patch')
| -rw-r--r-- | doc/dist.py.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/doc/dist.py.patch b/doc/dist.py.patch new file mode 100644 index 0000000..19dec85 --- /dev/null +++ b/doc/dist.py.patch @@ -0,0 +1,75 @@ +*** dist.py Wed Dec 4 15:41:53 2002 +--- dist.py-new Wed Dec 4 15:41:32 2002 +*************** +*** 93,98 **** +--- 93,100 ---- + "print the long package description"), + ('platforms', None, + "print the list of platforms"), ++ ('classifiers', None, ++ "print the list of classifiers"), + ('keywords', None, + "print the list of keywords"), + ] +*************** +*** 634,639 **** +--- 636,643 ---- + value = getattr(self.metadata, "get_"+opt)() + if opt in ['keywords', 'platforms']: + print string.join(value, ',') ++ elif opt == 'classifiers': ++ print string.join(value, '\n') + else: + print value + any_display_options = 1 +*************** +*** 962,968 **** + "maintainer", "maintainer_email", "url", + "license", "description", "long_description", + "keywords", "platforms", "fullname", "contact", +! "contact_email", "licence") + + def __init__ (self): + self.name = None +--- 966,972 ---- + "maintainer", "maintainer_email", "url", + "license", "description", "long_description", + "keywords", "platforms", "fullname", "contact", +! "contact_email", "licence", "classifiers") + + def __init__ (self): + self.name = None +*************** +*** 977,982 **** +--- 981,987 ---- + self.long_description = None + self.keywords = None + self.platforms = None ++ self.classifiers = None + + def write_pkg_info (self, base_dir): + """Write the PKG-INFO file into the release tree. +*************** +*** 1003,1008 **** +--- 1008,1016 ---- + for platform in self.get_platforms(): + pkg_info.write('Platform: %s\n' % platform ) + ++ for classifier in self.get_classifiers(): ++ pkg_info.write('Classifier: %s\n' % classifier ) ++ + pkg_info.close() + + # write_pkg_info () +*************** +*** 1059,1064 **** +--- 1067,1075 ---- + def get_platforms(self): + return self.platforms or ["UNKNOWN"] + ++ def get_classifiers(self): ++ return self.classifiers or [] ++ + # class DistributionMetadata + + |
