Commits

Jason R. Coombs  committed 8951daa

Extract function for uploading to pypi

  • Participants
  • Parent commits 33cf3bf
  • Tags 0.7b2

Comments (0)

Files changed (1)

 
 	subprocess.check_call(['hg', 'update', VERSION])
 
+	upload_to_pypi()
+	upload_bootstrap_script()
+
+	# update to the tip for the next operation
+	subprocess.check_call(['hg', 'update'])
+
+	# we just tagged the current version, bump for the next release.
+	bump_versions()
+	subprocess.check_call(['hg', 'ci', '-m',
+		'Bumped to {NEXT_VERSION} in preparation for next '
+		'release.'.format(**globals())])
+
+	# push the changes
+	subprocess.check_call(['hg', 'push'])
+
+	add_milestone_and_version()
+
+def upload_to_pypi():
 	linkify('CHANGES.txt', 'CHANGES (links).txt')
 
 	has_docs = build_docs()
 	if has_docs:
 		cmd.extend(['upload_docs', '-r', PACKAGE_INDEX])
 	subprocess.check_call(cmd)
-	upload_bootstrap_script()
-
-	# update to the tip for the next operation
-	subprocess.check_call(['hg', 'update'])
-
-	# we just tagged the current version, bump for the next release.
-	bump_versions()
-	subprocess.check_call(['hg', 'ci', '-m',
-		'Bumped to {NEXT_VERSION} in preparation for next '
-		'release.'.format(**globals())])
-
-	# push the changes
-	subprocess.check_call(['hg', 'push'])
-
-	add_milestone_and_version()
 
 def has_sphinx():
 	try: