summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2013-10-11 20:57:35 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2013-10-11 20:57:35 -0300
commit6e619e0a70dbdb2fba29d9f6ec43e6bf0993ff24 (patch)
treeafafcc7153256ca38ec3b41333cf71a4334d508b
parent5b2b71bfd450ee0e22bfc4a15b5c0c1c8f6ba29c (diff)
downloadpytest-6e619e0a70dbdb2fba29d9f6ec43e6bf0993ff24.tar.gz
fixed 'PyPI' spelling
--HG-- branch : plugins-index
-rw-r--r--doc/en/plugins_index.py10
1 files 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)