docs: def release():
      """
      Release new package version to pypi
      :return:
      """
  
      from secrets import pypi_auth
  
      # Check that all changes are committed before creating a new version
      git_check()
  
      # Test package
      test()
  
      # Increment version
      inc_version()
  
      # Commit new version, create tag for version and push everything to origin
      git_push()
  
      # Build and publish package
      build()
      pathname = 'dist/pynb-{}.tar.gz'.format(version.__version__)
      docker_exec('twine upload -u {user} -p {pass} {pathname}'.format(pathname=pathname, **pypi_auth))
  
      # Remove temporary files
      clean()