Skip to content

Commit 818468a

Browse files
author
Matthias Koeppe
committed
build/sage_bootstrap/{app,cmdline}.py: Suggested edits
1 parent ec28623 commit 818468a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build/sage_bootstrap/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,9 @@ def create(self, package_name, version=None, tarball=None, pkg_type=None, upstre
290290
if pypi:
291291
if source is None:
292292
try:
293-
source = 'wheel'
294-
if not PyPiVersion(package_name, source='wheel').tarball.endswith('-none-any.whl'):
293+
if PyPiVersion(package_name, source='wheel').tarball.endswith('-none-any.whl'):
294+
source = 'wheel'
295+
else:
295296
source = 'normal'
296297
except PyPiError:
297298
source = 'normal'

build/sage_bootstrap/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def make_parser():
319319
'package_name', default=None, type=str,
320320
help='Package name.')
321321
parser_create.add_argument(
322-
'--source', type=str, default=None, help='Package source (one of normal, wheel, script, pip; default depends on provided arguments)')
322+
'--source', type=str, default=None, help='Package source (one of normal, wheel, script, pip); default depends on provided arguments')
323323
parser_create.add_argument(
324324
'--version', type=str, default=None, help='Package version')
325325
parser_create.add_argument(

0 commit comments

Comments
 (0)