Secret Recipes of the Python Ninja
上QQ阅读APP看书,第一时间看更新

How to do it...

  1. Create your distributions:
      python setup.py sdist bdist_wheel --universal
  1. Register your project (if for a first upload):
      twine register dist/<project>.<version>.tar.gz
twine register dist/<package_name>-<version>-
<language_version>-<abi_tag>-<platform_tag>.whl
  1. Upload distributions:
      twine upload dist/*
  1. The following error indicates you need to register your package:
      HTTPError: 403 Client Error: You are not allowed to 
edit 'xyz' package information