Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4559383

Browse files
committed
Improve consistency in questions asked by packaging.create.
I reworded “wizard” because it is a Windows-specific term.
1 parent 8f66f61 commit 4559383

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Lib/packaging/create.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
'do_classifier': '''
6262
Trove classifiers are optional identifiers that allow you to specify the
6363
intended audience by saying things like "Beta software with a text UI
64-
for Linux under the PSF license. However, this can be a somewhat involved
64+
for Linux under the PSF license". However, this can be a somewhat involved
6565
process.
6666
''',
6767
'packages': '''
@@ -88,7 +88,7 @@
8888
''',
8989
'setup.py found': '''
9090
The setup.py script will be executed to retrieve the metadata.
91-
A wizard will be run if you answer "n",
91+
An interactive helper will be run if you answer "n",
9292
''',
9393
}
9494

@@ -475,25 +475,25 @@ def query_user(self):
475475
self.data.get('author'), _helptext['author'])
476476
self.data['author_email'] = ask('Author e-mail address',
477477
self.data.get('author_email'), _helptext['author_email'])
478-
self.data['home_page'] = ask('Project Home Page',
478+
self.data['home_page'] = ask('Project home page',
479479
self.data.get('home_page'), _helptext['home_page'],
480480
required=False)
481481

482482
if ask_yn('Do you want me to automatically build the file list '
483-
'with everything I can find in the current directory ? '
483+
'with everything I can find in the current directory? '
484484
'If you say no, you will have to define them manually.') == 'y':
485485
self._find_files()
486486
else:
487-
while ask_yn('Do you want to add a single module ?'
487+
while ask_yn('Do you want to add a single module?'
488488
' (you will be able to add full packages next)',
489489
helptext=_helptext['modules']) == 'y':
490490
self._set_multi('Module name', 'modules')
491491

492-
while ask_yn('Do you want to add a package ?',
492+
while ask_yn('Do you want to add a package?',
493493
helptext=_helptext['packages']) == 'y':
494494
self._set_multi('Package name', 'packages')
495495

496-
while ask_yn('Do you want to add an extra file ?',
496+
while ask_yn('Do you want to add an extra file?',
497497
helptext=_helptext['extra_files']) == 'y':
498498
self._set_multi('Extra file/dir name', 'extra_files')
499499

@@ -581,7 +581,7 @@ def set_classifier(self):
581581
self.set_other_classifier(self.classifiers)
582582

583583
def set_other_classifier(self, classifiers):
584-
if ask_yn('Do you want to set other trove identifiers', 'n',
584+
if ask_yn('Do you want to set other trove identifiers?', 'n',
585585
_helptext['trove_generic']) != 'y':
586586
return
587587
self.walk_classifiers(classifiers, [CLASSIFIERS], '')
@@ -598,15 +598,15 @@ def walk_classifiers(self, classifiers, trovepath, desc):
598598
classifiers.add(desc[4:] + ' :: ' + key)
599599
continue
600600

601-
if ask_yn('Do you want to set items under\n "%s" (%d sub-items)'
601+
if ask_yn('Do you want to set items under\n "%s" (%d sub-items)?'
602602
% (key, len(trove[key])), 'n',
603603
_helptext['trove_generic']) == 'y':
604604
self.walk_classifiers(classifiers, trovepath + [trove[key]],
605605
desc + ' :: ' + key)
606606

607607
def set_license(self, classifiers):
608608
while True:
609-
license = ask('What license do you use',
609+
license = ask('What license do you use?',
610610
helptext=_helptext['trove_license'], required=False)
611611
if not license:
612612
return

0 commit comments

Comments
 (0)