From 6e619e0a70dbdb2fba29d9f6ec43e6bf0993ff24 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 11 Oct 2013 20:57:35 -0300 Subject: [PATCH] fixed 'PyPI' spelling --HG-- branch : plugins-index --- doc/en/plugins_index.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/en/plugins_index.py b/doc/en/plugins_index.py index 17765d146..96726cdc0 100644 --- a/doc/en/plugins_index.py +++ b/doc/en/plugins_index.py @@ -1,6 +1,6 @@ ''' Script to generate the file `plugins_index.txt` with information about pytest plugins taken directly -from a live pypi server. +from a live PyPI server. This will evolve to include test compatibility (pythons and pytest versions) information also. ''' @@ -19,7 +19,7 @@ import xmlrpclib #=================================================================================================== def iter_plugins(client, search='pytest-'): ''' - Returns an iterator of (name, version) from pypi. + Returns an iterator of (name, version) from PyPI. :param client: xmlrpclib.ServerProxy :param search: package names to search for @@ -145,7 +145,7 @@ def _get_today_as_str(): #=================================================================================================== def generate_plugins_index(client, filename): ''' - Generates an RST file with a table of the latest pytest plugins found in pypi. + Generates an RST file with a table of the latest pytest plugins found in PyPI. :param client: xmlrpclib.ServerProxy :param filename: output filename @@ -162,9 +162,9 @@ def main(argv): filename = os.path.join(os.path.dirname(__file__), 'plugins_index.txt') url = 'http://pypi.python.org/pypi' - parser = OptionParser(description='Generates a restructured document of pytest plugins from PyPi') + parser = OptionParser(description='Generates a restructured document of pytest plugins from PyPI') parser.add_option('-f', '--filename', default=filename, help='output filename [default: %default]') - parser.add_option('-u', '--url', default=url, help='url of PyPi server to obtain data from [default: %default]') + parser.add_option('-u', '--url', default=url, help='url of PyPI server to obtain data from [default: %default]') (options, _) = parser.parse_args(argv[1:]) client = xmlrpclib.ServerProxy(options.url)