pip-init to generate a base setup.py file
Generate a base setup.py file to upload a python package to pypi
pip install pip-init
I created a setup.py file, what are the next steps?
What are the next steps to upload a package to pypi?
Create or edit the python code of your package:
mkdir package_code $EDITOR package_code/__init__.py
Create an account on the PyPI website.
Create a ~/.pypirc file
[pypi] repository = https://pypi.python.org/pypi username = <username> password = <password>
Register and upload your package to pypi
python setup.py register python setup.py sdist upload -r pypi
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pip-init-0.1.0.tar.gz (3.0 kB)||File type Source||Python version None||Upload date||Hashes View|