code: def upload_package(context):
      
  
      if not context.dry_run and build_distributions(context):
          upload_args = 'twine upload '
          upload_args += ' '.join(Path('dist').files())
          if context.pypi:
              upload_args += ' -r %s' % context.pypi
  
          upload_result = shell.dry_run(upload_args, context.dry_run)
          if not context.dry_run and not upload_result:
              raise Exception('Error uploading: %s' % upload_result)
          else:
              log.info(
                  'Successfully uploaded %s:%s', context.module_name, context.new_version
              )
      else:
          log.info('Dry run, skipping package upload')
docs: Uploads your project packages to pypi with twine.