- register with pip
- setup
.pypirc
file, see.pypirc
example - put file in
$HOME
- osx
touch ~/.pypirc
- osx
- setup
- install PasteScript
sudo easy_install PasteScript
- search for package, find a project name
pip search __name__
- create project
paster create __name__
- add package folder add to setup dict arguments
packages = ['__folder__']
- optional remove content in
setup.cfg
via$ echo "[egg_info]" > setup.cfg
- add package folder add to setup dict arguments
- git ignore to ignore package stuff, see
.gitignore
example - register package
python setup.py register
- upload
python setup.py sdist upload
- chanage version number in
setup.py
- upload
python setup.py sdist upload
pip install __packagename__
pip install __packagename__ --upgrade